Re: JSON-LD from Turtle/N-Triples in JS

On 01/18/2014 06:42 PM, Adrian Gschwend wrote:
> Hi group,
>
> Googling didn't help so I ask here: I can parse Turtle/N-Triples with
> Rubens N3.js or some other libraries like rdfstore (which use N3 again).
> Now the question is how do I serialize JSON-LD out of it, anyone knows
> of a direct way? If not, what's the easiest JSON-LD structure I would
> have to generate to get there?
you may also find it interesting to take a look at: 
https://github.com/mcollina/levelgraph-jsonld/blob/master/index.js#L164

i plan to see if we could reuse instead some code from jsonld.js to 
achieve same result!

Received on Sunday, 19 January 2014 11:35:02 UTC