-
Notifications
You must be signed in to change notification settings - Fork 7
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
xsd:string vs rdf:langString #262
Comments
My answers:
|
@mgh128 Let's discuss lang tags here, not in #263 3: I wouldn't worry about JSONLD client being able to process and cache the Voc context. But schema.org people worried about a server's ability to serve a big context reliably, despite the caching. I wrote in Voc about that. 4: yes, 5: Ask the group but I'd be happy to stick with 2: JSONLD language shortcuts
If economy should be maximized, the best is to use range "code": "code-not-natural-lang",
"label: {"val": "Some label", "lang": "en"}
"labels": [
"Some label, I'm not sure about lang",
{"val": "Some label", "lang": "en"}
] If uniformity should be maximized, then you want to always use the same structure for the same field, which leads to extraneous adornments:
|
Agreed approach 2: Define aliases in the context: |
^^^ This applies when we're using master data properties from the GS1 Web vocabulary that expect language-tagged strings. We're not proposing any change to the existing CBV master data attributes / ILMD that only expect a plain xsd:string value. We'll do this within the narrowly scoped context resources for CertificationDetails and master data attributes - as mentioned in #263 (comment) |
EPCIS § 7.4.1.3 will address certificationInfo, including non-normative examples with langString. |
EPCIS includes very few strings (4-5), and they are all code-like so they are correctly declared
xsd:string
But
gs1:certificationStandard, gs1:certificationAgency, gs1:certificationValue
inCertificationInfo
(#245)are declared
rdf:langString
(following WebVoc's multilingual orientation).I don't see cardinality restrictions, so this allows providing values in different langs, eg
Questions:
"@language", "@value"
in JSON"lang": "@language"
(but "value" already maps toepcis:value
)rdf:Literal
(or
schema:rangeIncludes xsd:string, rdf:langString
; or ash:or
of these datatypes)to allow the much simpler common case of one name with no lang tag:
stringValue
inSensorReport
is defined asxsd:string
.Do we ever want it to carry a lang tag to indicate the language?
The text was updated successfully, but these errors were encountered: