public class OWLOntologyManagerImpl extends Object implements OWLOntologyManager, OWLOntologyFactory.OWLOntologyCreationHandler, Serializable
| Constructor and Description |
|---|
OWLOntologyManagerImpl(OWLDataFactory dataFactory) |
protected final ConcurrentMap<OWLOntologyID,OWLOntology> ontologiesByID
protected final ConcurrentMap<OWLOntologyID,IRI> documentIRIsByID
protected final ConcurrentMap<OWLOntologyID,OWLOntologyFormat> ontologyFormatsByOntology
protected final ConcurrentMap<OWLImportsDeclaration,OWLOntologyID> ontologyIDsByImportsDeclaration
protected final List<OWLOntologyIRIMapper> documentMappers
protected final List<OWLOntologyFactory> ontologyFactories
protected final List<OWLOntologyStorer> ontologyStorers
protected volatile int loadCount
protected volatile int importsLoadCount
@Deprecated protected volatile boolean silentMissingImportsHandling
protected final OWLDataFactory dataFactory
protected final ConcurrentMap<OWLOntologyID,Set<OWLOntology>> importsClosureCache
protected final OWLOntologyManagerProperties properties
protected final List<MissingImportListener> missingImportsListeners
protected final List<OWLOntologyLoaderListener> loaderListeners
protected final List<OWLOntologyChangeProgressListener> progressListeners
protected final AtomicLong autoGeneratedURICounter
protected volatile OWLOntologyChangeBroadcastStrategy defaultChangeBroadcastStrategy
protected final ImpendingOWLOntologyChangeBroadcastStrategy defaultImpendingChangeBroadcastStrategy
public OWLOntologyManagerImpl(OWLDataFactory dataFactory)
@Deprecated public OWLOntologyManagerProperties getProperties()
public OWLDataFactory getOWLDataFactory()
getOWLDataFactory in interface OWLOntologyManagerpublic Set<OWLOntology> getOntologies()
getOntologies in interface OWLOntologyManagergetOntologies in interface OWLOntologySetProviderpublic Set<OWLOntology> getOntologies(OWLAxiom axiom)
getOntologies in interface OWLOntologyManagerpublic boolean contains(OWLOntology ontology)
public boolean contains(IRI ontologyIRI)
contains in interface OWLOntologyManagerpublic boolean contains(OWLOntologyID id)
contains in interface OWLOntologyManagerpublic boolean containsVersion(IRI ontologyVersionIRI)
containsVersion in interface OWLOntologyManagerpublic Set<OWLOntologyID> getOntologyIDsByVersion(IRI ontologyVersionIRI)
getOntologyIDsByVersion in interface OWLOntologyManagerpublic OWLOntology getOntology(IRI ontologyIRI)
getOntology in interface OWLOntologyManagerpublic OWLOntology getOntology(OWLOntologyID ontologyID)
getOntology in interface OWLOntologyManagerpublic Set<OWLOntology> getVersions(IRI ontology)
getVersions in interface OWLOntologyManagerpublic OWLOntology getImportedOntology(OWLImportsDeclaration declaration)
getImportedOntology in interface OWLOntologyManagerpublic Set<OWLOntology> getDirectImports(OWLOntology ontology) throws UnknownOWLOntologyException
getDirectImports in interface OWLOntologyManagerUnknownOWLOntologyExceptionpublic Set<OWLOntology> getImports(OWLOntology ontology) throws UnknownOWLOntologyException
getImports in interface OWLOntologyManagerUnknownOWLOntologyExceptionpublic Set<OWLOntology> getImportsClosure(OWLOntology ontology)
getImportsClosure in interface OWLOntologyManagerpublic List<OWLOntology> getSortedImportsClosure(OWLOntology ontology) throws UnknownOWLOntologyException
getSortedImportsClosure in interface OWLOntologyManagerUnknownOWLOntologyExceptionpublic List<OWLOntologyChange> applyChanges(List<? extends OWLOntologyChange> changes)
applyChanges in interface OWLOntologyManagerpublic List<OWLOntologyChange> addAxiom(OWLOntology ont, OWLAxiom axiom)
addAxiom in interface OWLOntologyManagerpublic List<OWLOntologyChange> addAxioms(OWLOntology ont, Set<? extends OWLAxiom> axioms)
addAxioms in interface OWLOntologyManagerpublic List<OWLOntologyChange> removeAxiom(OWLOntology ont, OWLAxiom axiom)
removeAxiom in interface OWLOntologyManagerpublic List<OWLOntologyChange> removeAxioms(OWLOntology ont, Set<? extends OWLAxiom> axioms)
removeAxioms in interface OWLOntologyManagerpublic List<OWLOntologyChange> applyChange(OWLOntologyChange change)
applyChange in interface OWLOntologyManagerpublic void ontologyCreated(OWLOntology ontology)
ontologyCreated in interface OWLOntologyFactory.OWLOntologyCreationHandlerpublic void setOntologyFormat(OWLOntology ontology, OWLOntologyFormat format)
setOntologyFormat in interface OWLOntologyFactory.OWLOntologyCreationHandlersetOntologyFormat in interface OWLOntologyManagerpublic OWLOntologyFormat getOntologyFormat(OWLOntology ontology)
getOntologyFormat in interface OWLOntologyManagerpublic OWLOntology createOntology() throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology createOntology(IRI ontologyIRI) throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationException@Deprecated public OWLOntology createOntology(IRI ontologyIRI, IRI versionIRI) throws OWLOntologyCreationException
OWLOntologyCreationExceptionpublic OWLOntology createOntology(OWLOntologyID ontologyID) throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology createOntology(IRI ontologyIRI, Set<OWLOntology> ontologies) throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology createOntology(IRI ontologyIRI, Set<OWLOntology> ontologies, boolean copyLogicalAxiomsOnly) throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology createOntology(Set<OWLAxiom> axioms, IRI iri) throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology createOntology(Set<OWLAxiom> axioms) throws OWLOntologyCreationException
createOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionprotected IRI getNextAutoGeneratedIRI()
public OWLOntology loadOntology(IRI ontologyIRI) throws OWLOntologyCreationException
loadOntology in interface OWLOntologyManagerOWLOntologyCreationExceptionprotected OWLOntology loadOntology(IRI ontologyIRI, boolean allowExists, OWLOntologyLoaderConfiguration configuration) throws OWLOntologyCreationException
OWLOntologyCreationExceptionpublic OWLOntology loadOntologyFromOntologyDocument(IRI documentIRI) throws OWLOntologyCreationException
loadOntologyFromOntologyDocument in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology loadOntologyFromOntologyDocument(OWLOntologyDocumentSource documentSource) throws OWLOntologyCreationException
loadOntologyFromOntologyDocument in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology loadOntologyFromOntologyDocument(OWLOntologyDocumentSource documentSource, OWLOntologyLoaderConfiguration config) throws OWLOntologyCreationException
loadOntologyFromOntologyDocument in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology loadOntologyFromOntologyDocument(File file) throws OWLOntologyCreationException
loadOntologyFromOntologyDocument in interface OWLOntologyManagerOWLOntologyCreationExceptionpublic OWLOntology loadOntologyFromOntologyDocument(InputStream inputStream) throws OWLOntologyCreationException
loadOntologyFromOntologyDocument in interface OWLOntologyManagerOWLOntologyCreationExceptionprotected OWLOntology loadOntology(IRI ontologyIRI, OWLOntologyDocumentSource documentSource, OWLOntologyLoaderConfiguration configuration) throws OWLOntologyCreationException
ontologyIRI - The URI of the ontology to be loaded. This is only used to
report to listeners and may be nulldocumentSource - The input source that specifies where the ontology should be
loaded from.OWLOntologyCreationException - If the ontology could not be loaded.public void removeOntology(OWLOntology ontology)
removeOntology in interface OWLOntologyManagerpublic void removeOntology(OWLOntologyID ontologyID)
removeOntology in interface OWLOntologyManagerpublic IRI getOntologyDocumentIRI(OWLOntology ontology) throws UnknownOWLOntologyException
getOntologyDocumentIRI in interface OWLOntologyManagerUnknownOWLOntologyExceptionpublic void setOntologyDocumentIRI(OWLOntology ontology, IRI documentIRI) throws UnknownOWLOntologyException
setOntologyDocumentIRI in interface OWLOntologyManagerUnknownOWLOntologyExceptionprotected void resetImportsClosureCache()
public void saveOntology(OWLOntology ontology) throws OWLOntologyStorageException, UnknownOWLOntologyException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionUnknownOWLOntologyExceptionpublic void saveOntology(OWLOntology ontology, OWLOntologyFormat ontologyFormat) throws OWLOntologyStorageException, UnknownOWLOntologyException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionUnknownOWLOntologyExceptionpublic void saveOntology(OWLOntology ontology, IRI documentIRI) throws OWLOntologyStorageException, UnknownOWLOntologyException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionUnknownOWLOntologyExceptionpublic void saveOntology(OWLOntology ontology, OWLOntologyFormat ontologyFormat, IRI documentIRI) throws OWLOntologyStorageException, UnknownOWLOntologyException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionUnknownOWLOntologyExceptionpublic void saveOntology(OWLOntology ontology, OutputStream outputStream) throws OWLOntologyStorageException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionpublic void saveOntology(OWLOntology ontology, OWLOntologyFormat ontologyFormat, OutputStream outputStream) throws OWLOntologyStorageException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionpublic void saveOntology(OWLOntology ontology, OWLOntologyDocumentTarget documentTarget) throws OWLOntologyStorageException, UnknownOWLOntologyException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionUnknownOWLOntologyExceptionpublic void saveOntology(OWLOntology ontology, OWLOntologyFormat ontologyFormat, OWLOntologyDocumentTarget documentTarget) throws OWLOntologyStorageException, UnknownOWLOntologyException
saveOntology in interface OWLOntologyManagerOWLOntologyStorageExceptionUnknownOWLOntologyExceptionpublic void addOntologyStorer(OWLOntologyStorer storer)
addOntologyStorer in interface OWLOntologyManagerpublic void removeOntologyStorer(OWLOntologyStorer storer)
removeOntologyStorer in interface OWLOntologyManagerpublic void addIRIMapper(OWLOntologyIRIMapper mapper)
addIRIMapper in interface OWLOntologyManagerpublic void clearIRIMappers()
clearIRIMappers in interface OWLOntologyManagerpublic void removeIRIMapper(OWLOntologyIRIMapper mapper)
removeIRIMapper in interface OWLOntologyManagerpublic void addOntologyFactory(OWLOntologyFactory factory)
addOntologyFactory in interface OWLOntologyManagerpublic void removeOntologyFactory(OWLOntologyFactory factory)
removeOntologyFactory in interface OWLOntologyManagerpublic Collection<OWLOntologyFactory> getOntologyFactories()
getOntologyFactories in interface OWLOntologyManagerprotected void installDefaultURIMappers()
protected void installDefaultOntologyFactories()
public void addOntologyChangeListener(OWLOntologyChangeListener listener)
addOntologyChangeListener in interface OWLOntologyManagerprotected void broadcastChanges(List<? extends OWLOntologyChange> changes)
changes - The ontology changes to broadcastprotected void broadcastImpendingChanges(List<? extends OWLOntologyChange> changes) throws OWLOntologyChangeVetoException
OWLOntologyChangeVetoExceptionpublic void setDefaultChangeBroadcastStrategy(OWLOntologyChangeBroadcastStrategy strategy)
setDefaultChangeBroadcastStrategy in interface OWLOntologyManagerpublic void addOntologyChangeListener(OWLOntologyChangeListener listener, OWLOntologyChangeBroadcastStrategy strategy)
addOntologyChangeListener in interface OWLOntologyManagerpublic void addImpendingOntologyChangeListener(ImpendingOWLOntologyChangeListener listener)
addImpendingOntologyChangeListener in interface OWLOntologyManagerpublic void removeImpendingOntologyChangeListener(ImpendingOWLOntologyChangeListener listener)
removeImpendingOntologyChangeListener in interface OWLOntologyManagerpublic void removeOntologyChangeListener(OWLOntologyChangeListener listener)
removeOntologyChangeListener in interface OWLOntologyManagerpublic void addOntologyChangesVetoedListener(OWLOntologyChangesVetoedListener listener)
addOntologyChangesVetoedListener in interface OWLOntologyManagerpublic void removeOntologyChangesVetoedListener(OWLOntologyChangesVetoedListener listener)
removeOntologyChangesVetoedListener in interface OWLOntologyManagerprotected OWLOntology loadImports(OWLImportsDeclaration declaration, OWLOntologyLoaderConfiguration configuration) throws OWLOntologyCreationException
OWLOntologyCreationExceptionpublic void makeLoadImportRequest(OWLImportsDeclaration declaration) throws UnloadableImportException
makeLoadImportRequest in interface OWLOntologyManagerUnloadableImportExceptionpublic void makeLoadImportRequest(OWLImportsDeclaration declaration, OWLOntologyLoaderConfiguration configuration) throws UnloadableImportException
makeLoadImportRequest in interface OWLOntologyManagerUnloadableImportExceptionpublic void setSilentMissingImportsHandling(boolean b)
setSilentMissingImportsHandling in interface OWLOntologyManagerpublic boolean isSilentMissingImportsHandling()
isSilentMissingImportsHandling in interface OWLOntologyManagerpublic void addMissingImportListener(MissingImportListener listener)
addMissingImportListener in interface OWLOntologyManagerpublic void removeMissingImportListener(MissingImportListener listener)
removeMissingImportListener in interface OWLOntologyManagerprotected void fireMissingImportEvent(MissingImportEvent evt)
public void addOntologyLoaderListener(OWLOntologyLoaderListener listener)
addOntologyLoaderListener in interface OWLOntologyManagerpublic void removeOntologyLoaderListener(OWLOntologyLoaderListener listener)
removeOntologyLoaderListener in interface OWLOntologyManagerprotected void fireStartedLoadingEvent(OWLOntologyID ontologyID, IRI documentIRI, boolean imported)
protected void fireFinishedLoadingEvent(OWLOntologyID ontologyID, IRI documentIRI, boolean imported, OWLOntologyCreationException ex)
public void addOntologyChangeProgessListener(OWLOntologyChangeProgressListener listener)
addOntologyChangeProgessListener in interface OWLOntologyManagerpublic void removeOntologyChangeProgessListener(OWLOntologyChangeProgressListener listener)
removeOntologyChangeProgessListener in interface OWLOntologyManagerprotected void fireBeginChanges(int size)
protected void fireEndChanges()
protected void fireChangeApplied(OWLOntologyChange change)
Copyright © 2013 CSIRO HRPPC. All Rights Reserved.