// Register the default format for the language.
RDFWriterRegistry.register(JSONLD, JSONLD_FORMAT_PRETTY);
// For datasets
final WriterDatasetRIOTFactory wfactory = new JsonLDWriterDatasetRIOTFactory();
// Uses the same code for each form.
RDFWriterRegistry.register(JSONLD_FORMAT_PRETTY, wfactory);
RDFWriterRegistry.register(JSONLD_FORMAT_FLAT, wfactory);
// For graphs