-
Notifications
You must be signed in to change notification settings - Fork 157
Datasets in JSON-LD are horriblely ugly and not navigable #272
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
Example from real data: https://gist.github.com/gcarothers/5889134 a replacement design might look like: https://gist.github.com/gcarothers/5889145 creating a |
This could be useful in a separate spec, but it might not take a different keyword to do it. Something we didn't get to in 1.0 is the ability to have node definitions which are indexed from an object, rather than being in an array form; there are likely elements that could be added to a context which would indicate that the values of the object containing the context are to be treated as IDs, with their values the node definition (with an optional @id, which MUST resolve to the same IRI). This would pretty much eat the RDF/JSON use case. Doing this for graph names would be pretty similar. This would be a nice JSON-LD 1.1 feature. |
If you don't mind a couple of extra triples you could do something like this:
You don't need to use it if you don't need to specify a context at the same time:
is valid as well. |
This is likely solved using the |
I propose closing this with no change; please 👍 or 👎 to close. |
}
The outer
@graph
is syntax cruft and has no meaning.The text was updated successfully, but these errors were encountered: