// Uses the same code for each form.
RDFWriterRegistry.register(JSONLD_FORMAT_PRETTY, wfactory);
RDFWriterRegistry.register(JSONLD_FORMAT_FLAT, wfactory);
// For graphs
final WriterGraphRIOTFactory wfactory2 = new JsonLDWriterGraphRIOTFactory();
RDFWriterRegistry.register(JSONLD_FORMAT_PRETTY, wfactory2);
RDFWriterRegistry.register(JSONLD_FORMAT_FLAT, wfactory2);
// Register for use with Model.write (old world)
IO_Jena.registerForModelWrite(JSONLD.getName(), JsonLDRDFWriter.class);