In case your need a (JavaScript) tool to transform RDF from one serialisation to another rdf-parse and rdf-serialize ,written by Ruben Taelman of @ugent IMEC-Knows, is your friend: #trig #nquads #turtle #ntriples #notation3 #rdf/xml #rdfa #jsonld you name it. Here is an example how to use it https://gist.github.com/phochste/ef249cccffbcb6583782526f0fe65b57
Example how to transform RDF from one serialisation to another

Example how to transform RDF from one serialisation to another - example.js

Gist