/** * Seek the asked ontology. First in the volatile ontologies, then in the stored ontologies that are already stored. * * @param ontologyID the id of the ontology you are looking for. * @param isVolatile * @return an ontology if found. * @since 2.6.0 */ default Optional<OWLHelper> getOntology(final OWLOntologyID ontologyID, final boolean isVolatile) { try { return Optional.of(new OWLGenericTools(this, ontologyID, isVolatile)); } catch (final Exception e) { getLogger().log(Level.WARNING, "Can't load " + ontologyID + " in volatile=" + isVolatile + " mode", e); return Optional.empty(); } }
/** * Seek the asked ontology. First in the volatile ontologies, then in the stored ontologies that are already stored. * * @param ontologyID the id of the ontology you are looking for. * @param isVolatile * @return an ontology if found. * @since 2.6.0 */ default Optional<OWLHelper> getOntology(final OWLOntologyID ontologyID, final boolean isVolatile) { try { return Optional.of(new OWLGenericTools(this, ontologyID, isVolatile)); } catch (final Exception e) { getLogger().log(Level.WARNING, "Can't load " + ontologyID + " in volatile=" + isVolatile + " mode", e); return Optional.empty(); } }
/** * Seek the asked ontology. First in the volatile ontologies, then in the stored ontologies that are already stored. * * @param ontologyID the id of the ontology you are looking for. * @param isVolatile * @return an ontology if found. * @since 2.6.0 */ default Optional<OWLHelper> getOntology(final OWLOntologyID ontologyID, final boolean isVolatile) { try { return Optional.of(new OWLGenericTools(this, ontologyID, isVolatile)); } catch (final Exception e) { getLogger().log(Level.WARNING, "Can't load " + ontologyID + " in volatile=" + isVolatile + " mode", e); return Optional.empty(); } }