Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Model model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM);
- // [...]
- model.read(isOwlBaseModelSnapshot, ImotrisVocabulary.getURI(), "TURTLE");
- model.setNsPrefix("imotris", ImotrisVocabulary.getURI() + "#");
- // [...]
- final GenericRuleReasoner reasoner = (GenericRuleReasoner) GenericRuleReasonerFactory.theInstance().create(null);
- infModel = ModelFactory.createInfModel(reasoner, model);
- infModel.prepare(); // legacy, used general purpose rules some versions ago
Advertisement
Add Comment
Please, Sign In to add comment