public class OWLImmutableOntologyImpl extends OWLAxiomIndexImpl implements OWLOntology, Serializable
| Constructor and Description |
|---|
OWLImmutableOntologyImpl(OWLOntologyManager manager,
OWLOntologyID ontologyID) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLNamedObjectVisitor visitor)
accept for named object visitor
|
<O> O |
accept(OWLNamedObjectVisitorEx<O> visitor)
Accepts a visitor
|
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
boolean |
contains(OWLAxiomSearchFilter filter,
Object key,
Imports includeImportsClosure)
Generic containment check type for further refining search by axiom type.
|
boolean |
containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI)
Determines if the signature contains an OWLAnnotationProperty that has
the specified IRI.
|
boolean |
containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI,
boolean includeImportsClosure)
Determines if the signature contains an OWLAnnotationProperty that has
the specified IRI.
|
boolean |
containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI,
Imports includeImportsClosure)
Determines if the signature contains an OWLAnnotationProperty that has
the specified IRI.
|
boolean |
containsAxiom(OWLAxiom axiom)
Determines whether or not this object contains a particular
OWLAxiom. |
boolean |
containsAxiom(OWLAxiom axiom,
boolean includeImportsClosure)
Determines if this ontology contains the specified axiom, optionally
including the imports closure.
|
boolean |
containsAxiom(OWLAxiom axiom,
Imports includeImportsClosure,
AxiomAnnotations ignoreAnnotations)
Determines if this ontology contains the specified axiom, optionally
including the imports closure.
|
boolean |
containsAxiomIgnoreAnnotations(OWLAxiom axiom)
Determines if this ontology contains the specified axiom.
|
boolean |
containsAxiomIgnoreAnnotations(OWLAxiom axiom,
boolean importsIncluded)
Determines if this ontology contains the specified axiom, optionally
including the imports closure.
|
boolean |
containsClassInSignature(IRI owlClassIRI)
Determines if the signature contains an OWLClass that has the specified
IRI.
|
boolean |
containsClassInSignature(IRI owlClassIRI,
boolean includeImportsClosure)
Determines if the signature contains an OWLClass that has the specified
IRI.
|
boolean |
containsClassInSignature(IRI owlClassIRI,
Imports includeImportsClosure)
Determines if the signature contains an OWLClass that has the specified
IRI.
|
boolean |
containsDataPropertyInSignature(IRI owlDataPropertyIRI)
Determines if the signature contains an OWLDataProperty that has the
specified IRI.
|
boolean |
containsDataPropertyInSignature(IRI owlDataPropertyIRI,
boolean includeImportsClosure)
Determines if the signature contains an OWLDataProperty that has the
specified IRI.
|
boolean |
containsDataPropertyInSignature(IRI owlDataPropertyIRI,
Imports includeImportsClosure)
Determines if the signature contains an OWLDataProperty that has the
specified IRI.
|
boolean |
containsDatatypeInSignature(IRI owlDatatypeIRI)
Determines if the signature contains an OWLDatatype that has the
specified IRI.
|
boolean |
containsDatatypeInSignature(IRI owlDatatypeIRI,
boolean includeImportsClosure)
Determines if the signature contains an OWLDatatype that has the
specified IRI.
|
boolean |
containsDatatypeInSignature(IRI owlDatatypeIRI,
Imports includeImportsClosure)
Determines if the signature contains an OWLDatatype that has the
specified IRI.
|
boolean |
containsEntityInSignature(IRI entityIRI)
Determines if the signature contains an entity with the specified IRI.
|
boolean |
containsEntityInSignature(IRI entityIRI,
boolean includeImportsClosure)
Determines if the signature contains an entity with the specified IRI.
|
boolean |
containsEntityInSignature(IRI entityIRI,
Imports includeImportsClosure)
Determines if the signature contains an entity with the specified IRI.
|
boolean |
containsEntityInSignature(OWLEntity owlEntity)
Determines if the signature of this object contains the specified entity.
|
boolean |
containsEntityInSignature(OWLEntity owlEntity,
boolean includeImportsClosure)
Determines if the signature contains the specified entity.
|
boolean |
containsEntityInSignature(OWLEntity owlEntity,
Imports includeImportsClosure)
Determines if the signature contains the specified entity.
|
boolean |
containsIndividualInSignature(IRI owlIndividualIRI)
Determines if the signature contains an OWLNamedIndividual that has the
specified IRI.
|
boolean |
containsIndividualInSignature(IRI owlIndividualIRI,
boolean includeImportsClosure)
Determines if the signature contains an OWLNamedIndividual that has the
specified IRI.
|
boolean |
containsIndividualInSignature(IRI owlIndividualIRI,
Imports includeImportsClosure)
Determines if the signature contains an OWLNamedIndividual that has the
specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI owlObjectPropertyIRI)
Determines if the signature contains an OWLObjectProperty that has the
specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI owlObjectPropertyIRI,
boolean includeImportsClosure)
Determines if the signature contains an OWLObjectProperty that has the
specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI owlObjectPropertyIRI,
Imports includeImportsClosure)
Determines if the signature contains an OWLObjectProperty that has the
specified IRI.
|
boolean |
containsReference(OWLEntity entity) |
boolean |
containsReference(OWLEntity entity,
boolean includeImportsClosure) |
boolean |
containsReference(OWLEntity entity,
Imports includeImportsClosure) |
boolean |
equals(Object obj) |
<T extends OWLAxiom> |
filterAxioms(OWLAxiomSearchFilter filter,
Object key,
Imports includeImportsClosure)
Generic filter type for further refining search by axiom type.
|
Set<OWLAxiom> |
getABoxAxioms(Imports includeImportsClosure)
Gets the axioms that form the ABox for this ontology, i.e., the ones
whose type is in the AxiomType::ABoxAxiomTypes.
|
Set<OWLAnnotationProperty> |
getAnnotationPropertiesInSignature(boolean includeImportsClosure)
Gets the annotation properties in the signature and optionally the
imports closure.
|
Set<OWLAnnotationProperty> |
getAnnotationPropertiesInSignature(Imports includeImportsClosure)
Gets the annotation properties in the signature and optionally the
imports closure.
|
Set<OWLAnnotation> |
getAnnotations()
Gets the annotations on this ontology.
|
Set<OWLAnonymousIndividual> |
getAnonymousIndividuals()
Gets the anonymous individuals occurring in this object.
|
int |
getAxiomCount() |
<T extends OWLAxiom> |
getAxiomCount(AxiomType<T> axiomType)
Gets the axiom count of a specific type of axiom.
|
<T extends OWLAxiom> |
getAxiomCount(AxiomType<T> axiomType,
boolean includeImportsClosure)
Gets the axiom count of a specific type of axiom, optionally including
the imports closure.
|
<T extends OWLAxiom> |
getAxiomCount(AxiomType<T> axiomType,
Imports includeImportsClosure)
Gets the axiom count of a specific type of axiom, optionally including
the imports closure.
|
int |
getAxiomCount(boolean includeImportsClosure) |
int |
getAxiomCount(Imports includeImportsClosure) |
Set<OWLAxiom> |
getAxioms()
Gets the
OWLAxioms contained in this object. |
<T extends OWLAxiom> |
getAxioms(AxiomType<T> axiomType)
Gets the axioms which are of the specified type.
|
<T extends OWLAxiom> |
getAxioms(AxiomType<T> axiomType,
boolean includeImportsClosure)
Gets all axioms of the specified type.
|
<T extends OWLAxiom> |
getAxioms(AxiomType<T> axiomType,
Imports includeImportsClosure)
Gets all axioms of the specified type.
|
Set<OWLAxiom> |
getAxioms(boolean b) |
<A extends OWLAxiom> |
getAxioms(Class<A> type,
Class<? extends OWLObject> explicitClass,
OWLObject entity,
Imports includeImports,
Navigation forSubPosition)
Generic search method: resutns all axioms which refer entity, are
instances of type, optionally including the imports closure in the
results.
|
<A extends OWLAxiom> |
getAxioms(Class<A> type,
OWLObject entity,
Imports includeImports,
Navigation forSubPosition)
Generic search method: returns all axioms which refer entity, are
instances of type, optionally including the imports closure in the
results.
|
Set<OWLAxiom> |
getAxioms(Imports includeImportsClosure) |
Set<OWLAnnotationAxiom> |
getAxioms(OWLAnnotationProperty property)
Gets the axioms that form the definition/description of an annotation
property.
|
Set<OWLAnnotationAxiom> |
getAxioms(OWLAnnotationProperty property,
boolean includeImportsClosure)
Gets the axioms that form the definition/description of an annotation
property.
|
Set<OWLAnnotationAxiom> |
getAxioms(OWLAnnotationProperty property,
Imports includeImportsClosure)
Gets the axioms that form the definition/description of an annotation
property.
|
Set<OWLClassAxiom> |
getAxioms(OWLClass cls)
Gets the axioms that form the definition/description of a class.
|
Set<OWLClassAxiom> |
getAxioms(OWLClass cls,
boolean includeImportsClosure)
Gets the axioms that form the definition/description of a class.
|
Set<OWLClassAxiom> |
getAxioms(OWLClass cls,
Imports includeImportsClosure)
Gets the axioms that form the definition/description of a class.
|
Set<OWLDataPropertyAxiom> |
getAxioms(OWLDataProperty property)
Gets the axioms that form the definition/description of a data property.
|
Set<OWLDataPropertyAxiom> |
getAxioms(OWLDataProperty property,
boolean includeImportsClosure)
Gets the axioms that form the definition/description of a data property.
|
Set<OWLDataPropertyAxiom> |
getAxioms(OWLDataProperty property,
Imports includeImportsClosure)
Gets the axioms that form the definition/description of a data property.
|
Set<OWLDatatypeDefinitionAxiom> |
getAxioms(OWLDatatype datatype)
Gets the datatype definition axioms for the specified datatype.
|
Set<OWLDatatypeDefinitionAxiom> |
getAxioms(OWLDatatype datatype,
boolean includeImportsClosure)
Gets the datatype definition axioms for the specified datatype.
|
Set<OWLDatatypeDefinitionAxiom> |
getAxioms(OWLDatatype datatype,
Imports includeImportsClosure)
Gets the datatype definition axioms for the specified datatype.
|
Set<OWLIndividualAxiom> |
getAxioms(OWLIndividual individual)
Gets the axioms that form the definition/description of an individual.
|
Set<OWLIndividualAxiom> |
getAxioms(OWLIndividual individual,
boolean includeImportsClosure)
Gets the axioms that form the definition/description of an individual.
|
Set<OWLIndividualAxiom> |
getAxioms(OWLIndividual individual,
Imports includeImportsClosure)
Gets the axioms that form the definition/description of an individual.
|
Set<OWLObjectPropertyAxiom> |
getAxioms(OWLObjectPropertyExpression property)
Gets the axioms that form the definition/description of an object
property.
|
Set<OWLObjectPropertyAxiom> |
getAxioms(OWLObjectPropertyExpression property,
boolean includeImportsClosure)
Gets the axioms that form the definition/description of an object
property.
|
Set<OWLObjectPropertyAxiom> |
getAxioms(OWLObjectPropertyExpression property,
Imports includeImportsClosure)
Gets the axioms that form the definition/description of an object
property.
|
Set<OWLAxiom> |
getAxiomsIgnoreAnnotations(OWLAxiom axiom)
Gets the set of axioms contained in this collection that have the same
"logical structure" as the specified axiom; i.e., all axioms that equal
the specified axiom, when ignoring annotations.
|
Set<OWLAxiom> |
getAxiomsIgnoreAnnotations(OWLAxiom axiom,
boolean includeImportsClosure)
Gets the set of axioms contained in this collection that have the same
"logical structure" as the specified axiom; i.e., all axioms that equal
the specified axiom, when ignoring annotations.
|
Set<OWLAxiom> |
getAxiomsIgnoreAnnotations(OWLAxiom axiom,
Imports includeImportsClosure)
Gets the set of axioms contained in this collection that have the same
"logical structure" as the specified axiom; i.e., all axioms that equal
the specified axiom, when ignoring annotations.
|
Set<OWLClass> |
getClassesInSignature()
Gets the classes in the signature of this object.
|
Set<OWLClass> |
getClassesInSignature(boolean includeImportsClosure)
Gets the classes in the signature and optionally the imports closure.
|
Set<OWLClass> |
getClassesInSignature(Imports includeImportsClosure)
Gets the classes in the signature and optionally the imports closure.
|
Set<OWLDataProperty> |
getDataPropertiesInSignature()
A convenience method that obtains the data properties that are in the
signature of this object
|
Set<OWLDataProperty> |
getDataPropertiesInSignature(boolean includeImportsClosure)
Gets the data properties in the signature and optionally the imports
closure.
|
Set<OWLDataProperty> |
getDataPropertiesInSignature(Imports includeImportsClosure)
Gets the data properties in the signature and optionally the imports
closure.
|
Set<OWLDatatype> |
getDatatypesInSignature()
A convenience method that obtains the datatypes that are in the signature
of this object
|
Set<OWLDatatype> |
getDatatypesInSignature(boolean includeImportsClosure)
Gets the datatypes in the signature and optionally the imports closure.
|
Set<OWLDatatype> |
getDatatypesInSignature(Imports includeImportsClosure)
Gets the datatypes in the signature and optionally the imports closure.
|
Set<OWLOntology> |
getDirectImports()
Gets the set of loaded ontologies that this ontology is related
to via the directlyImports relation.
|
Set<IRI> |
getDirectImportsDocuments()
Gets the set of document IRIs that are directly imported by this
ontology.
|
Set<OWLEntity> |
getEntitiesInSignature(IRI entityIRI) |
Set<OWLEntity> |
getEntitiesInSignature(IRI iri,
boolean includeImportsClosure)
Gets the entities in the signature that have the specified IRI.
|
Set<OWLEntity> |
getEntitiesInSignature(IRI iri,
Imports includeImportsClosure)
Gets the entities in the signature that have the specified IRI.
|
Set<OWLClassAxiom> |
getGeneralClassAxioms()
Gets the set of general axioms in this ontology.
|
Set<OWLOntology> |
getImports()
Gets the set of loaded ontologies that this ontology is related
to via the transitive closure of the directlyImports
relation.
For example, if this ontology imports ontology B, and ontology B imports ontology C, then this method will return the set consisting of ontology B and ontology C. |
Set<OWLOntology> |
getImportsClosure()
Gets the set of loaded ontologies that this ontology is related
to via the reflexive transitive closure of the directlyImports
relation as defined in Section 3.4 of the OWL 2 Structural Specification.
|
Set<OWLImportsDeclaration> |
getImportsDeclarations()
Gets the set of imports declarations for this ontology.
|
Set<OWLNamedIndividual> |
getIndividualsInSignature()
A convenience method that obtains the individuals that are in the
signature of this object
|
Set<OWLNamedIndividual> |
getIndividualsInSignature(boolean includeImportsClosure)
Gets the named individuals in the signature and optionally the imports
closure.
|
Set<OWLNamedIndividual> |
getIndividualsInSignature(Imports includeImportsClosure)
Gets the named individuals in the signature and optionally the imports
closure.
|
int |
getLogicalAxiomCount()
Gets the number of logical axioms in this collection.
|
int |
getLogicalAxiomCount(boolean includeImportsClosure)
Gets the number of logical axioms in this collection, optionally
including the imports closure.
|
int |
getLogicalAxiomCount(Imports includeImportsClosure)
Gets the number of logical axioms in this collection, optionally
including the imports closure.
|
Set<OWLLogicalAxiom> |
getLogicalAxioms()
Gets the set of
OWLLogicalAxioms contained within this object. |
Set<OWLLogicalAxiom> |
getLogicalAxioms(boolean includeImportsClosure)
Gets all axioms semantically relevant, i.e., all axioms that are not
annotation axioms or declaration axioms.
|
Set<OWLLogicalAxiom> |
getLogicalAxioms(Imports includeImportsClosure)
Gets all axioms semantically relevant, i.e., all axioms that are not
annotation axioms or declaration axioms.
|
Set<OWLObjectProperty> |
getObjectPropertiesInSignature()
A convenience method that obtains the object properties that are in the
signature of this object
|
Set<OWLObjectProperty> |
getObjectPropertiesInSignature(boolean includeImportsClosure)
Gets the object properties in the signature and optionally the imports
closure.
|
Set<OWLObjectProperty> |
getObjectPropertiesInSignature(Imports includeImportsClosure)
Gets the object properties in the signature and optionally the imports
closure.
|
OWLOntologyID |
getOntologyID()
Gets the identity of this ontology (i.e.
|
OWLOntologyManager |
getOWLOntologyManager()
Gets the manager that manages this ontology.
|
Set<IRI> |
getPunnedIRIs(Imports includeImportsClosure)
Calculates the set of IRIs that are used for more than one entity type.
|
Set<OWLAxiom> |
getRBoxAxioms(Imports includeImportsClosure)
Gets the axioms that form the RBox for this ontology, i.e., the ones
whose type is in the AxiomType::RBoxAxiomTypes.
|
Set<OWLAnonymousIndividual> |
getReferencedAnonymousIndividuals(boolean includeImportsClosure)
Gets the referenced anonymous individuals in the signature and optionally
the imports closure.
|
Set<OWLAnonymousIndividual> |
getReferencedAnonymousIndividuals(Imports includeImportsClosure)
Gets the referenced anonymous individuals in the signature and optionally
the imports closure.
|
Set<OWLAxiom> |
getReferencingAxioms(OWLPrimitive owlEntity)
Gets the axioms where the specified
OWLPrimitive appears in the
signature of the axiom.Note that currently signatures contain OWLEntity only. |
Set<OWLAxiom> |
getReferencingAxioms(OWLPrimitive owlEntity,
boolean includeImports)
Gets the axioms where the specified
OWLPrimitive appears in the
signature of the axiom.Note that currently signatures contain OWLEntity only. |
Set<OWLAxiom> |
getReferencingAxioms(OWLPrimitive owlEntity,
Imports includeImportsClosure)
Gets the axioms where the specified
OWLPrimitive appears in the
signature of the axiom.Note that currently signatures contain OWLEntity only. |
Set<OWLEntity> |
getSignature()
Gets the signature of this object.
|
Set<OWLEntity> |
getSignature(Imports includeImportsClosure)
Gets the entities that are in the signature of this ontology.
|
Set<OWLAxiom> |
getTBoxAxioms(Imports includeImportsClosure)
Gets the axioms that form the TBox for this ontology, i.e., the ones
whose type is in the AxiomType::TBoxAxiomTypes.
|
int |
hashCode() |
boolean |
isAnonymous()
Determines whether or not this ontology is anonymous.
|
boolean |
isDeclared(OWLEntity owlEntity)
Determines if this ontology declares an entity i.e.
|
boolean |
isDeclared(OWLEntity owlEntity,
Imports includeImportsClosure)
Determines if this ontology or its imports closure declares an entity
i.e.
|
boolean |
isEmpty()
Determines if this ontology is empty - an ontology is empty if it does
not contain any axioms (i.e.
|
void |
saveOntology()
Saves the ontology.
|
void |
saveOntology(IRI documentIRI)
Saves the ontology, using the specified document IRI to determine
where/how the ontology should be saved.
|
void |
saveOntology(OutputStream outputStream)
Saves the ontology, to the specified output stream
|
void |
saveOntology(OWLDocumentFormat ontologyFormat)
Saves the ontology in the specified ontology format to its document URI.
|
void |
saveOntology(OWLDocumentFormat ontologyFormat,
IRI documentIRI)
Saves the ontology to the specified document IRI in the specified
ontology format.
|
void |
saveOntology(OWLDocumentFormat ontologyFormat,
OutputStream outputStream)
Saves the ontology to the specified output stream in the specified
ontology format.
|
void |
saveOntology(OWLDocumentFormat ontologyFormat,
OWLOntologyDocumentTarget documentTarget)
Saves the ontology to the specified output target in the specified
ontology format.
|
void |
saveOntology(OWLOntologyDocumentTarget documentTarget)
Saves the ontology to the specified
OWLOntologyDocumentTarget. |
void |
setOWLOntologyManager(OWLOntologyManager manager)
Sets the manager for this ontology.
|
String |
toString() |
getAnnotationAssertionAxioms, getAnnotationPropertyDomainAxioms, getAnnotationPropertyRangeAxioms, getAsymmetricObjectPropertyAxioms, getClassAssertionAxioms, getClassAssertionAxioms, getDataPropertyAssertionAxioms, getDataPropertyDomainAxioms, getDataPropertyRangeAxioms, getDataSubPropertyAxiomsForSubProperty, getDataSubPropertyAxiomsForSuperProperty, getDatatypeDefinitions, getDeclarationAxioms, getDifferentIndividualAxioms, getDisjointClassesAxioms, getDisjointDataPropertiesAxioms, getDisjointObjectPropertiesAxioms, getDisjointUnionAxioms, getEquivalentClassesAxioms, getEquivalentDataPropertiesAxioms, getEquivalentObjectPropertiesAxioms, getFunctionalDataPropertyAxioms, getFunctionalObjectPropertyAxioms, getHasKeyAxioms, getInverseFunctionalObjectPropertyAxioms, getInverseObjectPropertyAxioms, getIrreflexiveObjectPropertyAxioms, getNegativeDataPropertyAssertionAxioms, getNegativeObjectPropertyAssertionAxioms, getObjectPropertyAssertionAxioms, getObjectPropertyDomainAxioms, getObjectPropertyRangeAxioms, getObjectSubPropertyAxiomsForSubProperty, getObjectSubPropertyAxiomsForSuperProperty, getReflexiveObjectPropertyAxioms, getSameIndividualAxioms, getSubAnnotationPropertyOfAxioms, getSubClassAxiomsForSubClass, getSubClassAxiomsForSuperClass, getSymmetricObjectPropertyAxioms, getTransitiveObjectPropertyAxioms, trimToSizecompareTo, getAnnotationPropertiesInSignature, getNestedClassExpressions, isBottomEntity, isTopEntitygetNestedClassExpressions, isBottomEntity, isTopEntitycompareTogetAnnotationPropertiesInSignaturegetAnnotationAssertionAxioms, getAnnotationPropertyDomainAxioms, getAnnotationPropertyRangeAxioms, getAsymmetricObjectPropertyAxioms, getClassAssertionAxioms, getClassAssertionAxioms, getDataPropertyAssertionAxioms, getDataPropertyDomainAxioms, getDataPropertyRangeAxioms, getDataSubPropertyAxiomsForSubProperty, getDataSubPropertyAxiomsForSuperProperty, getDatatypeDefinitions, getDeclarationAxioms, getDifferentIndividualAxioms, getDisjointClassesAxioms, getDisjointDataPropertiesAxioms, getDisjointObjectPropertiesAxioms, getDisjointUnionAxioms, getEquivalentClassesAxioms, getEquivalentDataPropertiesAxioms, getEquivalentObjectPropertiesAxioms, getFunctionalDataPropertyAxioms, getFunctionalObjectPropertyAxioms, getHasKeyAxioms, getInverseFunctionalObjectPropertyAxioms, getInverseObjectPropertyAxioms, getIrreflexiveObjectPropertyAxioms, getNegativeDataPropertyAssertionAxioms, getNegativeObjectPropertyAssertionAxioms, getObjectPropertyAssertionAxioms, getObjectPropertyDomainAxioms, getObjectPropertyRangeAxioms, getObjectSubPropertyAxiomsForSubProperty, getObjectSubPropertyAxiomsForSuperProperty, getReflexiveObjectPropertyAxioms, getSameIndividualAxioms, getSubAnnotationPropertyOfAxioms, getSubClassAxiomsForSubClass, getSubClassAxiomsForSuperClass, getSymmetricObjectPropertyAxioms, getTransitiveObjectPropertyAxiomspublic OWLImmutableOntologyImpl(@Nonnull OWLOntologyManager manager, @Nonnull OWLOntologyID ontologyID)
manager - ontology managerontologyID - ontology idpublic String toString()
toString in interface OWLObjecttoString in class OWLObjectImplWithEntityAndAnonCachingpublic OWLOntologyManager getOWLOntologyManager()
OWLOntologygetOWLOntologyManager in interface OWLOntologypublic void setOWLOntologyManager(OWLOntologyManager manager)
OWLOntologysetOWLOntologyManager in interface OWLOntologymanager - the new manager for this ontologypublic OWLOntologyID getOntologyID()
OWLOntologygetOntologyID in interface HasOntologyIDgetOntologyID in interface OWLOntologypublic boolean isAnonymous()
OWLOntologyisAnonymous in interface OWLOntologytrue if this ontology is anonymous, otherwise
falsepublic boolean isEmpty()
OWLOntologyHasAxioms.getAxioms() returns the empty set),
and it does not have any annotations (i.e. OWLOntology.getAnnotations()
returns the empty set).isEmpty in interface OWLOntologytrue if the ontology is empty, otherwise false.public <T extends OWLAxiom> int getAxiomCount(AxiomType<T> axiomType, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxiomCount in interface OWLAxiomCollectionBooleanArgsT - axiom typeaxiomType - The type of axiom to countincludeImportsClosure - if INCLUDED, include imports closure.public int getAxiomCount(boolean includeImportsClosure)
getAxiomCount in interface OWLAxiomCollectionBooleanArgsincludeImportsClosure - if true, include imports closure.public <T extends OWLAxiom> int getAxiomCount(AxiomType<T> axiomType, Imports includeImportsClosure)
OWLAxiomCollectiongetAxiomCount in interface OWLAxiomCollectionT - axiom typeaxiomType - The type of axiom to countincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsAxiom(@Nonnull OWLAxiom axiom)
HasContainsAxiomOWLAxiom.containsAxiom in interface HasContainsAxiomaxiom - The OWLAxiom to test for.true if this object contains axiom, otherwise
false.public int getAxiomCount()
getAxiomCount in interface OWLAxiomCollectionNoArgspublic int getAxiomCount(Imports includeImportsClosure)
getAxiomCount in interface OWLAxiomCollectionincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLAxiom> getAxioms()
HasAxiomsOWLAxioms contained in this object.public Set<OWLAxiom> getAxioms(boolean b)
getAxioms in interface OWLAxiomCollectionBooleanArgsb - true if imports are included.public Set<OWLAxiom> getAxioms(Imports includeImportsClosure)
getAxioms in interface OWLAxiomCollectionincludeImportsClosure - if INCLUDED, include imports closure.@Nonnull public <T extends OWLAxiom> Set<T> getAxioms(AxiomType<T> axiomType)
HasAxiomsByTypegetAxioms in interface HasAxiomsByTypeT - axiom typeaxiomType - The type of axioms to be retrieved.public <T extends OWLAxiom> Set<T> getAxioms(AxiomType<T> axiomType, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgsT - axiom typeaxiomType - The type of axioms to be retrived.includeImportsClosure - if true, include imports closure.public <T extends OWLAxiom> Set<T> getAxioms(AxiomType<T> axiomType, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectionT - axiom typeaxiomType - The type of axioms to be retrived.includeImportsClosure - if INCLUDED, include imports closure.@Nonnull public Set<OWLAxiom> getTBoxAxioms(Imports includeImportsClosure)
OWLOntologygetTBoxAxioms in interface OWLOntologyincludeImportsClosure - if INCLUDED, the imports closure is included.@Nonnull public Set<OWLAxiom> getABoxAxioms(Imports includeImportsClosure)
OWLOntologygetABoxAxioms in interface OWLOntologyincludeImportsClosure - if INCLUDED, the imports closure is included.@Nonnull public Set<OWLAxiom> getRBoxAxioms(Imports includeImportsClosure)
OWLOntologygetRBoxAxioms in interface OWLOntologyincludeImportsClosure - if INCLUDED, the imports closure is included.public <T extends OWLAxiom> int getAxiomCount(AxiomType<T> axiomType)
OWLAxiomCollectionNoArgsgetAxiomCount in interface OWLAxiomCollectionNoArgsT - axiom type classaxiomType - The type of axiom to countpublic Set<OWLLogicalAxiom> getLogicalAxioms()
HasLogicalAxiomsOWLLogicalAxioms contained within this object.getLogicalAxioms in interface HasLogicalAxiomsOWLLogicalAxioms that are contained within this
object. Changes are not reflected back.public Set<OWLLogicalAxiom> getLogicalAxioms(Imports includeImportsClosure)
OWLAxiomCollectiongetLogicalAxioms in interface OWLAxiomCollectionincludeImportsClosure - if INCLUDED, include imports closure.OWLLogicalAxiom,
optionally including the imports closure. The set that is
returned is a copy of the data.public Set<OWLLogicalAxiom> getLogicalAxioms(boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetLogicalAxioms in interface OWLAxiomCollectionBooleanArgsincludeImportsClosure - if true, include imports closure.OWLLogicalAxiom,
optionally including the imports closure. The set that is
returned is a copy of the data.public int getLogicalAxiomCount()
OWLAxiomCollectionNoArgsgetLogicalAxiomCount in interface OWLAxiomCollectionNoArgspublic int getLogicalAxiomCount(boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetLogicalAxiomCount in interface OWLAxiomCollectionBooleanArgsincludeImportsClosure - if true, include imports closure.public int getLogicalAxiomCount(Imports includeImportsClosure)
OWLAxiomCollectiongetLogicalAxiomCount in interface OWLAxiomCollectionincludeImportsClosure - if INCLUDED, include imports closure.@Nonnull public Set<OWLAnnotation> getAnnotations()
OWLOntologygetAnnotations in interface HasAnnotationsgetAnnotations in interface OWLOntologypublic Set<OWLClassAxiom> getGeneralClassAxioms()
OWLOntologyOWLClasses)OWLClasses)getGeneralClassAxioms in interface OWLOntologypublic boolean containsAxiom(@Nonnull OWLAxiom axiom, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgscontainsAxiom in interface OWLAxiomCollectionBooleanArgsaxiom - The axiom to search.includeImportsClosure - if INCLUDED, include imports closure.true if the ontology contains the specified axiom.public boolean containsAxiom(@Nonnull OWLAxiom axiom, Imports includeImportsClosure, AxiomAnnotations ignoreAnnotations)
OWLAxiomCollectioncontainsAxiom in interface OWLAxiomCollectionaxiom - The axiom to search.includeImportsClosure - if INCLUDED, include imports closure.ignoreAnnotations - if IGNORE_ANNOTATIONS, annotations are ignored when searching for
the axiom. For example, if the collection contains
SubClassOf(Annotation(p V) A B) then this method will
return true if the ontology contains
SubClassOf(A B) or SubClassOf(Annotation(q S) A B)
for any annotation property q and any annotation value
S.true if the ontology contains the specified axiom.public boolean containsAxiomIgnoreAnnotations(@Nonnull OWLAxiom axiom)
OWLAxiomCollectionNoArgscontainsAxiomIgnoreAnnotations in interface OWLAxiomCollectionNoArgsaxiom - The axiom to search.true if the ontology contains the specified axiom.public boolean containsAxiomIgnoreAnnotations(@Nonnull OWLAxiom axiom, boolean importsIncluded)
OWLAxiomCollectionBooleanArgsSubClassOf(Annotation(p V) A B) then this method will return
true if the ontology contains SubClassOf(A B) or
SubClassOf(Annotation(q S) A B) for any annotation property
q and any annotation value S.containsAxiomIgnoreAnnotations in interface OWLAxiomCollectionBooleanArgsaxiom - The axiom to search.importsIncluded - if true, include imports closure.true if the ontology contains the specified axiom.@Nonnull public Set<OWLAxiom> getAxiomsIgnoreAnnotations(@Nonnull OWLAxiom axiom)
OWLAxiomCollectionNoArgsgetAxiomsIgnoreAnnotations in interface OWLAxiomCollectionNoArgsaxiom - The axiom that the returned axioms must equal, ignoring
annotations.axiomA
and axiomB in the set,
axiomA.getAxiomWithoutAnnotations() is equal to
axiomB.getAxiomWithoutAnnotations(). The specified axiom
will be contained in the set.public Set<OWLAxiom> getAxiomsIgnoreAnnotations(@Nonnull OWLAxiom axiom, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxiomsIgnoreAnnotations in interface OWLAxiomCollectionBooleanArgsaxiom - The axiom that the returned axioms must equal, ignoring
annotations.includeImportsClosure - if true, include imports closure.axiomA
and axiomB in the set,
axiomA.getAxiomWithoutAnnotations() is equal to
axiomB.getAxiomWithoutAnnotations(). The specified axiom
will be contained in the set.public Set<OWLAxiom> getAxiomsIgnoreAnnotations(@Nonnull OWLAxiom axiom, Imports includeImportsClosure)
OWLAxiomCollectiongetAxiomsIgnoreAnnotations in interface OWLAxiomCollectionaxiom - The axiom that the returned axioms must equal, ignoring
annotations.includeImportsClosure - if INCLUDED, include imports closure.axiomA
and axiomB in the set,
axiomA.getAxiomWithoutAnnotations() is equal to
axiomB.getAxiomWithoutAnnotations(). The specified axiom
will be contained in the set.public boolean containsClassInSignature(IRI owlClassIRI, Imports includeImportsClosure)
OWLSignaturecontainsClassInSignature in interface OWLSignatureowlClassIRI - The IRI of the class to check forincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsObjectPropertyInSignature(IRI owlObjectPropertyIRI, Imports includeImportsClosure)
OWLSignaturecontainsObjectPropertyInSignature in interface OWLSignatureowlObjectPropertyIRI - The IRI of the OWLObjectProperty to check forincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsDataPropertyInSignature(IRI owlDataPropertyIRI, Imports includeImportsClosure)
OWLSignaturecontainsDataPropertyInSignature in interface OWLSignatureowlDataPropertyIRI - The IRI of the OWLDataProperty to check forincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI, Imports includeImportsClosure)
OWLSignaturecontainsAnnotationPropertyInSignature in interface OWLSignatureowlAnnotationPropertyIRI - The IRI of the OWLAnnotationProperty to check forincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsIndividualInSignature(IRI owlIndividualIRI, Imports includeImportsClosure)
OWLSignaturecontainsIndividualInSignature in interface OWLSignatureowlIndividualIRI - The IRI of the OWLNamedIndividual to check forincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsDatatypeInSignature(IRI owlDatatypeIRI, Imports includeImportsClosure)
OWLSignaturecontainsDatatypeInSignature in interface OWLSignatureowlDatatypeIRI - The IRI of the OWLDatatype to check forincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLEntity> getEntitiesInSignature(@Nonnull IRI entityIRI)
getEntitiesInSignature in interface HasGetEntitiesInSignatureentityIRI - IRI for all entities to retrievepublic Set<OWLEntity> getEntitiesInSignature(IRI iri, Imports includeImportsClosure)
OWLSignaturegetEntitiesInSignature in interface OWLSignatureiri - The IRI of the entitied to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<IRI> getPunnedIRIs(Imports includeImportsClosure)
OWLSignaturegetPunnedIRIs in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsReference(@Nonnull OWLEntity entity, Imports includeImportsClosure)
containsReference in interface OWLSignatureentity - entyty to checkincludeImportsClosure - if INCLUDED, include imports closure.public boolean isDeclared(OWLEntity owlEntity)
OWLOntologyisDeclared in interface OWLOntologyowlEntity - The entity to be tested fortrue if the ontology contains a declaration for the
specified entity, otherwise false.public boolean isDeclared(OWLEntity owlEntity, Imports includeImportsClosure)
OWLOntologyisDeclared in interface OWLOntologyowlEntity - The entity to be tested forincludeImportsClosure - if INCLUDED, the imports closure is included.true if the ontology or its imports closure contains a
declaration for the specified entity, otherwise false.public boolean containsEntityInSignature(@Nonnull OWLEntity owlEntity)
HasContainsEntityInSignaturecontainsEntityInSignature in interface HasContainsEntityInSignaturecontainsEntityInSignature in class OWLObjectImplWithEntityAndAnonCachingowlEntity - The entitytrue if the signature of this object contains
owlEntity, otherwise falsepublic boolean containsEntityInSignature(@Nonnull OWLEntity owlEntity, Imports includeImportsClosure)
OWLSignaturecontainsEntityInSignature in interface OWLSignatureowlEntity - The entityincludeImportsClosure - if INCLUDED, include imports closure.true if the signature or the import closure contains a
reference to the specified entity.public boolean containsEntityInSignature(IRI entityIRI, Imports includeImportsClosure)
OWLSignaturecontainsEntityInSignature in interface OWLSignatureentityIRI - The IRI to test for.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLEntity> getSignature()
HasSignaturegetSignature in interface HasSignaturegetSignature in interface OWLOntologygetSignature in class OWLObjectImplWithEntityAndAnonCachingHasClassesInSignature.getClassesInSignature(),
HasObjectPropertiesInSignature.getObjectPropertiesInSignature(),
HasDataPropertiesInSignature.getDataPropertiesInSignature(),
HasIndividualsInSignature.getIndividualsInSignature()public Set<OWLEntity> getSignature(Imports includeImportsClosure)
OWLOntologygetSignature in interface OWLOntologyincludeImportsClosure - if INCLUDED, the imports closure is included.OWLEntity objects. The set that is returned is a
copy - it will not be updated if the ontology changes. It is
therefore safe to apply changes to this ontology while iterating
over this set.HasClassesInSignature.getClassesInSignature(),
HasObjectPropertiesInSignature.getObjectPropertiesInSignature(),
HasDataPropertiesInSignature.getDataPropertiesInSignature(),
HasIndividualsInSignature.getIndividualsInSignature()public Set<OWLAnonymousIndividual> getAnonymousIndividuals()
HasAnonymousIndividualsgetAnonymousIndividuals in interface HasAnonymousIndividualsgetAnonymousIndividuals in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLClass> getClassesInSignature()
HasClassesInSignaturegetClassesInSignature in interface HasClassesInSignaturegetClassesInSignature in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLDataProperty> getDataPropertiesInSignature()
HasDataPropertiesInSignaturegetDataPropertiesInSignature in interface HasDataPropertiesInSignaturegetDataPropertiesInSignature in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLObjectProperty> getObjectPropertiesInSignature()
HasObjectPropertiesInSignaturegetObjectPropertiesInSignature in interface HasObjectPropertiesInSignaturegetObjectPropertiesInSignature in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLNamedIndividual> getIndividualsInSignature()
HasIndividualsInSignaturegetIndividualsInSignature in interface HasIndividualsInSignaturegetIndividualsInSignature in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLDatatype> getDatatypesInSignature()
HasDatatypesInSignaturegetDatatypesInSignature in interface HasDatatypesInSignaturegetDatatypesInSignature in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLClass> getClassesInSignature(Imports includeImportsClosure)
OWLSignaturegetClassesInSignature in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLObjectProperty> getObjectPropertiesInSignature(Imports includeImportsClosure)
OWLSignaturegetObjectPropertiesInSignature in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLDataProperty> getDataPropertiesInSignature(Imports includeImportsClosure)
OWLSignaturegetDataPropertiesInSignature in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLNamedIndividual> getIndividualsInSignature(Imports includeImportsClosure)
OWLSignaturegetIndividualsInSignature in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLAnonymousIndividual> getReferencedAnonymousIndividuals(Imports includeImportsClosure)
OWLSignaturegetReferencedAnonymousIndividuals in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLDatatype> getDatatypesInSignature(Imports includeImportsClosure)
OWLSignaturegetDatatypesInSignature in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(Imports includeImportsClosure)
OWLSignaturegetAnnotationPropertiesInSignature in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.@Nonnull public Set<OWLImportsDeclaration> getImportsDeclarations()
OWLOntologygetImportsDeclarations in interface OWLOntologypublic Set<IRI> getDirectImportsDocuments()
OWLOntologygetDirectImportsDocuments in interface OWLOntologypublic Set<OWLOntology> getImports()
OWLOntologygetImports in interface OWLOntologypublic Set<OWLOntology> getDirectImports()
OWLOntologyOWLOntology.getDirectImportsDocuments() method. This will be the case if
some of the ontologies that are directly imported by this ontology are
not loaded for what ever reason.getDirectImports in interface HasDirectImportsgetDirectImports in interface OWLOntologypublic Set<OWLOntology> getImportsClosure()
OWLOntologyOWLOntology.getImports() method plus this ontology.)getImportsClosure in interface HasImportsClosuregetImportsClosure in interface OWLOntologypublic void accept(@Nonnull OWLObjectVisitor visitor)
OWLObjectpublic void accept(@Nonnull OWLNamedObjectVisitor visitor)
OWLOntologyaccept in interface OWLOntologyvisitor - the visitorpublic <O> O accept(OWLNamedObjectVisitorEx<O> visitor)
OWLOntologyaccept in interface OWLOntologyO - visitor return typevisitor - The visitorpublic <O> O accept(@Nonnull OWLObjectVisitorEx<O> visitor)
OWLObjectpublic boolean equals(Object obj)
equals in class OWLObjectImplWithEntityAndAnonCachingpublic int hashCode()
hashCode in class OWLObjectImplWithEntityAndAnonCachingpublic Set<OWLClassAxiom> getAxioms(OWLClass cls, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectioncls - The class whose describing axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLObjectPropertyAxiom> getAxioms(OWLObjectPropertyExpression property, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectionproperty - The property whose defining axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLAnnotationAxiom> getAxioms(OWLAnnotationProperty property, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectionproperty - The property whose definition axioms are to be retrievedincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLDataPropertyAxiom> getAxioms(OWLDataProperty property, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectionproperty - The property whose defining axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLIndividualAxiom> getAxioms(OWLIndividual individual, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectionindividual - The individual whose defining axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLDatatypeDefinitionAxiom> getAxioms(OWLDatatype datatype, Imports includeImportsClosure)
OWLAxiomCollectiongetAxioms in interface OWLAxiomCollectiondatatype - The datatypeincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlEntity)
OWLAxiomCollectionNoArgsOWLPrimitive appears in the
signature of the axiom.OWLEntity only. This
method accepts OWLPrimitive so that also anonymous individuals, literals,
IRIs and annotation values can be passed in, although they are not
included in the axioms' signatures.getReferencingAxioms in interface OWLAxiomCollectionNoArgsowlEntity - The entity that should be directly referred to by all axioms in
the results set.public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlEntity, boolean includeImports)
OWLAxiomCollectionBooleanArgsOWLPrimitive appears in the
signature of the axiom.OWLEntity only. This
method accepts OWLPrimitive so that also anonymous individuals, literals,
IRIs and annotation values can be passed in, although they are not
included in the axioms' signatures.getReferencingAxioms in interface OWLAxiomCollectionBooleanArgsowlEntity - The entity that should be directly referred to by all axioms in
the results set.includeImports - if INCLUDED, include imports closure.public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlEntity, Imports includeImportsClosure)
OWLAxiomCollectionOWLPrimitive appears in the
signature of the axiom.OWLEntity only. This
method accepts OWLPrimitive so that also anonymous individuals, literals,
IRIs and annotation values can be passed in, although they are not
included in the axioms' signatures.getReferencingAxioms in interface OWLAxiomCollectionowlEntity - The entity that should be directly referred to by all axioms in
the results set.includeImportsClosure - if INCLUDED, include imports closure.public <A extends OWLAxiom> Set<A> getAxioms(@Nonnull Class<A> type, @Nonnull OWLObject entity, Imports includeImports, Navigation forSubPosition)
OWLAxiomIndexgetAxioms in interface OWLAxiomIndexA - type of returned axiomstype - type of axiomsentity - referred entity (OWLPrimitive or property/class expression)includeImports - if INCLUDED, include imports closure.forSubPosition - for sub axioms (subclass, subproperty), the value specifies
whether entity should appear as sub or super entity in the axioms
returned. For axiom types that have no sub/super entites, this
parameter is ignored.public <A extends OWLAxiom> Set<A> getAxioms(@Nonnull Class<A> type, @Nonnull Class<? extends OWLObject> explicitClass, @Nonnull OWLObject entity, @Nonnull Imports includeImports, @Nonnull Navigation forSubPosition)
OWLAxiomIndexgetAxioms in interface OWLAxiomIndexA - type of returned axiomstype - type of axiomsexplicitClass - for overlapping indexes in the ontology internals, an explicit
class rathet than the entity class might be necessaryentity - referred entity (OWLPrimitive or property/class expression)includeImports - if INCLUDED, include imports closure.forSubPosition - for sub axioms (subclass, subproperty), the value specifies
whether entity should appear as sub or super entity in the axioms
returned. For axiom types that have no sub/super entites, this
parameter is ignored.@Nonnull public <T extends OWLAxiom> Collection<T> filterAxioms(@Nonnull OWLAxiomSearchFilter filter, @Nonnull Object key, Imports includeImportsClosure)
OWLAxiomIndexfilterAxioms in interface OWLAxiomIndexT - type of returned axiomsfilter - the filter to matchkey - the key. Its type is generic and it is used only by the filter.includeImportsClosure - if INCLUDED, include imports closure.public boolean contains(@Nonnull OWLAxiomSearchFilter filter, @Nonnull Object key, Imports includeImportsClosure)
OWLAxiomIndexcontains in interface OWLAxiomIndexfilter - the filter to matchkey - the key. Its type is generic and it is used only by the filter.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLClassAxiom> getAxioms(OWLClass cls)
OWLAxiomCollectionNoArgsgetAxioms in interface OWLAxiomCollectionNoArgscls - The class whose describing axioms are to be retrieved.public Set<OWLObjectPropertyAxiom> getAxioms(OWLObjectPropertyExpression property)
OWLAxiomCollectionNoArgsgetAxioms in interface OWLAxiomCollectionNoArgsproperty - The property whose defining axioms are to be retrieved.public Set<OWLDataPropertyAxiom> getAxioms(OWLDataProperty property)
OWLAxiomCollectionNoArgsgetAxioms in interface OWLAxiomCollectionNoArgsproperty - The property whose defining axioms are to be retrieved.public Set<OWLIndividualAxiom> getAxioms(OWLIndividual individual)
OWLAxiomCollectionNoArgsgetAxioms in interface OWLAxiomCollectionNoArgsindividual - The individual whose defining axioms are to be retrieved.public Set<OWLAnnotationAxiom> getAxioms(OWLAnnotationProperty property)
OWLAxiomCollectionNoArgsgetAxioms in interface OWLAxiomCollectionNoArgsproperty - The property whose definition axioms are to be retrievedpublic Set<OWLDatatypeDefinitionAxiom> getAxioms(OWLDatatype datatype)
OWLAxiomCollectionNoArgsgetAxioms in interface OWLAxiomCollectionNoArgsdatatype - The datatypepublic Set<OWLClassAxiom> getAxioms(OWLClass cls, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgscls - The class whose describing axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLObjectPropertyAxiom> getAxioms(OWLObjectPropertyExpression property, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgsproperty - The property whose defining axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLDataPropertyAxiom> getAxioms(OWLDataProperty property, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgsproperty - The property whose defining axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLIndividualAxiom> getAxioms(OWLIndividual individual, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgsindividual - The individual whose defining axioms are to be retrieved.includeImportsClosure - if INCLUDED, include imports closure.public Set<OWLAnnotationAxiom> getAxioms(OWLAnnotationProperty property, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgsproperty - The property whose definition axioms are to be retrievedincludeImportsClosure - if INCLUDED, include imports closure.public Set<OWLDatatypeDefinitionAxiom> getAxioms(OWLDatatype datatype, boolean includeImportsClosure)
OWLAxiomCollectionBooleanArgsgetAxioms in interface OWLAxiomCollectionBooleanArgsdatatype - The datatypeincludeImportsClosure - if INCLUDED, include imports closure.public void saveOntology()
throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologyOWLOntologyStorageException - An exception will be thrown if there is a problem with saving the
ontology, or the ontology can't be saved in the format it was
loaded from.public void saveOntology(IRI documentIRI) throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologydocumentIRI - The document IRI where the ontology should be saved toOWLOntologyStorageException - If the ontology cannot be savedpublic void saveOntology(OutputStream outputStream) throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologyoutputStream - The output stream where the ontology will be saved toOWLOntologyStorageException - If there was a problem saving this ontology to the specified
output streampublic void saveOntology(OWLDocumentFormat ontologyFormat) throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologyontologyFormat - The format in which the ontology should be saved.OWLOntologyStorageException - If the ontology cannot be saved.public void saveOntology(OWLDocumentFormat ontologyFormat, IRI documentIRI) throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologyontologyFormat - The format in which to save the ontologydocumentIRI - The document IRI where the ontology should be saved toOWLOntologyStorageException - If the ontology could not be saved.public void saveOntology(OWLDocumentFormat ontologyFormat, OutputStream outputStream) throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologyontologyFormat - The format in which to save the ontologyoutputStream - The output stream where the ontology will be saved to.OWLOntologyStorageException - If the ontology could not be saved.public void saveOntology(OWLOntologyDocumentTarget documentTarget) throws OWLOntologyStorageException
OWLOntologyOWLOntologyDocumentTarget.saveOntology in interface OWLOntologydocumentTarget - The output target where the ontology will be saved to.OWLOntologyStorageException - If the ontology could not be saved.public void saveOntology(OWLDocumentFormat ontologyFormat, OWLOntologyDocumentTarget documentTarget) throws OWLOntologyStorageException
OWLOntologysaveOntology in interface OWLOntologyontologyFormat - The output format in which to save the ontologydocumentTarget - The output target where the ontology will be saved toOWLOntologyStorageException - If the ontology could not be saved.public boolean containsDatatypeInSignature(IRI owlDatatypeIRI)
OWLSignaturecontainsDatatypeInSignature in interface OWLSignatureowlDatatypeIRI - The IRI of the OWLDatatype to check forpublic boolean containsEntityInSignature(IRI entityIRI)
OWLSignaturecontainsEntityInSignature in interface OWLSignatureentityIRI - The IRI to test for.public boolean containsClassInSignature(IRI owlClassIRI)
OWLSignaturecontainsClassInSignature in interface OWLSignatureowlClassIRI - The IRI of the class to check forpublic boolean containsObjectPropertyInSignature(IRI owlObjectPropertyIRI)
OWLSignaturecontainsObjectPropertyInSignature in interface OWLSignatureowlObjectPropertyIRI - The IRI of the OWLObjectProperty to check forpublic boolean containsDataPropertyInSignature(IRI owlDataPropertyIRI)
OWLSignaturecontainsDataPropertyInSignature in interface OWLSignatureowlDataPropertyIRI - The IRI of the OWLDataProperty to check forpublic boolean containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI)
OWLSignaturecontainsAnnotationPropertyInSignature in interface OWLSignatureowlAnnotationPropertyIRI - The IRI of the OWLAnnotationProperty to check forpublic boolean containsIndividualInSignature(IRI owlIndividualIRI)
OWLSignaturecontainsIndividualInSignature in interface OWLSignatureowlIndividualIRI - The IRI of the OWLNamedIndividual to check forpublic boolean containsReference(OWLEntity entity)
containsReference in interface OWLSignatureentity - entyty to checkpublic Set<OWLClass> getClassesInSignature(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetClassesInSignature in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public Set<OWLObjectProperty> getObjectPropertiesInSignature(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetObjectPropertiesInSignature in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public Set<OWLDataProperty> getDataPropertiesInSignature(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetDataPropertiesInSignature in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public Set<OWLNamedIndividual> getIndividualsInSignature(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetIndividualsInSignature in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public Set<OWLAnonymousIndividual> getReferencedAnonymousIndividuals(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetReferencedAnonymousIndividuals in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public Set<OWLDatatype> getDatatypesInSignature(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetDatatypesInSignature in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(boolean includeImportsClosure)
OWLSignatureBooleanArgsgetAnnotationPropertiesInSignature in interface OWLSignatureBooleanArgsincludeImportsClosure - if true, include imports closure.public boolean containsEntityInSignature(OWLEntity owlEntity, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsEntityInSignature in interface OWLSignatureBooleanArgsowlEntity - The entityincludeImportsClosure - if true, include imports closure.true if the signature or the import closure contains a
reference to the specified entity.public boolean containsEntityInSignature(IRI entityIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsEntityInSignature in interface OWLSignatureBooleanArgsentityIRI - The IRI to test for.includeImportsClosure - if true, include imports closure.public boolean containsClassInSignature(IRI owlClassIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsClassInSignature in interface OWLSignatureBooleanArgsowlClassIRI - The IRI of the class to check forincludeImportsClosure - if true, include imports closure.public boolean containsObjectPropertyInSignature(IRI owlObjectPropertyIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsObjectPropertyInSignature in interface OWLSignatureBooleanArgsowlObjectPropertyIRI - The IRI of the OWLObjectProperty to check forincludeImportsClosure - if true, include imports closure.public boolean containsDataPropertyInSignature(IRI owlDataPropertyIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsDataPropertyInSignature in interface OWLSignatureBooleanArgsowlDataPropertyIRI - The IRI of the OWLDataProperty to check forincludeImportsClosure - if true, include imports closure.public boolean containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsAnnotationPropertyInSignature in interface OWLSignatureBooleanArgsowlAnnotationPropertyIRI - The IRI of the OWLAnnotationProperty to check forincludeImportsClosure - if true, include imports closure.public boolean containsDatatypeInSignature(IRI owlDatatypeIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsDatatypeInSignature in interface OWLSignatureBooleanArgsowlDatatypeIRI - The IRI of the OWLDatatype to check forincludeImportsClosure - if true, include imports closure.public boolean containsIndividualInSignature(IRI owlIndividualIRI, boolean includeImportsClosure)
OWLSignatureBooleanArgscontainsIndividualInSignature in interface OWLSignatureBooleanArgsowlIndividualIRI - The IRI of the OWLNamedIndividual to check forincludeImportsClosure - if true, include imports closure.public Set<OWLEntity> getEntitiesInSignature(IRI iri, boolean includeImportsClosure)
OWLSignatureBooleanArgsgetEntitiesInSignature in interface OWLSignatureBooleanArgsiri - The IRI of the entitied to be retrieved.includeImportsClosure - if true, include imports closure.public boolean containsReference(OWLEntity entity, boolean includeImportsClosure)
containsReference in interface OWLSignatureBooleanArgsentity - entyty to checkincludeImportsClosure - if true, include imports closure.Copyright © 2016 The University of Manchester. All Rights Reserved.