- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Fri, 17 Jul 2015 19:11:28 +0200
- To: "'Olivier Rossel'" <olivier.rossel@gmail.com>, "'Nicholas Bollweg'" <nick.bollweg@gmail.com>
- Cc: "'Ruben Verborgh'" <ruben.verborgh@ugent.be>, "'Immanuel Normann'" <immanuel.normann@gmail.com>, "'public-linked-json'" <public-linked-json@w3.org>, 'Niklas Lindström' <lindstream@gmail.com>
On 16 Jul 2015 at 21:32, Olivier Rossel wrote: > If the API accepts to return RDF/N3, you can use the N3 parser here: > http://ruben.verborgh.org/blog/2013/04/30/lightning-fast-rdf-in-javascrip > t/ > > and retrieve your data as a graph of javascript objects on the client side. > You can then traverse that graph in whatever way you want. Niklas (CC'ed) implemented the same for JSON-LD: https://github.com/niklasl/rdfa-lab/blob/gh-pages/js/ld.js Here's an example of how it can be used: https://github.com/niklasl/rdfa-lab/blob/gh-pages/test/test_ld.js He even went as far as writing a simple spec for it: http://json-ld.org/spec/latest/json-ld-connect/ It's quite straightforward. Cheers, Markus -- Markus Lanthaler @markuslanthaler
Received on Friday, 17 July 2015 17:12:07 UTC