Model schemaModel = ModelFactory.createDefaultModel();
Model configurationRuleReasoner = ModelFactory.createDefaultModel();
com.hp.hpl.jena.rdf.model.Resource configuration = configurationRuleReasoner.createResource();
configuration.addProperty(ReasonerVocabulary.PROPruleMode, "forward");
configuration.addProperty(ReasonerVocabulary.PROPsetRDFSLevel, ReasonerVocabulary.RDFS_SIMPLE);
Reasoner ruleReasoner = RDFSRuleReasonerFactory.theInstance().create(configuration);
InfModel inf = ModelFactory.createInfModel(ruleReasoner, schemaModel, baseModel);
inf.read(new ByteArrayInputStream(TURTLE_RDF.getBytes()), "", "TURTLE");
return inf;
}