public class OWLOntologyImpl extends OWLObjectImpl implements OWLMutableOntology, Serializable
| Modifier and Type | Class and Description |
|---|---|
protected class |
OWLOntologyImpl.OWLOntologyChangeFilter |
| Modifier and Type | Field and Description |
|---|---|
protected Internals |
internals |
protected OWLOntologyID |
ontologyID |
NO_ANNOTATIONS, OWL_THING| Constructor and Description |
|---|
OWLOntologyImpl(OWLOntologyManager manager,
OWLOntologyID ontologyID) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLNamedObjectVisitor visitor) |
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
List<OWLOntologyChange> |
applyChange(OWLOntologyChange change) |
List<OWLOntologyChange> |
applyChanges(List<OWLOntologyChange> changes) |
protected int |
compareObjectOfSameType(OWLObject object) |
boolean |
containsAnnotationPropertyInSignature(IRI propIRI)
Determines if the signature of this ontology contains an
OWLAnnotationProperty with the specified IRI.
|
boolean |
containsAnnotationPropertyInSignature(IRI propIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology, or possibly the signature
of one of the ontologies in the imports closure of this ontology,
contains an OWLAnnotationProperty that has the specified IRI.
|
boolean |
containsAxiom(OWLAxiom axiom)
Determines if this ontology contains the specified axiom.
|
boolean |
containsAxiom(OWLAxiom axiom,
boolean includeImportsClosure)
Determines if this ontology, and possibly the imports closure, contains
the specified axiom.
|
boolean |
containsAxiomIgnoreAnnotations(OWLAxiom axiom)
Determines if this ontology contains the specified axiom, but ignoring
any annotations on this axiom.
|
boolean |
containsAxiomIgnoreAnnotations(OWLAxiom axiom,
boolean includeImportsClosure)
Determines if this ontology and possibly its imports closure contains the
specified axiom but ignoring any annotations on this axiom.
|
boolean |
containsClassInSignature(IRI owlClassIRI)
Determines if the signature of this ontology contains an OWLClass with
the specified IRI.
|
boolean |
containsClassInSignature(IRI owlClassIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology, or possibly the signature
of one of the ontologies in the imports closure of this ontology,
contains an OWLClass that has the specified IRI.
|
boolean |
containsDataPropertyInSignature(IRI propIRI)
Determines if the signature of this ontology contains an OWLDataProperty
with the specified IRI.
|
boolean |
containsDataPropertyInSignature(IRI propIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology, or possibly the signature
of one of the ontologies in the imports closure of this ontology,
contains an OWLDataProperty that has the specified IRI.
|
boolean |
containsDatatypeInSignature(IRI datatypeIRI)
Determines if the signature of this ontology contains an OWLDatatype with
the specified IRI.
|
boolean |
containsDatatypeInSignature(IRI datatypeIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology, or possibly the signature
of one of the ontologies in the imports closure of this ontology,
contains an OWLDatatype that has the specified IRI.
|
boolean |
containsEntityInSignature(IRI entityIRI)
Determines if the signature of this ontology contains a class, object
property, data property, named individual, annotation property or
datatype with the specified IRI.
|
boolean |
containsEntityInSignature(IRI entityIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology and possibly its imports
closure contains a class, object property, data property, named
individual, annotation property or datatype 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 of this ontology, and possibly the signature
of any of the ontologies in the imports closure of this ontology,
contains the specified entity.
|
boolean |
containsIndividualInSignature(IRI individualIRI)
Determines if the signature of this ontology contains an
OWLNamedIndividual with the specified IRI.
|
boolean |
containsIndividualInSignature(IRI individualIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology, or possibly the signature
of one of the ontologies in the imports closure of this ontology,
contains an OWLNamedIndividual that has the specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI propIRI)
Determines if the signature of this ontology contains an
OWLObjectProperty with the specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI propIRI,
boolean includeImportsClosure)
Determines if the signature of this ontology, or possibly the signature
of one of the ontologies in the imports closure of this ontology,
contains an OWLObjectProperty that has the specified IRI.
|
boolean |
containsReference(OWLAnnotationProperty property) |
boolean |
containsReference(OWLClass owlClass) |
boolean |
containsReference(OWLDataProperty prop) |
boolean |
containsReference(OWLDatatype dt) |
boolean |
containsReference(OWLNamedIndividual ind) |
boolean |
containsReference(OWLObjectProperty prop) |
boolean |
equals(Object obj) |
Set<OWLAxiom> |
getABoxAxioms(boolean includeImportsClosure)
Gets the axioms that form the ABox for this ontology, i.e., the ones
whose type is in the AxiomType::ABoxAxiomTypes.
|
Set<OWLAnnotationAssertionAxiom> |
getAnnotationAssertionAxioms(OWLAnnotationSubject subject)
Gets the axioms that annotate the specified entity.
|
Set<OWLAnnotationProperty> |
getAnnotationPropertiesInSignature()
Gets the annotation properties that are in the signature of this
ontology.
|
Set<OWLAnnotationPropertyDomainAxiom> |
getAnnotationPropertyDomainAxioms(OWLAnnotationProperty property)
Gets the
OWLAnnotationPropertyDomainAxioms where the specified
property is the property in the domain axiom. |
Set<OWLAnnotationPropertyRangeAxiom> |
getAnnotationPropertyRangeAxioms(OWLAnnotationProperty property)
Gets the
OWLAnnotationPropertyRangeAxioms where the specified
property is the property in the range axiom. |
Set<OWLAnnotation> |
getAnnotations()
Gets the annotations on this ontology.
|
Set<OWLAnonymousIndividual> |
getAnonymousIndividuals()
Gets the anonymous individuals occurring in this object, as collected by
an OWLEntityCollector.
|
Set<OWLAsymmetricObjectPropertyAxiom> |
getAsymmetricObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLAsymmetricObjectPropertyAxioms
contained in this ontology that make the specified object property
asymmetric. |
int |
getAxiomCount()
Gets the number of axioms in this ontology.
|
<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, possibly in the imports
closure of this ontology.
|
Set<OWLAxiom> |
getAxioms()
Retrieves all of the axioms in this ontology.
|
<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 the axioms which are of the specified type.
|
Set<OWLAnnotationAxiom> |
getAxioms(OWLAnnotationProperty prop)
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<OWLDataPropertyAxiom> |
getAxioms(OWLDataProperty prop)
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<OWLIndividualAxiom> |
getAxioms(OWLIndividual individual)
Gets the axioms that form the definition/description of an individual.
|
Set<OWLObjectPropertyAxiom> |
getAxioms(OWLObjectPropertyExpression prop)
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 ontology that have the same
"logical structure" as the specified axiom.
|
Set<OWLAxiom> |
getAxiomsIgnoreAnnotations(OWLAxiom axiom,
boolean includeImportsClosure)
Gets the set of axioms contained in this ontology that have the same
"logical structure" as the specified axiom, possibly searching the
imports closure of this ontology.
|
Set<OWLClassAssertionAxiom> |
getClassAssertionAxioms(OWLClassExpression type)
Gets the
OWLClassAssertionAxioms
contained in this ontology that make the specified class expression,
ce, a type for some individual. |
Set<OWLClassAssertionAxiom> |
getClassAssertionAxioms(OWLIndividual individual)
Gets the
OWLClassAssertionAxioms
contained in this ontology that make the specified individual an
instance of some class expression. |
Set<OWLClass> |
getClassesInSignature()
A convenience method that obtains the classes that are in the signature
of this object
|
Set<OWLClass> |
getClassesInSignature(boolean includeImportsClosure)
Gets the classes that are in the signature of this ontology, and possibly
the imports closure of this ontology.
|
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 that are in the signature of this ontology, and
possibly the imports closure of this ontology.
|
Set<OWLDataPropertyAssertionAxiom> |
getDataPropertyAssertionAxioms(OWLIndividual individual)
Gets the
OWLDataPropertyAssertionAxioms
contained in this ontology that have the specified individual as
the subject of the axiom. |
Set<OWLDataPropertyDomainAxiom> |
getDataPropertyDomainAxioms(OWLDataProperty property)
Gets the
OWLDataPropertyDomainAxioms
where the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property. |
Set<OWLDataPropertyRangeAxiom> |
getDataPropertyRangeAxioms(OWLDataProperty property)
Gets the
OWLDataPropertyRangeAxioms
where the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property. |
Set<OWLSubDataPropertyOfAxiom> |
getDataSubPropertyAxiomsForSubProperty(OWLDataProperty lhsProperty)
Gets the
OWLSubDataPropertyOfAxioms
where the sub-property is equal to the specified property. |
Set<OWLSubDataPropertyOfAxiom> |
getDataSubPropertyAxiomsForSuperProperty(OWLDataPropertyExpression property)
Gets the
OWLSubDataPropertyOfAxioms
where the super-property (returned by
OWLSubPropertyAxiom.getSuperProperty()) is equal to the
specified property. |
Set<OWLDatatypeDefinitionAxiom> |
getDatatypeDefinitions(OWLDatatype datatype)
Gets the
OWLDatatypeDefinitionAxioms
contained in this ontology that provide a definition for the specified
datatype. |
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 that are in the signature of this ontology, and
possibly the imports closure of this ontology.
|
Set<OWLDeclarationAxiom> |
getDeclarationAxioms(OWLEntity entity)
Gets the declaration axioms for specified entity.
|
Set<OWLDifferentIndividualsAxiom> |
getDifferentIndividualAxioms(OWLIndividual individual)
Gets the
OWLDifferentIndividualsAxioms
contained in this ontology that make the specified individual
different to some other individual. |
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<OWLDisjointClassesAxiom> |
getDisjointClassesAxioms(OWLClass cls)
Gets the set of disjoint class axioms that contain the specified class as
an operand.
|
Set<OWLDisjointDataPropertiesAxiom> |
getDisjointDataPropertiesAxioms(OWLDataProperty property)
Gets the
OWLDisjointDataPropertiesAxioms that
make the specified property disjoint with some other data property
expression(s). |
Set<OWLDisjointObjectPropertiesAxiom> |
getDisjointObjectPropertiesAxioms(OWLObjectPropertyExpression property)
Gets the
OWLDisjointObjectPropertiesAxioms
that make the specified property disjoint with some other object property
expression(s). |
Set<OWLDisjointUnionAxiom> |
getDisjointUnionAxioms(OWLClass owlClass)
Gets the set of disjoint union axioms that have the specified class as
the named class that is equivalent to the disjoint union of operands.
|
Set<OWLEntity> |
getEntitiesInSignature(IRI iri)
Gets the entities in the signature of this ontology that have the
specified IRI.
|
Set<OWLEntity> |
getEntitiesInSignature(IRI iri,
boolean includeImportsClosure)
Gets the entities in the signature of this ontology, and possibly the
signature of the imports closure of this ontology, that have the
specified IRI.
|
Set<OWLEquivalentClassesAxiom> |
getEquivalentClassesAxioms(OWLClass cls)
Gets all of the equivalent axioms in this ontology that contain the
specified class as an operand.
|
Set<OWLEquivalentDataPropertiesAxiom> |
getEquivalentDataPropertiesAxioms(OWLDataProperty property)
Gets the
OWLEquivalentDataPropertiesAxioms
that make the specified property equivalent to some other data property
expression(s). |
Set<OWLEquivalentObjectPropertiesAxiom> |
getEquivalentObjectPropertiesAxioms(OWLObjectPropertyExpression property)
Gets the
OWLEquivalentObjectPropertiesAxioms
that make the specified property equivalent to some other object property
expression(s). |
Set<OWLFunctionalDataPropertyAxiom> |
getFunctionalDataPropertyAxioms(OWLDataPropertyExpression property)
Gets the
OWLFunctionalDataPropertyAxioms
contained in this ontology that make the specified data property
functional. |
Set<OWLFunctionalObjectPropertyAxiom> |
getFunctionalObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLFunctionalObjectPropertyAxioms
contained in this ontology that make the specified object property
functional. |
Set<OWLClassAxiom> |
getGeneralClassAxioms()
Gets the set of general axioms in this ontology.
|
Set<OWLHasKeyAxiom> |
getHasKeyAxioms(OWLClass cls)
Gets the has key axioms that have the specified class as their subject.
|
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 individuals that are in the signature of this ontology, and
possibly the imports closure of this ontology.
|
Set<OWLInverseFunctionalObjectPropertyAxiom> |
getInverseFunctionalObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLInverseFunctionalObjectPropertyAxioms contained in
this ontology that make the specified object property inverse functional. |
Set<OWLInverseObjectPropertiesAxiom> |
getInverseObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLInverseObjectPropertiesAxioms where the specified
property is contained in the set returned by
OWLNaryPropertyAxiom.getProperties()
. |
Set<OWLIrreflexiveObjectPropertyAxiom> |
getIrreflexiveObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLIrreflexiveObjectPropertyAxioms
contained in this ontology that make the specified object property
irreflexive. |
int |
getLogicalAxiomCount()
Gets the number of logical axioms in this ontology.
|
Set<OWLLogicalAxiom> |
getLogicalAxioms()
Gets all of the axioms in the ontology that affect the logical meaning of
the ontology.
|
Set<OWLNegativeDataPropertyAssertionAxiom> |
getNegativeDataPropertyAssertionAxioms(OWLIndividual individual)
Gets the
OWLNegativeDataPropertyAssertionAxiom
s contained in this ontology that have the specified individual as
the subject of the axiom. |
Set<OWLNegativeObjectPropertyAssertionAxiom> |
getNegativeObjectPropertyAssertionAxioms(OWLIndividual individual)
Gets the
OWLNegativeObjectPropertyAssertionAxiom
s contained in this ontology that have the specified individual as
the subject of the axiom. |
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 that are in the signature of this ontology,
and possibly the imports closure of this ontology.
|
Set<OWLObjectPropertyAssertionAxiom> |
getObjectPropertyAssertionAxioms(OWLIndividual individual)
Gets the
OWLObjectPropertyAssertionAxioms
contained in this ontology that have the specified individual as
the subject of the axiom. |
Set<OWLObjectPropertyDomainAxiom> |
getObjectPropertyDomainAxioms(OWLObjectPropertyExpression property)
Gets the
OWLObjectPropertyDomainAxioms where
the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property. |
Set<OWLObjectPropertyRangeAxiom> |
getObjectPropertyRangeAxioms(OWLObjectPropertyExpression property)
Gets the
OWLObjectPropertyRangeAxiom
s where the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property. |
Set<OWLSubObjectPropertyOfAxiom> |
getObjectSubPropertyAxiomsForSubProperty(OWLObjectPropertyExpression property)
Gets the
OWLSubObjectPropertyOfAxiom
s where the sub-property is equal to the specified property. |
Set<OWLSubObjectPropertyOfAxiom> |
getObjectSubPropertyAxiomsForSuperProperty(OWLObjectPropertyExpression property)
Gets the
OWLSubObjectPropertyOfAxiom
s where the super-property (returned by
OWLSubPropertyAxiom.getSuperProperty()) is equal to the
specified property. |
OWLOntologyID |
getOntologyID()
Gets the identity of this ontology (i.e.
|
OWLOntologyManager |
getOWLOntologyManager()
Gets the manager that created this ontology.
|
Set<OWLAxiom> |
getRBoxAxioms(boolean includeImportsClosure)
Gets the axioms that form the RBox for this ontology, i.e., the ones
whose type is in the AxiomType::RBoxAxiomTypes.
|
Set<OWLAnnotationProperty> |
getReferencedAnnotationProperties(boolean includeImportsClosure)
Deprecated.
|
Set<OWLAnonymousIndividual> |
getReferencedAnonymousIndividuals()
Gets the referenced anonymous individuals.
|
Set<OWLNamedObject> |
getReferencedObjects()
Deprecated.
|
Set<OWLAxiom> |
getReferencingAxioms(OWLAnonymousIndividual individual)
Gets the axioms that reference the specified anonymous individual.
|
Set<OWLAxiom> |
getReferencingAxioms(OWLEntity owlEntity)
Gets the axioms where the specified entity appears in the signature of
the axiom.
|
Set<OWLAxiom> |
getReferencingAxioms(OWLEntity owlEntity,
boolean includeImportsClosure)
Gets the axioms where the specified entity appears in the signature of
the axiom.
|
Set<OWLReflexiveObjectPropertyAxiom> |
getReflexiveObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLReflexiveObjectPropertyAxioms
contained in this ontology that make the specified object property
reflexive. |
Set<OWLSameIndividualAxiom> |
getSameIndividualAxioms(OWLIndividual individual)
Gets the
OWLSameIndividualAxioms
contained in this ontology that make the specified individual the
same as some other individual. |
Set<OWLEntity> |
getSignature()
Gets the signature of this object
|
Set<OWLEntity> |
getSignature(boolean includeImportsClosure)
Gets the entities that are in the signature of this ontology.
|
Set<OWLSubAnnotationPropertyOfAxiom> |
getSubAnnotationPropertyOfAxioms(OWLAnnotationProperty subProperty)
Gets the
SubAnnotationPropertyOfAxioms where the specified
property is the sub-property. |
Set<OWLSubClassOfAxiom> |
getSubClassAxiomsForSubClass(OWLClass cls)
Gets all of the subclass axioms where the left hand side (the subclass)
is equal to the specified class.
|
Set<OWLSubClassOfAxiom> |
getSubClassAxiomsForSuperClass(OWLClass cls)
Gets all of the subclass axioms where the right hand side (the
superclass) is equal to the specified class.
|
Set<OWLSymmetricObjectPropertyAxiom> |
getSymmetricObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLSymmetricObjectPropertyAxioms
contained in this ontology that make the specified object property
symmetric. |
Set<OWLAxiom> |
getTBoxAxioms(boolean includeImportsClosure)
Gets the axioms that form the TBox for this ontology, i.e., the ones
whose type is in the AxiomType::TBoxAxiomTypes.
|
Set<OWLTransitiveObjectPropertyAxiom> |
getTransitiveObjectPropertyAxioms(OWLObjectPropertyExpression property)
Gets the
OWLTransitiveObjectPropertyAxioms
contained in this ontology that make the specified object property
transitive. |
int |
hashCode() |
boolean |
isAnonymous()
Determines whether or not this ontology is anonymous.
|
boolean |
isDeclared(OWLEntity entity)
Determines if this ontology declares an entity i.e.
|
boolean |
isDeclared(OWLEntity owlEntity,
boolean 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.
|
String |
toString() |
compareLists, compareSets, compareTo, getNestedClassExpressions, isBottomEntity, isTopEntityclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNestedClassExpressions, isBottomEntity, isTopEntitycompareToprotected OWLOntologyID ontologyID
protected Internals internals
public OWLOntologyImpl(OWLOntologyManager manager, OWLOntologyID ontologyID)
manager - ontology managerontologyID - ontology idpublic String toString()
toString in class OWLObjectImplpublic OWLOntologyManager getOWLOntologyManager()
OWLOntologygetOWLOntologyManager in interface OWLOntologypublic OWLOntologyID getOntologyID()
OWLOntologygetOntologyID in interface HasOntologyIDgetOntologyID in interface OWLOntologypublic boolean isAnonymous()
OWLOntologyisAnonymous in interface OWLOntologytrue if this ontology is anonymous, otherwise
falseprotected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType in class OWLObjectImplpublic boolean isEmpty()
OWLOntologyOWLOntology.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)
OWLOntologygetAxiomCount in interface OWLOntologyT - axiom typeaxiomType - The type of axiom to countincludeImportsClosure - Specifies that the imports closure should be included when
counting axiomspublic boolean containsAxiom(OWLAxiom axiom)
OWLOntologycontainsAxiom in interface HasContainsAxiomcontainsAxiom in interface OWLOntologyaxiom - The axiom to test for.true if the ontology contains the specified axioms, or
false if the ontology doesn't contain the specified
axiom.public int getAxiomCount()
OWLOntologygetAxiomCount in interface OWLOntologypublic Set<OWLAxiom> getAxioms()
OWLOntologygetAxioms in interface HasAxiomsgetAxioms in interface OWLOntologycontainsAxiom method
is used to determine whether or not this ontology contains a
particular axiom rather than using getAxioms().contains().public <T extends OWLAxiom> Set<T> getAxioms(AxiomType<T> axiomType)
OWLOntologygetAxioms in interface HasAxiomsByTypegetAxioms in interface OWLOntologyT - axiom typeaxiomType - The type of axioms to be retrived.public <T extends OWLAxiom> Set<T> getAxioms(AxiomType<T> axiomType, boolean includeImportsClosure)
OWLOntologygetAxioms in interface OWLOntologyT - axiom typeaxiomType - The type of axioms to be retrived.includeImportsClosure - if true then axioms of the specified type will also be
retrieved from the imports closure of this ontology, if
false then axioms of the specified type will only be
retrieved from this ontology.public Set<OWLAxiom> getTBoxAxioms(boolean includeImportsClosure)
OWLOntologygetTBoxAxioms in interface OWLOntologyincludeImportsClosure - if true then axioms of the specified type will also be
retrieved from the imports closure of this ontology, if
false then axioms of the specified type will only be
retrieved from this ontology.public Set<OWLAxiom> getABoxAxioms(boolean includeImportsClosure)
OWLOntologygetABoxAxioms in interface OWLOntologyincludeImportsClosure - if true then axioms of the specified type will also be
retrieved from the imports closure of this ontology, if
false then axioms of the specified type will only be
retrieved from this ontology.public Set<OWLAxiom> getRBoxAxioms(boolean includeImportsClosure)
OWLOntologygetRBoxAxioms in interface OWLOntologyincludeImportsClosure - if true then axioms of the specified type will also be
retrieved from the imports closure of this ontology, if
false then axioms of the specified type will only be
retrieved from this ontology.public <T extends OWLAxiom> int getAxiomCount(AxiomType<T> axiomType)
OWLOntologygetAxiomCount in interface OWLOntologyT - axiom typeaxiomType - The type of axiom to countpublic Set<OWLLogicalAxiom> getLogicalAxioms()
OWLOntologygetLogicalAxioms in interface HasLogicalAxiomsgetLogicalAxioms in interface OWLOntologyOWLLogicalAxiom The
set that is returned is a copy of the axioms in the ontology - it
will not be updated if the ontology changes.public int getLogicalAxiomCount()
OWLOntologygetLogicalAxiomCount in interface OWLOntologypublic Set<OWLAnnotation> getAnnotations()
OWLOntologygetAnnotations in interface HasAnnotationsgetAnnotations in interface OWLOntologypublic Set<OWLDeclarationAxiom> getDeclarationAxioms(OWLEntity entity)
OWLOntologygetDeclarationAxioms in interface OWLOntologyentity - The entity that is the subject of the set of returned axioms.public Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLAnnotationSubject subject)
OWLOntologygetAnnotationAssertionAxioms in interface OWLOntologysubject - The entity whose annotations are to be retrieved.public Set<OWLClassAxiom> getGeneralClassAxioms()
OWLOntologyOWLClasses)OWLClasses)getGeneralClassAxioms in interface OWLOntologypublic boolean containsAxiom(OWLAxiom axiom, boolean includeImportsClosure)
OWLOntologycontainsAxiom in interface OWLOntologyaxiom - The axiom to test for.includeImportsClosure - if true the imports closure of this ontology will be
searched for the specific axiom, if false just this
ontology will be searched.true if the ontology contains the specified axioms, or
false if the ontology doesn't contain the specified
axiom.public boolean containsAxiomIgnoreAnnotations(OWLAxiom axiom)
OWLOntologySubClassOf(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 OWLOntologyaxiom - The axiom to test for.true if this ontology contains this axiom with or without
annotations.public boolean containsAxiomIgnoreAnnotations(OWLAxiom axiom, boolean includeImportsClosure)
OWLOntologySubClassOf(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 OWLOntologyaxiom - The axiom to test for.includeImportsClosure - if true the imports closure of this ontology will be
searched for the specified axiom. If false only this
ontology will be searched for the specifed axiom.true if this ontology contains this axiom with or without
annotations.public Set<OWLAxiom> getAxiomsIgnoreAnnotations(OWLAxiom axiom)
OWLOntologygetAxiomsIgnoreAnnotations in interface OWLOntologyaxiom - The axiom that specifies the logical structure of the axioms to
retrieve. If this axiom is annotated then the annotations are
ignored.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(OWLAxiom axiom, boolean includeImportsClosure)
OWLOntologygetAxiomsIgnoreAnnotations in interface OWLOntologyaxiom - The axiom that specifies the logical structure of the axioms to
retrieve. If this axiom is annotated then the annotations are
ignored.includeImportsClosure - if true then axioms in the imports closure of this
ontology are returned, if false only axioms in this
ontology will be returned.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)
OWLOntologycontainsClassInSignature in interface OWLOntologyowlClassIRI - The IRI of the OWLClass to check for.true if the signature of this ontology contains an
OWLClass that has owlClassIRI as its IRI, otherwise
false.public boolean containsClassInSignature(IRI owlClassIRI, boolean includeImportsClosure)
OWLOntologycontainsClassInSignature in interface OWLOntologyowlClassIRI - The IRI of the class to check forincludeImportsClosure - true if the signature of the ontologies in the imports
closure of this ontology should be checked, false if just
the signature of this ontology should be chekced.includeImportsClosure=true then returns true
if there is an OWLClass with owlClassIRI as its IRI in
the signature of at least one ontology in the imports clousre of
this ontology and false if this is not the case. If
includeImportsClosure=false then returns true if
the signature of this ontology contains an OWLClass that has
owlClassIRI as its IRI and false if the signature
of this ontology does not contain a class with
owlClassIRI as its IRI.public boolean containsObjectPropertyInSignature(IRI propIRI)
OWLOntologycontainsObjectPropertyInSignature in interface OWLOntologypropIRI - The IRI of the OWLObjectProperty to check for.true if the signature of this ontology contains an
OWLObjectProperty that has owlObjectPropertyIRI as its
IRI, otherwise false.public boolean containsObjectPropertyInSignature(IRI propIRI, boolean includeImportsClosure)
OWLOntologycontainsObjectPropertyInSignature in interface OWLOntologypropIRI - The IRI of the OWLObjectProperty to check forincludeImportsClosure - true if the signature of the ontologies in the imports
closure of this ontology should be checked, false if just
the signature of this ontology should be chekced.includeImportsClosure=true then returns true
if there is an OWLObjectProperty with
owlObjectPropertyIRI as its IRI in the signature of at
least one ontology in the imports clousre of this ontology and
false if this is not the case. If
includeImportsClosure=false then returns true if
the signature of this ontology contains an OWLObjectProperty that
has owlObjectPropertyIRI as its IRI and false if
the signature of this ontology does not contain a class with
owlObjectPropertyIRI as its IRI.public boolean containsDataPropertyInSignature(IRI propIRI)
OWLOntologycontainsDataPropertyInSignature in interface OWLOntologypropIRI - The IRI of the OWLDataProperty to check for.true if the signature of this ontology contains an
OWLDataProperty that has owlDataPropertyIRI as its IRI,
otherwise false.public boolean containsDataPropertyInSignature(IRI propIRI, boolean includeImportsClosure)
OWLOntologycontainsDataPropertyInSignature in interface OWLOntologypropIRI - The IRI of the OWLDataProperty to check forincludeImportsClosure - true if the signature of the ontologies in the imports
closure of this ontology should be checked, false if just
the signature of this ontology should be chekced.includeImportsClosure=true then returns true
if there is an OWLDataProperty with owlDataPropertyIRI as
its IRI in the signature of at least one ontology in the imports
clousre of this ontology and false if this is not the
case. If includeImportsClosure=false then returns
true if the signature of this ontology contains an
OWLDataProperty that has owlDataPropertyIRI as its IRI
and false if the signature of this ontology does not
contain a class with owlDataPropertyIRI as its IRI.public boolean containsAnnotationPropertyInSignature(IRI propIRI)
OWLOntologycontainsAnnotationPropertyInSignature in interface OWLOntologypropIRI - The IRI of the OWLAnnotationProperty to check for.true if the signature of this ontology contains an
OWLAnnotationProperty that has owlAnnotationPropertyIRI
as its IRI, otherwise false.public boolean containsAnnotationPropertyInSignature(IRI propIRI, boolean includeImportsClosure)
OWLOntologycontainsAnnotationPropertyInSignature in interface OWLOntologypropIRI - The IRI of the OWLAnnotationProperty to check forincludeImportsClosure - true if the signature of the ontologies in the imports
closure of this ontology should be checked, false if just
the signature of this ontology should be chekced.includeImportsClosure=true then returns true
if there is an OWLAnnotationProperty with
owlAnnotationPropertyIRI as its IRI in the signature of
at least one ontology in the imports clousre of this ontology and
false if this is not the case. If
includeImportsClosure=false then returns true if
the signature of this ontology contains an OWLAnnotationProperty
that has owlAnnotationPropertyIRI as its IRI and
false if the signature of this ontology does not contain
a class with owlAnnotationPropertyIRI as its IRI.public boolean containsIndividualInSignature(IRI individualIRI)
OWLOntologycontainsIndividualInSignature in interface OWLOntologyindividualIRI - The IRI of the OWLNamedIndividual to check for.true if the signature of this ontology contains an
OWLNamedIndividual that has owlIndividualIRI as its IRI,
otherwise false.public boolean containsIndividualInSignature(IRI individualIRI, boolean includeImportsClosure)
OWLOntologycontainsIndividualInSignature in interface OWLOntologyindividualIRI - The IRI of the OWLNamedIndividual to check forincludeImportsClosure - true if the signature of the ontologies in the imports
closure of this ontology should be checked, false if just
the signature of this ontology should be chekced.includeImportsClosure=true then returns true
if there is an OWLNamedIndividual with owlIndividualIRI
as its IRI in the signature of at least one ontology in the
imports closure of this ontology and false if this is not
the case. If includeImportsClosure=false then returns
true if the signature of this ontology contains an
OWLNamedIndividual that has owlIndividualIRI as its IRI
and false if the signature of this ontology does not
contain a class with owlIndividualIRI as its IRI.public boolean containsDatatypeInSignature(IRI datatypeIRI)
OWLOntologycontainsDatatypeInSignature in interface OWLOntologydatatypeIRI - The IRI of the OWLDatatype to check for.true if the signature of this ontology contains an
OWLDatatype that has owlDatatypeIRI as its IRI, otherwise
false.public boolean containsDatatypeInSignature(IRI datatypeIRI, boolean includeImportsClosure)
OWLOntologycontainsDatatypeInSignature in interface OWLOntologydatatypeIRI - The IRI of the OWLDatatype to check forincludeImportsClosure - true if the signature of the ontologies in the imports
closure of this ontology should be checked, false if just
the signature of this ontology should be chekced.includeImportsClosure=true then returns true
if there is an OWLDatatype with owlDatatypeIRI as its IRI
in the signature of at least one ontology in the imports closure
of this ontology and false if this is not the case. If
includeImportsClosure=false then returns true if
the signature of this ontology contains an OWLDatatype that has
owlDatatypeIRI as its IRI and false if the
signature of this ontology does not contain a class with
owlDatatypeIRI as its IRI.public Set<OWLEntity> getEntitiesInSignature(IRI iri)
OWLOntologygetEntitiesInSignature in interface HasGetEntitiesInSignaturegetEntitiesInSignature in interface OWLOntologyiri - The IRI of the entities to be retrieved.public Set<OWLEntity> getEntitiesInSignature(IRI iri, boolean includeImportsClosure)
OWLOntologygetEntitiesInSignature in interface OWLOntologyiri - The IRI of the entitied to be retrieved.includeImportsClosure - Specifies if the signatures of the ontologies in the imports
closure of this ontology should also be taken into accountincludeImportsClosure=true then returns a set of
entities that are in the signature of this ontology or the
signature of an ontology in the imports closure of this ontology
that have iri as their IRI. If
includeImportsClosure=false then returns the entities in
the signature of just this ontology that have iri as
their IRI.public boolean containsReference(OWLClass owlClass)
public boolean containsReference(OWLObjectProperty prop)
public boolean containsReference(OWLDataProperty prop)
public boolean containsReference(OWLNamedIndividual ind)
public boolean containsReference(OWLDatatype dt)
public boolean containsReference(OWLAnnotationProperty property)
public boolean isDeclared(OWLEntity entity)
OWLOntologyisDeclared in interface OWLOntologyentity - The entity to be tested fortrue if the ontology contains a declaration for the
specified entity, otherwise false.public Set<OWLDatatypeDefinitionAxiom> getDatatypeDefinitions(OWLDatatype datatype)
OWLOntologyOWLDatatypeDefinitionAxioms
contained in this ontology that provide a definition for the specified
datatype.getDatatypeDefinitions in interface OWLOntologydatatype - The datatype for which the returned axioms provide a definition.OWLDatatypeDefinitionAxioms
such that for each axiom in the set
OWLDatatypeDefinitionAxiom.getDatatype() is equal to
datatype. 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.public Set<OWLSubAnnotationPropertyOfAxiom> getSubAnnotationPropertyOfAxioms(OWLAnnotationProperty subProperty)
OWLOntologySubAnnotationPropertyOfAxioms where the specified
property is the sub-property.getSubAnnotationPropertyOfAxioms in interface OWLOntologysubProperty - The sub-property of the axioms to be retrieved.OWLSubAnnotationPropertyOfAxioms such that the
sub-property is equal to subProperty.public Set<OWLAnnotationPropertyDomainAxiom> getAnnotationPropertyDomainAxioms(OWLAnnotationProperty property)
OWLOntologyOWLAnnotationPropertyDomainAxioms where the specified
property is the property in the domain axiom.getAnnotationPropertyDomainAxioms in interface OWLOntologyproperty - The property that the axiom specifies a domain for.OWLAnnotationPropertyDomainAxioms such that the
property is equal to property.public Set<OWLAnnotationPropertyRangeAxiom> getAnnotationPropertyRangeAxioms(OWLAnnotationProperty property)
OWLOntologyOWLAnnotationPropertyRangeAxioms where the specified
property is the property in the range axiom.getAnnotationPropertyRangeAxioms in interface OWLOntologyproperty - The property that the axiom specifies a range for.OWLAnnotationPropertyRangeAxioms such that the
property is equal to property.public boolean isDeclared(OWLEntity owlEntity, boolean includeImportsClosure)
OWLOntologyisDeclared in interface OWLOntologyowlEntity - The entity to be tested forincludeImportsClosure - true if the imports closure of this ontology should be
examined, false if just this ontology should be examined.true if the ontology or its imports closure contains a
declaration for the specified entity, otherwise false.public boolean containsEntityInSignature(OWLEntity owlEntity)
HasContainsEntityInSignaturecontainsEntityInSignature in interface HasContainsEntityInSignaturecontainsEntityInSignature in interface OWLOntologycontainsEntityInSignature in class OWLObjectImplowlEntity - The entitytrue if the signature of this object contains
owlEntity, otherwise falsepublic boolean containsEntityInSignature(OWLEntity owlEntity, boolean includeImportsClosure)
OWLOntologycontainsEntityInSignature in interface OWLOntologyowlEntity - The entityincludeImportsClosure - Specifies whether the imports closure should be examined for the
entity reference or not.true if the ontology contains a reference to the
specified entity, otherwise false 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.public boolean containsEntityInSignature(IRI entityIRI)
OWLOntologycontainsEntityInSignature in interface OWLOntologyentityIRI - The IRI to test for.true if the signature of this ontology contains a class,
object property, data property, named individual, annotation
property or datatype with the specified IRI.public boolean containsEntityInSignature(IRI entityIRI, boolean includeImportsClosure)
OWLOntologycontainsEntityInSignature in interface OWLOntologyentityIRI - The IRI to test for.includeImportsClosure - Specifies whether the imports closure of this ontology should be
examined or not.includeImportsClosure=true then returns true
if the signature of this ontology or the signature of an ontology
in the imports closure of this ontology contains a class, object
property, data property, named individual, annotation property or
datatype with the specified IRI. If
includeImportsClosure=false then returns true if
the signature of this ontology contains a class, object property,
data property, named individual, annotation property or datatype
with the specified IRI.public Set<OWLAxiom> getReferencingAxioms(OWLEntity owlEntity)
OWLOntologygetReferencingAxioms in interface OWLOntologyowlEntity - The entity that should be directly referred to by an axiom that
appears in the results set.public Set<OWLAxiom> getReferencingAxioms(OWLEntity owlEntity, boolean includeImportsClosure)
OWLOntologygetReferencingAxioms in interface OWLOntologyowlEntity - The entity that should be directly referred to by an axiom that
appears in the results set.includeImportsClosure - Specifies if the axioms returned should just be from this
ontology, or from the imports closure of this ontology. If
true the axioms returned will be from the imports closure
of this ontology, if false the axioms returned will just
be from this ontology.public Set<OWLAxiom> getReferencingAxioms(OWLAnonymousIndividual individual)
OWLOntologygetReferencingAxioms in interface OWLOntologyindividual - The individualpublic Set<OWLClassAxiom> getAxioms(OWLClass cls)
OWLOntologygetAxioms in interface OWLOntologycls - The class whose describing axioms are to be retrieved.public Set<OWLObjectPropertyAxiom> getAxioms(OWLObjectPropertyExpression prop)
OWLOntologygetAxioms in interface OWLOntologyprop - The property whose defining axioms are to be retrieved.public Set<OWLAnnotationAxiom> getAxioms(OWLAnnotationProperty prop)
OWLOntologygetAxioms in interface OWLOntologyprop - The property whose definition axioms are to be retrievedpublic Set<OWLDataPropertyAxiom> getAxioms(OWLDataProperty prop)
OWLOntologygetAxioms in interface OWLOntologyprop - The property whose defining axioms are to be retrieved.public Set<OWLIndividualAxiom> getAxioms(OWLIndividual individual)
OWLOntologygetAxioms in interface OWLOntologyindividual - The individual whose defining axioms are to be retrieved.public Set<OWLDatatypeDefinitionAxiom> getAxioms(OWLDatatype datatype)
OWLOntologygetAxioms in interface OWLOntologydatatype - The datatype@Deprecated public Set<OWLNamedObject> getReferencedObjects()
public Set<OWLEntity> getSignature()
OWLObjectgetSignature in interface HasSignaturegetSignature in interface OWLObjectgetSignature in interface OWLOntologygetSignature in class OWLObjectImplOWLOntology.getClassesInSignature(),
OWLOntology.getObjectPropertiesInSignature(),
OWLOntology.getDataPropertiesInSignature(),
OWLOntology.getIndividualsInSignature()public Set<OWLEntity> getSignature(boolean includeImportsClosure)
OWLOntologygetSignature in interface OWLOntologyincludeImportsClosure - Specifies whether or not the returned set of entities should
represent the signature of just this ontology, or the signature of
the imports closure of this ontology.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.OWLOntology.getClassesInSignature(),
OWLOntology.getObjectPropertiesInSignature(),
OWLOntology.getDataPropertiesInSignature(),
OWLOntology.getIndividualsInSignature()public Set<OWLAnonymousIndividual> getAnonymousIndividuals()
OWLObjectgetAnonymousIndividuals in interface HasAnonymousIndividualsgetAnonymousIndividuals in interface OWLObjectgetAnonymousIndividuals in class OWLObjectImplpublic Set<OWLClass> getClassesInSignature()
OWLObjectgetClassesInSignature in interface HasClassesInSignaturegetClassesInSignature in interface OWLObjectgetClassesInSignature in interface OWLOntologygetClassesInSignature in class OWLObjectImplOWLOntology.getSignature()public Set<OWLDataProperty> getDataPropertiesInSignature()
OWLObjectgetDataPropertiesInSignature in interface HasDataPropertiesInSignaturegetDataPropertiesInSignature in interface OWLObjectgetDataPropertiesInSignature in interface OWLOntologygetDataPropertiesInSignature in class OWLObjectImplOWLOntology.getSignature()public Set<OWLObjectProperty> getObjectPropertiesInSignature()
OWLObjectgetObjectPropertiesInSignature in interface HasObjectPropertiesInSignaturegetObjectPropertiesInSignature in interface OWLObjectgetObjectPropertiesInSignature in interface OWLOntologygetObjectPropertiesInSignature in class OWLObjectImplOWLOntology.getSignature()public Set<OWLNamedIndividual> getIndividualsInSignature()
OWLObjectgetIndividualsInSignature in interface HasIndividualsInSignaturegetIndividualsInSignature in interface OWLObjectgetIndividualsInSignature in interface OWLOntologygetIndividualsInSignature in class OWLObjectImplOWLOntology.getSignature()public Set<OWLDatatype> getDatatypesInSignature()
OWLObjectgetDatatypesInSignature in interface HasDatatypesInSignaturegetDatatypesInSignature in interface OWLObjectgetDatatypesInSignature in interface OWLOntologygetDatatypesInSignature in class OWLObjectImplOWLOntology.getSignature()public Set<OWLClass> getClassesInSignature(boolean includeImportsClosure)
OWLOntologygetClassesInSignature in interface OWLOntologyincludeImportsClosure - Specifies whether classes should be drawn from the signature of
just this ontology or the imports closure of this ontology. If
true then the set of classes returned will correspond to
the union of the classes in the signatures of the ontologies in
the imports closure of this ontology. If false then the
set of classes returned will correspond to the classes that are in
the signature of this just this ontology.public Set<OWLObjectProperty> getObjectPropertiesInSignature(boolean includeImportsClosure)
OWLOntologygetObjectPropertiesInSignature in interface OWLOntologyincludeImportsClosure - Specifies whether object properties should be drawn from the
signature of just this ontology or the imports closure of this
ontology. If true then the set of object properties
returned will correspond to the union of the object properties in
the signatures of the ontologies in the imports closure of this
ontology. If false then the set of object properties
returned will correspond to the object properties that are in the
signature of this just this ontology.public Set<OWLDataProperty> getDataPropertiesInSignature(boolean includeImportsClosure)
OWLOntologygetDataPropertiesInSignature in interface OWLOntologyincludeImportsClosure - Specifies whether data properties should be drawn from the
signature of just this ontology or the imports closure of this
ontology. If true then the set of data properties returned
will correspond to the union of the data properties in the
signatures of the ontologies in the imports closure of this
ontology. If false then the set of data properties
returned will correspond to the data properties that are in the
signature of this just this ontology.public Set<OWLNamedIndividual> getIndividualsInSignature(boolean includeImportsClosure)
OWLOntologygetIndividualsInSignature in interface OWLOntologyincludeImportsClosure - Specifies whether individuals should be drawn from the signature
of just this ontology or the imports closure of this ontology. If
true then the set of individuals returned will correspond
to the union of the individuals in the signatures of the
ontologies in the imports closure of this ontology. If
false then the set of individuals returned will correspond
to the individuals that are in the signature of this just this
ontology.OWLOntology.getSignature()public Set<OWLAnonymousIndividual> getReferencedAnonymousIndividuals()
OWLOntologygetReferencedAnonymousIndividuals in interface OWLOntologypublic Set<OWLDatatype> getDatatypesInSignature(boolean includeImportsClosure)
OWLOntologygetDatatypesInSignature in interface OWLOntologyincludeImportsClosure - Specifies whether datatypes should be drawn from the signature of
just this ontology or the imports closure of this ontology. If
true then the set of datatypes returned will correspond to
the union of the datatypes in the signatures of the ontologies in
the imports closure of this ontology. If false then the
set of datatypes returned will correspond to the datatypes that
are in the signature of this just this ontology.OWLOntology.getSignature()public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature()
OWLOntologygetAnnotationPropertiesInSignature in interface OWLOntologyOWLOntology.getSignature()@Deprecated public Set<OWLAnnotationProperty> getReferencedAnnotationProperties(boolean includeImportsClosure)
public Set<OWLImportsDeclaration> getImportsDeclarations()
OWLOntologygetImportsDeclarations in interface OWLOntologypublic Set<IRI> getDirectImportsDocuments() throws UnknownOWLOntologyException
OWLOntologygetDirectImportsDocuments in interface OWLOntologyUnknownOWLOntologyException - If this ontology is no longer managed by its manager because it
was removed from the manager.public Set<OWLOntology> getImports() throws UnknownOWLOntologyException
OWLOntologygetImports in interface OWLOntologyUnknownOWLOntologyException - if this ontology is no longer managed by its manager because it
was removed from the manager.public Set<OWLOntology> getDirectImports() throws UnknownOWLOntologyException
OWLOntologyOWLOntology.getDirectImportsDocuments() method. This will be the case if
some of the ontologies that are directly imported by this ontology are
not loaded for whatever reason.getDirectImports in interface HasDirectImportsgetDirectImports in interface OWLOntologyUnknownOWLOntologyException - If this ontology is no longer managed by its manager because it
was removed from the manager.public Set<OWLOntology> getImportsClosure() throws UnknownOWLOntologyException
OWLOntologyOWLOntology.getImports() method plus this ontology.)getImportsClosure in interface HasImportsClosuregetImportsClosure in interface OWLOntologyUnknownOWLOntologyException - If this ontology is no longer managed by its manager because it
was removed from the manager.public Set<OWLSubClassOfAxiom> getSubClassAxiomsForSubClass(OWLClass cls)
OWLOntologygetSubClassAxiomsForSubClass in interface OWLOntologycls - The class that is equal to the left hand side of the axiom
(subclass).public Set<OWLSubClassOfAxiom> getSubClassAxiomsForSuperClass(OWLClass cls)
OWLOntologygetSubClassAxiomsForSuperClass in interface OWLOntologycls - The classpublic Set<OWLEquivalentClassesAxiom> getEquivalentClassesAxioms(OWLClass cls)
OWLOntologygetEquivalentClassesAxioms in interface OWLOntologycls - The classpublic Set<OWLDisjointClassesAxiom> getDisjointClassesAxioms(OWLClass cls)
OWLOntologygetDisjointClassesAxioms in interface OWLOntologycls - The class that should be contained in the set of disjoint class
axioms that will be returned.public Set<OWLDisjointUnionAxiom> getDisjointUnionAxioms(OWLClass owlClass)
OWLOntologygetDisjointUnionAxioms in interface OWLOntologyowlClass - The class that indexes the axioms to be retrieved.public Set<OWLHasKeyAxiom> getHasKeyAxioms(OWLClass cls)
OWLOntologygetHasKeyAxioms in interface OWLOntologycls - The subject of the has key axiomspublic Set<OWLSubObjectPropertyOfAxiom> getObjectSubPropertyAxiomsForSubProperty(OWLObjectPropertyExpression property)
OWLOntologyOWLSubObjectPropertyOfAxiom
s where the sub-property is equal to the specified property.getObjectSubPropertyAxiomsForSubProperty in interface OWLOntologyproperty - The property which is equal to the sub property of the retrived
axioms.OWLSubObjectPropertyOfAxioms
such that each axiom in the set is of the form
SubObjectPropertyOf(subProperty, pe). 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.public Set<OWLSubObjectPropertyOfAxiom> getObjectSubPropertyAxiomsForSuperProperty(OWLObjectPropertyExpression property)
OWLOntologyOWLSubObjectPropertyOfAxiom
s where the super-property (returned by
OWLSubPropertyAxiom.getSuperProperty()) is equal to the
specified property.getObjectSubPropertyAxiomsForSuperProperty in interface OWLOntologyproperty - The property which is equal to the super-property of the retrived
axioms.OWLSubObjectPropertyOfAxioms
such that each axiom in the set is of the form
SubObjectPropertyOf(pe, superProperty). 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.public Set<OWLObjectPropertyDomainAxiom> getObjectPropertyDomainAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLObjectPropertyDomainAxioms where
the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property.getObjectPropertyDomainAxioms in interface OWLOntologyproperty - The property which is equal to the property of the retrived
axioms.OWLObjectPropertyDomainAxiom
s such that each axiom in the set is of the form
ObjectPropertyDomain(pe, ce). 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.public Set<OWLObjectPropertyRangeAxiom> getObjectPropertyRangeAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLObjectPropertyRangeAxiom
s where the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property.getObjectPropertyRangeAxioms in interface OWLOntologyproperty - The property which is equal to the property of the retieved
axioms.OWLObjectPropertyRangeAxioms
such that each axiom in the set is of the form
ObjectPropertyRange(property, ce). 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.public Set<OWLInverseObjectPropertiesAxiom> getInverseObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLInverseObjectPropertiesAxioms where the specified
property is contained in the set returned by
OWLNaryPropertyAxiom.getProperties()
.getInverseObjectPropertyAxioms in interface OWLOntologyproperty - The property which is equal to the property of the retrieved
axioms.OWLInverseObjectPropertiesAxioms such that each
axiom in the set is of the form
InverseObjectProperties(property, pe) or
InverseObjectProperties(pe, property). 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.public Set<OWLEquivalentObjectPropertiesAxiom> getEquivalentObjectPropertiesAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLEquivalentObjectPropertiesAxioms
that make the specified property equivalent to some other object property
expression(s).getEquivalentObjectPropertiesAxioms in interface OWLOntologyproperty - The property that the retrieved axioms make equivalent to some
other property expressions. For each axiom retrieved the set of
properties returned by
OWLNaryPropertyAxiom.getProperties() will
contain property.OWLEquivalentObjectPropertiesAxiom
s such that each axiom in the set is of the form
EquivalentObjectProperties(pe0, ..., property, ..., pen)
. 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.public Set<OWLDisjointObjectPropertiesAxiom> getDisjointObjectPropertiesAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLDisjointObjectPropertiesAxioms
that make the specified property disjoint with some other object property
expression(s).getDisjointObjectPropertiesAxioms in interface OWLOntologyproperty - The property that the retrieved axioms makes disjoint to some
other property expressions. For each axiom retrieved the set of
properties returned by
OWLNaryPropertyAxiom.getProperties() will
contain property.OWLDisjointObjectPropertiesAxiom
s such that each axiom in the set is of the form
DisjointObjectProperties(pe0, ..., property, ..., pen) .
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.public Set<OWLFunctionalObjectPropertyAxiom> getFunctionalObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLFunctionalObjectPropertyAxioms
contained in this ontology that make the specified object property
functional.getFunctionalObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made functional by the axioms.OWLFunctionalObjectPropertyAxiom
s such that each axiom in the set is of the form
FunctionalObjectProperty(property).public Set<OWLInverseFunctionalObjectPropertyAxiom> getInverseFunctionalObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLInverseFunctionalObjectPropertyAxioms contained in
this ontology that make the specified object property inverse functional.getInverseFunctionalObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made inverse functional by the axioms.OWLFunctionalObjectPropertyAxiom
s such that each axiom in the set is of the form
InverseFunctionalObjectProperty(property).public Set<OWLSymmetricObjectPropertyAxiom> getSymmetricObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLSymmetricObjectPropertyAxioms
contained in this ontology that make the specified object property
symmetric.getSymmetricObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made symmetric by the axioms.OWLSymmetricObjectPropertyAxiom
s such that each axiom in the set is of the form
SymmetricObjectProperty(property).public Set<OWLAsymmetricObjectPropertyAxiom> getAsymmetricObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLAsymmetricObjectPropertyAxioms
contained in this ontology that make the specified object property
asymmetric.getAsymmetricObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made asymmetric by the axioms.OWLAsymmetricObjectPropertyAxiom
s such that each axiom in the set is of the form
AsymmetricObjectProperty(property).public Set<OWLReflexiveObjectPropertyAxiom> getReflexiveObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLReflexiveObjectPropertyAxioms
contained in this ontology that make the specified object property
reflexive.getReflexiveObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made reflexive by the axioms.OWLReflexiveObjectPropertyAxiom
s such that each axiom in the set is of the form
ReflexiveObjectProperty(property).public Set<OWLIrreflexiveObjectPropertyAxiom> getIrreflexiveObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLIrreflexiveObjectPropertyAxioms
contained in this ontology that make the specified object property
irreflexive.getIrreflexiveObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made irreflexive by the axioms.OWLIrreflexiveObjectPropertyAxiom
s such that each axiom in the set is of the form
IrreflexiveObjectProperty(property).public Set<OWLTransitiveObjectPropertyAxiom> getTransitiveObjectPropertyAxioms(OWLObjectPropertyExpression property)
OWLOntologyOWLTransitiveObjectPropertyAxioms
contained in this ontology that make the specified object property
transitive.getTransitiveObjectPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made transitive by the axioms.OWLTransitiveObjectPropertyAxiom
s such that each axiom in the set is of the form
TransitiveObjectProperty(property).public Set<OWLFunctionalDataPropertyAxiom> getFunctionalDataPropertyAxioms(OWLDataPropertyExpression property)
OWLOntologyOWLFunctionalDataPropertyAxioms
contained in this ontology that make the specified data property
functional.getFunctionalDataPropertyAxioms in interface OWLOntologyproperty - The property (returned by
OWLUnaryPropertyAxiom.getProperty()
) that is made functional by the axioms.OWLFunctionalDataPropertyAxiom
s such that each axiom in the set is of the form
FunctionalDataProperty(property). 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.public Set<OWLSubDataPropertyOfAxiom> getDataSubPropertyAxiomsForSubProperty(OWLDataProperty lhsProperty)
OWLOntologyOWLSubDataPropertyOfAxioms
where the sub-property is equal to the specified property.getDataSubPropertyAxiomsForSubProperty in interface OWLOntologylhsProperty - The property which is equal to the sub property of the retrived
axioms.OWLSubDataPropertyOfAxioms
such that each axiom in the set is of the form
SubDataPropertyOf(subProperty, pe). 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.public Set<OWLSubDataPropertyOfAxiom> getDataSubPropertyAxiomsForSuperProperty(OWLDataPropertyExpression property)
OWLOntologyOWLSubDataPropertyOfAxioms
where the super-property (returned by
OWLSubPropertyAxiom.getSuperProperty()) is equal to the
specified property.getDataSubPropertyAxiomsForSuperProperty in interface OWLOntologyproperty - The property which is equal to the super-property of the retrived
axioms.OWLSubDataPropertyOfAxioms
such that each axiom in the set is of the form
SubDataPropertyOf(pe, superProperty). 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.public Set<OWLDataPropertyDomainAxiom> getDataPropertyDomainAxioms(OWLDataProperty property)
OWLOntologyOWLDataPropertyDomainAxioms
where the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property.getDataPropertyDomainAxioms in interface OWLOntologyproperty - The property which is equal to the property of the retrived
axioms.OWLDataPropertyDomainAxioms
such that each axiom in the set is of the form
DataPropertyDomain(pe, ce). 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.public Set<OWLDataPropertyRangeAxiom> getDataPropertyRangeAxioms(OWLDataProperty property)
OWLOntologyOWLDataPropertyRangeAxioms
where the property (returned by
OWLUnaryPropertyAxiom.getProperty()
) is equal to the specified property.getDataPropertyRangeAxioms in interface OWLOntologyproperty - The property which is equal to the property of the retieved
axioms.OWLDataPropertyRangeAxioms
such that each axiom in the set is of the form
DataPropertyRange(property, ce). 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.public Set<OWLEquivalentDataPropertiesAxiom> getEquivalentDataPropertiesAxioms(OWLDataProperty property)
OWLOntologyOWLEquivalentDataPropertiesAxioms
that make the specified property equivalent to some other data property
expression(s).getEquivalentDataPropertiesAxioms in interface OWLOntologyproperty - The property that the retrieved axioms make equivalent to some
other property expressions. For each axiom retrieved the set of
properties returned by
OWLNaryPropertyAxiom.getProperties() will
contain property.OWLEquivalentDataPropertiesAxiom
s such that each axiom in the set is of the form
EquivalentDataProperties(pe0, ..., property, ..., pen) .
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.public Set<OWLDisjointDataPropertiesAxiom> getDisjointDataPropertiesAxioms(OWLDataProperty property)
OWLOntologyOWLDisjointDataPropertiesAxioms that
make the specified property disjoint with some other data property
expression(s).getDisjointDataPropertiesAxioms in interface OWLOntologyproperty - The property that the retrieved axioms makes disjoint to some
other property expressions. For each axiom retrieved the set of
properties returned by
OWLNaryPropertyAxiom.getProperties() will
contain property.OWLDisjointDataPropertiesAxiom
s such that each axiom in the set is of the form
DisjointDataProperties(pe0, ..., property, ..., pen) .
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.public Set<OWLClassAssertionAxiom> getClassAssertionAxioms(OWLIndividual individual)
OWLOntologyOWLClassAssertionAxioms
contained in this ontology that make the specified individual an
instance of some class expression.getClassAssertionAxioms in interface OWLOntologyindividual - The individual that the returned axioms make an instance of some
class expression.OWLClassAssertionAxioms such
that each axiom in the set is of the form
ClassAssertion(ce, individual) (for each axiom
OWLClassAssertionAxiom.getIndividual() is equal to
individual). 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.public Set<OWLClassAssertionAxiom> getClassAssertionAxioms(OWLClassExpression type)
OWLOntologyOWLClassAssertionAxioms
contained in this ontology that make the specified class expression,
ce, a type for some individual.getClassAssertionAxioms in interface OWLOntologytype - The class expression that the returned axioms make a type for some
individual.OWLClassAssertionAxioms such
that each axiom in the set is of the form
ClassAssertion(ce, ind) (for each axiom
OWLClassAssertionAxiom.getClassExpression() is equal to
ce). 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.public Set<OWLDataPropertyAssertionAxiom> getDataPropertyAssertionAxioms(OWLIndividual individual)
OWLOntologyOWLDataPropertyAssertionAxioms
contained in this ontology that have the specified individual as
the subject of the axiom.getDataPropertyAssertionAxioms in interface OWLOntologyindividual - The individual that the returned axioms have as a subject.OWLDataPropertyAssertionAxiom
s such that each axiom in the set is of the form
DataPropertyAssertion(dp, individual, l) (for each axiom
OWLPropertyAssertionAxiom.getSubject() is equal to
individual). 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.public Set<OWLObjectPropertyAssertionAxiom> getObjectPropertyAssertionAxioms(OWLIndividual individual)
OWLOntologyOWLObjectPropertyAssertionAxioms
contained in this ontology that have the specified individual as
the subject of the axiom.getObjectPropertyAssertionAxioms in interface OWLOntologyindividual - The individual that the returned axioms have as a subject.OWLObjectPropertyAssertionAxiom
s such that each axiom in the set is of the form
ObjectPropertyAssertion(dp, individual, obj) (for each
axiom OWLPropertyAssertionAxiom.getSubject() is
equal to individual). 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.public Set<OWLNegativeObjectPropertyAssertionAxiom> getNegativeObjectPropertyAssertionAxioms(OWLIndividual individual)
OWLOntologyOWLNegativeObjectPropertyAssertionAxiom
s contained in this ontology that have the specified individual as
the subject of the axiom.getNegativeObjectPropertyAssertionAxioms in interface OWLOntologyindividual - The individual that the returned axioms have as a subject.OWLNegativeObjectPropertyAssertionAxiom
s such that each axiom in the set is of the form
NegativeObjectPropertyAssertion(dp, individual, obj) (for
each axiom
OWLPropertyAssertionAxiom.getSubject() is
equal to individual). 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.public Set<OWLNegativeDataPropertyAssertionAxiom> getNegativeDataPropertyAssertionAxioms(OWLIndividual individual)
OWLOntologyOWLNegativeDataPropertyAssertionAxiom
s contained in this ontology that have the specified individual as
the subject of the axiom.getNegativeDataPropertyAssertionAxioms in interface OWLOntologyindividual - The individual that the returned axioms have as a subject.OWLNegativeDataPropertyAssertionAxiom
s such that each axiom in the set is of the form
NegativeDataPropertyAssertion(dp, individual, obj) (for
each axiom
OWLPropertyAssertionAxiom.getSubject() is
equal to individual). 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.public Set<OWLSameIndividualAxiom> getSameIndividualAxioms(OWLIndividual individual)
OWLOntologyOWLSameIndividualAxioms
contained in this ontology that make the specified individual the
same as some other individual.getSameIndividualAxioms in interface OWLOntologyindividual - The individual that the returned axioms make the same as some
other individual.OWLSameIndividualAxioms such
that each axiom in the set is of the form
SameIndividual(individual, ind, ...) (for each axiom
returned OWLNaryIndividualAxiom.getIndividuals() contains
individual. 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.public Set<OWLDifferentIndividualsAxiom> getDifferentIndividualAxioms(OWLIndividual individual)
OWLOntologyOWLDifferentIndividualsAxioms
contained in this ontology that make the specified individual
different to some other individual.getDifferentIndividualAxioms in interface OWLOntologyindividual - The individual that the returned axioms make the different as some
other individual.OWLDifferentIndividualsAxiom
s such that each axiom in the set is of the form
DifferentIndividuals(individual, ind, ...) (for each
axiom returned
OWLNaryIndividualAxiom.getIndividuals() contains
individual. 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.public List<OWLOntologyChange> applyChange(OWLOntologyChange change)
applyChange in interface OWLMutableOntologychange - the change to applypublic List<OWLOntologyChange> applyChanges(List<OWLOntologyChange> changes)
applyChanges in interface OWLMutableOntologychanges - the changes to applypublic void accept(OWLObjectVisitor visitor)
OWLObjectpublic void accept(OWLNamedObjectVisitor visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObjectpublic boolean equals(Object obj)
equals in class OWLObjectImplpublic int hashCode()
hashCode in class OWLObjectImplCopyright © 2014 The University of Manchester. All Rights Reserved.