model.read(in, "", null);
// create the reasoner factory and the reasoner
Resource conf = model.createResource();
//conf.addProperty( ReasonerVocabulary.PROPtraceOn, "true" );
RDFSRuleReasoner reasoner = (RDFSRuleReasoner) RDFSRuleReasonerFactory.theInstance().create(conf);
// Create inference model
InfModel infModel = ModelFactory.createInfModel(reasoner, model);
model = infModel;