The examples on http://jena.sourceforge.net/inference/index.html

 look like:

(rdfs)

Model schema = FileManager.get().loadModel("file:data/rdfsDemoSchema.rdf");
Model data = FileManager.get().loadModel("file:data/rdfsDemoData.rdf");
InfModel infmodel = ModelFactory.createRDFSModel(schema, data);

or

(owl)

Model schema = FileManager.get().loadModel("file:data/owlDemoSchema.owl");
    Model data = FileManager.get().loadModel("file:data/owlDemoData.rdf");
    Reasoner reasoner = ReasonerRegistry.getOWLReasoner();
    reasoner = reasoner.bindSchema(schema);
    InfModel infmodel = ModelFactory.createInfModel(reasoner, data);

In the OWL case, at least, I am wondering about the relationship of
this to calling createOntologyModel(OntModelSpec.OWL_MEM_xxx);
 followed by loading both the ontology and the data into the model.

Reply via email to