-
Notifications
You must be signed in to change notification settings - Fork 23
Create additional assertions via contexts #64
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
We do have exactly this issue in the Web Publication Manifest and the draft includes a separate "canonical manifest" section that defines a number of transformation steps like this one. However, even with this example around, I am wary of such feature for JSON-LD 1.1. We should not use the context feature for data transformation. It may open pandora's box. We may want to look at this issue in general at some point, but that may have to be treated separately and probably needs a longer incubator period. For example, even if we did it, we should may want to have an explicitly different mechanism defined for this, not part of At this moment, I am 👎 on this... |
FWIW, Google's Structured Data Testing Tool (which only supports one vocabulary: Schema.org) makes some undeclared assumptions (based on that single vocabulary) which amount to this sort of coercion. You can see a more complete description in this comment over at the WPUB repo, but essentially, there's an unexpressed "default" {"@context": "http://schema.org/", "@type": "Book",
"publisher": "asdf"} becomes {"@context": "http://schema.org/", "@type": "Book",
"publisher": {"@type": "Thing", "name": "asdf"}} This does feel like it moves the needle from vocabulary into ontology. |
(This is a meta-issue)
Many existing JSON structures use simple "short cut" properties when there is only a single piece of information known about an intermediate resource. For example, if only the name of the author of a book is known then a
creator
property with a literal value is shorthand for a longer assertion chain of that the book was created by some actor that has the given name.Thus:
Could be expanded to:
This could be added to the context for creator:
Or similar.
The text was updated successfully, but these errors were encountered: