Is it possible to convert Json-Ld data to different RDF/XML format by using 'jsonld' package https://www.npmjs.com/package/jsonld?
In the documentation, I found possible to inject RDF parser.
// register a custom promise-based RDF parser
jsonld.registerRDFParser(contentType, async input => {
// parse input into a jsonld.js RDF dataset object...
return new Promise(...);
});
but I'm not sure whether we could use it to convert data from Json-Ld to different format; or to convert from different format to Json-Ld.
My main goal is to create converter in both directions between Json-Ld and RDF/XML, N3, Turtle, so different suggestions are also welcome