private OntModel createJenaOWLModel(ResourceLoader owlSource) throws ResourceNotFoundException {
KnowledgeResourceTO[] owlsources = null;
Reasoner reasoner = PelletReasonerFactory.theInstance().create();
OntDocumentManager dm = OntDocumentManager.getInstance();
dm.setProcessImports(false);
OntModelSpec spec = new OntModelSpec( OntModelSpec.OWL_DL_MEM);
spec.setDocumentManager(dm);
//spec.setReasoner(new OWLMicroReasoner(OWLMicroReasonerFactory.theInstance()));
spec.setReasoner(reasoner);
OntModel ontModel = ModelFactory.createOntologyModel( spec, null );
owlsources = owlSource.getKnowledgeResources();
logger.debug("Loading with reasoner " + owlsources.length +" resources into the model");
for ( int i = 0; i< owlsources.length ; i++ ) {
final InputStream is = owlsources[i].getKnowledgeSourceData();