Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

Frans,

you can use an XSLT stylesheet which does exactly that:
https://github.com/Graphity/graphity-client/blob/master/src/main/webapp/static/org/graphity/client/xsl/rdfxml2json-ld.xsl

There's a bug but it shouldn't be hard to fix:
https://github.com/Graphity/graphity-client/issues/62

You will need a XSLT 2.0 processor in the browser - fortunately there
is Saxon-CE:
http://www.saxonica.com/ce/index.xml

Hope this helps.

Martynas
graphityhq.com

On Thu, Sep 3, 2015 at 4:19 PM, Frans Knibbe <frans.knibbe@geodan.nl> wrote:
> Hello,
>
> In a web application that is working with RDF data I would like to have all
> data available as JSON-LD, because I believe it is the easiest RDF format to
> process in a web application. At the moment I am particularly looking at
> processing vocabulary data. I think I can assume that such data will at
> least be available as RDF/XML. So I am looking for a way to transform
> RDF/XML to JSON-LD in a web browser.
>
> What would be the best or easiest way to do this? Attempt the transformation
> in the browser, using jsonld.js plus something else? Or use a server side
> component? And in the case of a server side component, which programming
> environment could be recommended? Python? Node.js? Any general or specific
> advice would be welcome.
>
> Greetings,
> Frans
>
> --
> Frans Knibbe
> Geodan
> President Kennedylaan 1
> 1079 MB Amsterdam (NL)
>
> T +31 (0)20 - 5711 347
> E frans.knibbe@geodan.nl
> www.geodan.nl
> disclaimer
>

Received on Thursday, 3 September 2015 14:39:03 UTC