return dsg;
}
private static DatasetGraph infer(String input, String vocabulary) {
Dataset dataset = DatasetFactory.createMem();
Sink<Quad> sink = new SinkQuadsToDataset(dataset.asDatasetGraph());
sink = InfFactory.infQuads(sink, FileManager.get().loadModel(vocabulary));
LangRIOT parser = RiotReader.createParserQuads(IO.openFile(input), Lang.NQUADS, null, sink) ;
parser.parse() ;
return dataset.asDatasetGraph();