LocalOntology implements Ontology { public LocalOntology() { if (ontology == null) { if (LOG.isInfoEnabled()) { LOG.info("Creating new ontology"); } parser = new OwlParser(); ontology = this; } if (ontologyModel == null) ontologyModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null); load(); } LocalOntology(); Ontology getInstance(); @Override void load(); @Override void load(String[] urls); OntologyParser getParser(); static OntModel getModel(); List<String> getLoadedOntologyResources(); @Override void merge(Ontology o); @Override Iterator<String> subclasses(String entitySearchTerm); @Override Iterator synonyms(String queryKeyPhrase); void addSearchTerm(String label, OntResource resource); Map<OntResource, String> retrieve(String label); static void renderClassDescription(PrintStream out, OntClass c, int depth); static final Logger LOG; static final String DELIMITER_SEARCHTERM; }
@Test public final void testLocalOntology() { assertNotNull("Test setUp should create a new instance of LocalOntology.", lOnt); }