-
Notifications
You must be signed in to change notification settings - Fork 156
JSON-LD 1.1 Feature Request: New @label keyword #371
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
Comments
Contexts themselves are not a part of the RDF data model so it seems kind of strange to start applying particular RDF properties, or things that look like RDF properties, to them. I fear getting too meta with this discussion without solid use cases. But if {
"@context": {
"@about": {
"id": "a-magic-context",
"type": ["MyMagicContext", "jsonld:Context"],
"label": "My Super Magic Context",
...
},
"@base": "https://www.example.com/ns/stuff#",
"id": "@id",
"type": "@type",
"jsonld": "http://www.w3.org/ns/json-ld#",
"label": "http://www.w3.org/2000/01/rdf-schema#label"
...
},
...
} |
Could @Label be used for localization of properties themselves? |
I don't see much value to this, there are a number of things which might deserve keywords, and where do we draw the line. IMO, it's just as easy to define the following:
|
I disagree. The best place for information about a property should be at its URL. You should be able to go to the URL of the property and get more information about it -- which may include a "display label" of some kind. This probably shouldn't be context-specific, it would be the same regardless of the term the property (URL) gets mapped to, and therefore shouldn't be in a @context. Rather, it's part of the vocab. |
There are two parts to the original issue, one is |
What use cases can be realized with treating embedded @contexts as resources that can’t be realized by expressing that data in the body of the document? Please note that external contexts are already resources that are identified with a URL and can thus be described as any other thing in JSON-LD. |
See also: #369 (comment) |
Closed in favor of w3c/json-ld-syntax#6. |
In the spirit of "Labeling Everything" (http://patterns.dataincubator.org/book/label-everything.html) ... it would be worthwhile, IMO, for JSON-LD to provide a basic @Label keyword for use both in @context and nodes. It's largely syntactic sugar but would be useful.
For example:
Which would expand to:
The text was updated successfully, but these errors were encountered: