@Ignore @Test public final void testRetrieve() { fail("Not yet implemented"); }
public Map<OntResource, String> retrieve(String label) { @SuppressWarnings("unchecked") Map<OntResource, String> m = (Map<OntResource, String>) searchTerms.get(label.toLowerCase(Locale.ENGLISH)); if (m == null) { m = new HashMap<>(); } return m; }
LocalOntology implements Ontology { public Map<OntResource, String> retrieve(String label) { @SuppressWarnings("unchecked") Map<OntResource, String> m = (Map<OntResource, String>) searchTerms.get(label.toLowerCase(Locale.ENGLISH)); if (m == null) { m = new HashMap<>(); } return m; } }
LocalOntology implements Ontology { public Map<OntResource, String> retrieve(String label) { @SuppressWarnings("unchecked") Map<OntResource, String> m = (Map<OntResource, String>) searchTerms.get(label.toLowerCase(Locale.ENGLISH)); if (m == null) { m = new HashMap<>(); } return m; } LocalOntology(); }
LocalOntology implements Ontology { public Map<OntResource, String> retrieve(String label) { @SuppressWarnings("unchecked") Map<OntResource, String> m = (Map<OntResource, String>) searchTerms.get(label.toLowerCase(Locale.ENGLISH)); if (m == null) { m = new HashMap<>(); } return m; } 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); }
LocalOntology implements Ontology { public Map<OntResource, String> retrieve(String label) { @SuppressWarnings("unchecked") Map<OntResource, String> m = (Map<OntResource, String>) searchTerms.get(label.toLowerCase(Locale.ENGLISH)); if (m == null) { m = new HashMap<>(); } return m; } 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; }