/** * update the map. */ public void update() { mapFiles(); }
/** * update the map. */ public void update() { mapFiles(); }
/** * update the map. */ public void update() { mapFiles(); }
public void update() { mapFiles(); }
/** * Gets the set of ontology IRIs that this mapper has found. * * @return A {@code Set} of ontology (logical) URIs */ public Set<IRI> getOntologyIRIs() { if (!mapped) { mapFiles(); } return new HashSet<>(ontologyIRI2PhysicalURIMap.keySet()); }
/** * Gets the set of ontology IRIs that this mapper has found. * * @return A {@code Set} of ontology (logical) URIs */ public Set<IRI> getOntologyIRIs() { if (!mapped) { mapFiles(); } return new HashSet<>(ontologyIRI2PhysicalURIMap.keySet()); }
/** * Gets the set of ontology IRIs that this mapper has found. * * @return A {@code Set} of ontology (logical) URIs */ public Set<IRI> getOntologyIRIs() { if (!mapped) { mapFiles(); } return new HashSet<>(ontologyIRI2PhysicalURIMap.keySet()); }
/** * Gets the set of ontology IRIs that this mapper has found * @return A <code>Set</code> of ontology (logical) URIs */ public Set<IRI> getOntologyIRIs() { if (!mapped) { mapFiles(); } return new HashSet<IRI>(ontologyIRI2PhysicalURIMap.keySet()); }
public IRI getDocumentIRI(IRI ontologyIRI) { if (!mapped) { mapFiles(); } if (ontologyIRI.toString().endsWith(".obo")) { String path = ontologyIRI.toURI().getPath(); if (path != null) { int lastSepIndex = path.lastIndexOf('/'); String name = path.substring(lastSepIndex + 1, path.length()); IRI documentIRI = oboFileMap.get(name); if (documentIRI != null) { return documentIRI; } } } return ontologyIRI2PhysicalURIMap.get(ontologyIRI); }
@Override @Nullable public IRI getDocumentIRI(IRI ontologyIRI) { if (!mapped) { mapFiles(); } if (ontologyIRI.toString().endsWith(".obo")) { String path = ontologyIRI.toURI().getPath(); if (path != null) { int lastSepIndex = path.lastIndexOf('/'); String name = path.substring(lastSepIndex + 1, path.length()); IRI documentIRI = oboFileMap.get(name); if (documentIRI != null) { return documentIRI; } } } return ontologyIRI2PhysicalURIMap.get(ontologyIRI); }
@Override @Nullable public IRI getDocumentIRI(IRI ontologyIRI) { if (!mapped) { mapFiles(); } if (ontologyIRI.toString().endsWith(".obo")) { String path = ontologyIRI.toURI().getPath(); if (path != null) { int lastSepIndex = path.lastIndexOf('/'); String name = path.substring(lastSepIndex + 1, path.length()); IRI documentIRI = oboFileMap.get(name); if (documentIRI != null) { return documentIRI; } } } return ontologyIRI2PhysicalURIMap.get(ontologyIRI); }
@Override @Nullable public IRI getDocumentIRI(IRI ontologyIRI) { if (!mapped) { mapFiles(); } if (ontologyIRI.toString().endsWith(".obo")) { String path = ontologyIRI.toURI().getPath(); if (path != null) { int lastSepIndex = path.lastIndexOf('/'); String name = path.substring(lastSepIndex + 1, path.length()); IRI documentIRI = oboFileMap.get(name); if (documentIRI != null) { return documentIRI; } } } return ontologyIRI2PhysicalURIMap.get(ontologyIRI); }