return callback.getJenaModel();
}
@Override
public String serialize(Model model) throws IOException {
JenaRDFParser serializer = new JenaRDFParser();
serializer.importModel(new RDFDataset(), model);
try {
return JSONUtils.toString(JSONLD.fromRDF(model, serializer));
} catch (JSONLDProcessingError e) {
throw new IOException(e);
}