private OntologyManager() { _manager = OWLManager.createOWLOntologyManager(); try { _ontology = _manager.loadOntology(IRI.create(getClass().getResource(ONTOLOGY_RESOURCE_PATH))); for (OWLAnnotation anon : _ontology.getAnnotations()) { if (anon.getProperty().getIRI().toString().equals(DomainOntology.taxonomyDefinedBy)) { _taxonomyType = anon.getValue().toString().replace("\"", ""); break; } } _reasoner = new StructuralReasonerFactory().createReasoner(_ontology); } catch (OWLOntologyCreationException ex) { Log.e(TAG, "Error while loading the domain ontology"); _taxonomyType = null; } }