-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON-LD term mapping collisions: label, value #1195
Comments
Further research ... maybe not. Clarifying here: |
Adding |
Summary: Options:
|
AS2 uses the different key option: https://www.w3.org/TR/activitystreams-core/#naturalLanguageValues |
I think what is missing here is some sort of "default" so that anything can since something to show. In most cases, I think there is a preference for some language by the content holder, even if others are available. "label" : {
"default" : "Here's your title",
"en" : "Here's your title",
"en-GB" : "Here's youour title",
"en-US" : "Here's yer title"
} If it isn't too custom, maybe we can lean towards a default with an array, so "label" : [ "Here's your title", {
"en" : "Here's your title",
"en-GB" : "Here's youour title",
"en-US" : "Here's yer title"
} If I didn't translate my title or cannot assert the language (either because it is outside of standard encoding or unknown to the encoder), I may only place a "string". As a developer, I would have no problem looking in the next position for localization, but offering ~ 2 cents. |
Per discussion on #1400, we should choose which context is our primary one and adopt it. In this case, our primary context is Presentation 3, and thus its definition of label wins out. This is very very unlikely to cause problems, as label on Collections is not a core feature of the Web Annotation model. Propose that we document the inconsistency and move on. |
Closed in effect by #1408 |
Assuming #755, then we have a collision between the definitions of
value
andlabel
in the IIIF and Web Annotation contexts. IIIF would havevalue
as a language map, as the only time we use it is as the value of a metadata pair. Web Annotation (WA) on the other hand uses it in several places, including for non-linguistic content such as the value of a CssStylesheet or a FragmentSelector.Assuming #1186, our context would trump the WA context due to the ordering, making all of those fields invalid as they are not language maps. In JSON-LD 1.1 this can be worked around, by asserting that our
value
mapping only applies within the context ofmetadata
. See: https://json-ld.org/spec/latest/json-ld/#scoped-contexts This would allow the other uses to fall through to the WA context.Unfortunately we allow
label
anywhere, including on AnnotationCollections. The WA model also recommendslabel
on AnnotationCollections:So we have a nasty decision to make :(
The text was updated successfully, but these errors were encountered: