-
Notifications
You must be signed in to change notification settings - Fork 157
Creating Linked Data from JSON is harder then expected #271
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
https://gist.github.com/gcarothers/5888777 is an example JSON file WITH |
https://gist.github.com/gcarothers/5888533 is an example of trying to create URIs via a |
This is somewhat related to issue #262, which may be addressed in a future JSON-LD spec, or in a CG extension. Basically, having the ability to define context elements within term definitions can be used to define a single context, but have things vary for nodes under a given property. This might be used, for example, to set a separate @base for values of "judge", for example. |
Probably you should have a look at https://github.com/antoniogarrote/json-ld-macros It allows you to declaratively transform JSON to JSON-LD and is quite flexible |
Also see #426. |
I propose closing this with no change; please 👍 or 👎 to close. |
The hardest part of creating Linked Data from JSON is assigning URIs to specific parts of the JSON. In examples this is done by adding
@id
to specific parts of the JSON. In real world JSON there are often already IDs, however these IDs are NOT URIs, some method for turning them into URIs is required. Happily@id
combined with@base
works. HOWEVER, it only works as long as there is only a single kind of Resource that needs an URI. Some method of assigning URIs to Resources that are nested with, or coincident with the Resources of the other types. See comments for concrete examples.The text was updated successfully, but these errors were encountered: