-
Notifications
You must be signed in to change notification settings - Fork 6
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
JSON-LD examples? #19
Comments
See also discussions about Nanopubs on prov-comments |
Yes, JSON-LD examples would be nice. Did you notice that some nanopub servers actually give you JSON-LD, like here: http://np.inn.ac/RAW0X-iaUqouIVNNVYHBqbn5_LrVf2m3tv9l9K6B23tok.jsonld.txt Sesame doesn't seem to do any prettification though. I don't understand what you mean by the |
Ah, yes, I see http://purl.org/np/RAW0X-iaUqouIVNNVYHBqbn5_LrVf2m3tv9l9K6B23tok correctly now. All praise TriG syntax for readability :-) Yes, I used that JSON-LD output as starting point; and we could use compaction against a common or generated JSON-LD We could in theory in the nanopub server use JSON-LD Framing as the latest draft supports named graphs, although I am not sure which implementations support this yet. |
JSON-LD lends itself well to Nanopublications. See for instance https://gist.github.com/stain/c2ad32ef4423b4814e83c2821bb03506 where I tried to reshape http://purl.org/np/RAW0X-iaUqouIVNNVYHBqbn5_LrVf2m3tv9l9K6B23tok as a nested JSON-LD structure that could also be consumed by non-RDF-aware consumers.
(BTW, that nanopub has somehow added
#head
also in the name of the nanopublication itself which I took the liberty to fix for the example)The text was updated successfully, but these errors were encountered: