@Override public void removeOntology(OWLOntologyID ontologyID) { delegate.removeOntology(ontologyID); }
private void reset() { if (debuggingOntology != null) { man.removeOntology(verifyNotNull(debuggingOntology)); debuggingOntology = null; } debuggingAxioms.clear(); objectsExpandedWithDefiningAxioms.clear(); objectsExpandedWithReferencingAxioms.clear(); expandedWithDefiningAxioms.clear(); expandedWithReferencingAxioms.clear(); expansionLimit = initialExpansionLimit; }
private void reset() { if (debuggingOntology != null) { man.removeOntology(verifyNotNull(debuggingOntology)); debuggingOntology = null; } debuggingAxioms.clear(); objectsExpandedWithDefiningAxioms.clear(); objectsExpandedWithReferencingAxioms.clear(); expandedWithDefiningAxioms.clear(); expandedWithReferencingAxioms.clear(); expansionLimit = initialExpansionLimit; }
/** * Attempts to remove an ontology. The ontology which is identified by the specified IRI is * removed regardless of whether it is referenced by other ontologies via imports statements. * * @param ontology The ontology to be removed. If this manager does not manage the ontology then * nothing happens. */ default void removeOntology(OWLOntology ontology) { removeOntology(ontology.getOntologyID()); }
/** * Attempts to remove an ontology. The ontology which is identified by the specified IRI is * removed regardless of whether it is referenced by other ontologies via imports statements. * * @param ontology The ontology to be removed. If this manager does not manage the ontology then * nothing happens. */ default void removeOntology(OWLOntology ontology) { removeOntology(ontology.getOntologyID()); }
public static void clearOWLOntologyManager() { for (OWLOntology ont : manager.getOntologies()) { manager.removeOntology(ont); } }
public void unloadOntologies() { Set<OWLOntology> ontologies = owlOntologyManager.getOntologies(); for (OWLOntology ontology : ontologies) { owlOntologyManager.removeOntology(ontology); } }
/** * Attempts to remove an ontology. The ontology which is identified by the specified IRI is * removed regardless of whether it is referenced by other ontologies via imports statements. * * @param ontology The ontology to be removed. If this manager does not manage the ontology then * nothing happens. */ default void removeOntology(OWLOntology ontology) { removeOntology(ontology.getOntologyID()); }
private void reset() { if (debuggingOntology != null) { man.removeOntology(verifyNotNull(debuggingOntology)); debuggingOntology = null; } debuggingAxioms.clear(); objectsExpandedWithDefiningAxioms.clear(); objectsExpandedWithReferencingAxioms.clear(); expandedWithDefiningAxioms.clear(); expandedWithReferencingAxioms.clear(); expansionLimit = initialExpansionLimit; }
@Override public void removeOntology(OWLOntology ontology) { if (sealed) { throw new OntologyRemovalNotAllowedException(); } delegate.removeOntology(ontology); }
private void createDebuggingOntology() throws OWLException { if (debuggingOntology != null) { man.removeOntology(verifyNotNull(debuggingOntology)); } debuggingOntology = man.createOntology(debuggingAxioms); }
private void createDebuggingOntology() throws OWLException { if (debuggingOntology != null) { man.removeOntology(verifyNotNull(debuggingOntology)); } debuggingOntology = man.createOntology(debuggingAxioms); }
public void releaseMemory() { manager.removeMissingImportListener(missingListener); manager.removeOntology(ontology); vowlData.Destructore(); vowlData=null; missingListener=null; manager=null; ontology=null; }
private void createDebuggingOntology() throws OWLException { if (debuggingOntology != null) { man.removeOntology(verifyNotNull(debuggingOntology)); } debuggingOntology = man.createOntology(debuggingAxioms); }
@Override public void clearOntologies() { final Set<OWLOntology> onts = mngr.getOntologies(); onts.remove(rootOntology); for (OWLOntology ont : onts){ mngr.removeOntology(ont); } resetRootImports(); setActiveOntology(rootOntology); }
default void remove(final OWLHelper helper) { helper.dispose(); helper.getManager().removeOntology(helper.getOntology()); } }
protected static OWLOntology extractDeclarations(OWLOntologyManager manager, OWLOntology ontology) throws OWLOntologyCreationException { IRI ontologyIRI = ontology.getOntologyID().getOntologyIRI().get(); System.err.println("Ontology " + ontologyIRI); Set<OWLDeclarationAxiom> declarationAxioms = ontology.getAxioms(AxiomType.DECLARATION); manager.removeOntology(ontology); OWLOntology newOntology = manager.createOntology(ontologyIRI); manager.addAxioms(newOntology, declarationAxioms); return newOntology; }
private void testPersistence(final String file) throws IOException { final OWLOntology ontology = OntologyUtils.loadOntology(_manager, "file:" + file, false); try { testPersistence(ontology); } finally { OWL._manager.removeOntology(ontology); } }
private void modularityTest(final String file) { final OWLOntology ontology = OntologyUtils.loadOntology(_manager, "file:" + file, false); final Set<OWLEntity> signature = new HashSet<>(); signature.addAll(TestUtils.selectRandomElements(ontology.classesInSignature().collect(Collectors.toList()), 5)); modularityTest(ontology, signature); _manager.removeOntology(ontology); }
@Override public OWLOntology reloadOntology(OWLOntology ontology) throws OWLOntologyCreationException { URI physicalLocation = getOWLOntologyManager().getOntologyDocumentIRI(ontology).toURI(); mngr.removeOntology(ontology); OWLOntology ont = mngr.loadOntologyFromOntologyDocument(IRI.create(physicalLocation)); resetRootImports(); clear(); return ont; }