public interface OntologyCollector extends OntologyCollectorListenable, NamedArtifact, OntologyInputSourceHandler
| Modifier and Type | Method and Description |
|---|---|
org.semanticweb.owlapi.model.OWLOntologyID |
addOntology(OntologyInputSource<?> ontology)
Adds the given ontology to the ontology collector.
|
<O> Set<O> |
getManagedOntologies(Class<O> returnType,
boolean withClosure)
Deprecated.
Please simulate this method manually by iterating
getOntology(OWLOntologyID, Class) calls over listManagedOntologies() |
<O> O |
getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType)
Deprecated.
Please use
getOntology(OWLOntologyID, Class) instead. |
<O> O |
getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType,
boolean merge)
Deprecated.
Please use
getOntology(OWLOntologyID, Class, boolean) instead. |
<O> O |
getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType,
boolean merge,
org.semanticweb.owlapi.model.IRI universalPrefix)
Deprecated.
Please use
getOntology(OWLOntologyID, Class, boolean, IRI) instead. |
<O> O |
getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType,
org.semanticweb.owlapi.model.IRI universalPrefix)
Deprecated.
Please use
getOntology(OWLOntologyID, Class, IRI) instead. |
<O> O |
getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType)
Returns the managed ontology with the specified public key as a Java object of the specified type, if
supported.
|
<O> O |
getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType,
boolean merge)
Returns the managed ontology with the specified public key as a Java object of the specified type, if
supported.
|
<O> O |
getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType,
boolean merge,
org.semanticweb.owlapi.model.IRI universalPrefix)
Returns the managed ontology with the specified public key as a Java object of the specified type, if
supported.
|
<O> O |
getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType,
org.semanticweb.owlapi.model.IRI universalPrefix)
Returns the managed ontology with the specified public key as a Java object of the specified type, if
supported.
|
boolean |
hasOntology(org.semanticweb.owlapi.model.IRI ontologyId)
Deprecated.
the usage of
IRI to identify ontologies is reductive. Please create a new
OWLOntologyID.OWLOntologyID(IRI) from this IRI and use
hasOntology(OWLOntologyID) with this new public key as a parameter. |
boolean |
hasOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey)
Determines if the ontology identified by the supplied public key is being managed by this collector.
|
Set<org.semanticweb.owlapi.model.OWLOntologyID> |
listManagedOntologies()
Gets the public key set of all the ontologies managed by this ontology collector.
|
void |
removeOntology(org.semanticweb.owlapi.model.IRI ontologyId)
Deprecated.
the usage of
IRI to identify ontologies is reductive. Please create a new
OWLOntologyID.OWLOntologyID(IRI) from this IRI and use
removeOntology(OWLOntologyID) with this new public key as a parameter. |
void |
removeOntology(org.semanticweb.owlapi.model.OWLOntologyID ontologyId)
Removes the given ontology from the ontology collector, if it was being managed.
|
void |
setUp()
Bootstraps the ontology space.
|
void |
tearDown()
Performs all required operations for disposing of an ontology space and releasing its resources (e.g.
|
addOntologyCollectorListener, clearOntologyCollectorListeners, getOntologyCollectorListeners, removeOntologyCollectorListenergetDefaultNamespace, getID, getNamespace, setDefaultNamespace, setNamespacegetSupportedOntologyTypesorg.semanticweb.owlapi.model.OWLOntologyID addOntology(OntologyInputSource<?> ontology)
ontology - the ontology to be added<O> Set<O> getManagedOntologies(Class<O> returnType, boolean withClosure)
getOntology(OWLOntologyID, Class) calls over listManagedOntologies()getOntology(OWLOntologyID, Class) calls over listManagedOntologies().withClosure - if true, also the ontologies imported by those directly managed by this space will be
included.<O> O getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType)
getOntology(OWLOntologyID, Class) instead.ontologyIri - returnType - <O> O getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType,
boolean merge)
getOntology(OWLOntologyID, Class, boolean) instead.ontologyIri - returnType - merge - <O> O getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType,
boolean merge,
org.semanticweb.owlapi.model.IRI universalPrefix)
getOntology(OWLOntologyID, Class, boolean, IRI) instead.ontologyIri - returnType - merge - universalPrefix - <O> O getOntology(org.semanticweb.owlapi.model.IRI ontologyIri,
Class<O> returnType,
org.semanticweb.owlapi.model.IRI universalPrefix)
getOntology(OWLOntologyID, Class, IRI) instead.ontologyIri - returnType - universalPrefix - <O> O getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType)
publicKey is invalid or no such ontology exists, or whether
the desired return type is not supported, is implementation-dependent. However, developers should at
least expect that the methods either returns null or throws a
MissingOntologyException if no such ontology is managed by this collector. Likewise, if
returnType is not supported, an UnsupportedOperationException could be expected to
be thrown.publicKey - the public identifier of the requested ontology.returnType - the desired type of the ontology object.<O> O getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType,
boolean merge)
publicKey is invalid or no such ontology exists, or whether
the desired return type is not supported, is implementation-dependent. However, developers should at
least expect that the methods either returns null or throws a
MissingOntologyException if no such ontology is managed by this collector. Likewise, if
returnType is not supported, an UnsupportedOperationException could be expected to
be thrown.publicKey - the public identifier of the requested ontology.returnType - the desired type of the ontology object.merge - if true, the requested ontology will be merged with its imports up to whatever supported
level.<O> O getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType,
boolean merge,
org.semanticweb.owlapi.model.IRI universalPrefix)
publicKey is invalid or no such ontology exists, or whether
the desired return type is not supported, is implementation-dependent. However, developers should at
least expect that the methods either returns null or throws a
MissingOntologyException if no such ontology is managed by this collector. Likewise, if
returnType is not supported, an UnsupportedOperationException could be expected to
be thrown.publicKey - the public identifier of the requested ontology.returnType - the desired type of the ontology object.merge - if true, the requested ontology will be merged with its imports up to whatever supported
level.universalPrefix - the IRI to be used as a prefix and/or namespace for all derived IRIs, e.g. OWL import
statements and version IRIs.<O> O getOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey,
Class<O> returnType,
org.semanticweb.owlapi.model.IRI universalPrefix)
publicKey is invalid or no such ontology exists, or whether
the desired return type is not supported, is implementation-dependent. However, developers should at
least expect that the methods either returns null or throws a
MissingOntologyException if no such ontology is managed by this collector. Likewise, if
returnType is not supported, an UnsupportedOperationException could be expected to
be thrown.publicKey - the public identifier of the requested ontology.returnType - the desired type of the ontology object.universalPrefix - the IRI to be used as a prefix and/or namespace for all derived IRIs, e.g. OWL import
statements and version IRIs.boolean hasOntology(org.semanticweb.owlapi.model.IRI ontologyId)
IRI to identify ontologies is reductive. Please create a new
OWLOntologyID.OWLOntologyID(IRI) from this IRI and use
hasOntology(OWLOntologyID) with this new public key as a parameter.OWLOntologyID that wraps either the physical URL or the identifier chosen by Stanbol as its
ontologyIRI.publicKey - the logical identifier of the ontology to query for.boolean hasOntology(org.semanticweb.owlapi.model.OWLOntologyID publicKey)
OWLOntologyID that wraps either the physical URL or the identifier chosen by Stanbol as its
ontologyIRI.publicKey - the logical identifier of the ontology to query for.Set<org.semanticweb.owlapi.model.OWLOntologyID> listManagedOntologies()
void removeOntology(org.semanticweb.owlapi.model.IRI ontologyId)
IRI to identify ontologies is reductive. Please create a new
OWLOntologyID.OWLOntologyID(IRI) from this IRI and use
removeOntology(OWLOntologyID) with this new public key as a parameter.MissingOntologyException.OntologyProvider.ontologyIri - the identifier of this ontology.void removeOntology(org.semanticweb.owlapi.model.OWLOntologyID ontologyId)
MissingOntologyException.OntologyProvider.ontologyIri - the identifier of this ontology.void setUp()
void tearDown()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.