use of org.apache.jena.rdf.model.impl.InfModelImpl in project jena by apache.
the class ModelFactory method createRDFSModel.
/**
* Return a Model through which all the RDFS entailments
* derivable from the given model are accessible. Some work is done
* when the inferenced model is created but each query will also trigger some
* additional inference work.
*
* @param model the Model containing both instance data and schema assertions to be inferenced over
*/
public static InfModel createRDFSModel(Model model) {
Reasoner reasoner = ReasonerRegistry.getRDFSReasoner();
InfGraph graph = reasoner.bind(model.getGraph());
return new InfModelImpl(graph);
}
Aggregations