LocalOntology implements Ontology { public Ontology getInstance() { if (ontology == null) { ontology = new LocalOntology(); } return ontology; } 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 testGetInstance() { assertSame("Ontology instance should be of type LocalOntology", LocalOntology.class, lOnt.getInstance().getClass()); }