public class OWLImmutableOntologyImpl extends OWLAxiomIndexImpl implements OWLOntology, Serializable
| Constructor and Description |
|---|
OWLImmutableOntologyImpl(OWLOntologyManager manager,
OWLOntologyID ontologyID) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<OWLAxiom> |
aboxAxioms(Imports imports)
Gets the axioms that form the ABox for this ontology, i.e., the ones
whose type is in the AxiomType::ABoxAxiomTypes.
|
java.util.stream.Stream<OWLAnnotationProperty> |
annotationPropertiesInSignature()
A convenience method that obtains the annotation properties that are in
the signature of this object.
|
java.util.stream.Stream<OWLAnnotation> |
annotations() |
java.util.stream.Stream<OWLAnonymousIndividual> |
anonymousIndividuals()
Gets the anonymous individuals occurring in this object.
|
java.util.stream.Stream<OWLAxiom> |
axioms() |
<T extends OWLAxiom> |
axioms(AxiomType<T> axiomType)
Filter axioms according to the specified type.
|
<A extends OWLAxiom> |
axioms(Class<A> type,
Class<? extends OWLObject> explicitClass,
OWLObject entity,
Navigation forSubPosition)
Generic search method: resutns all axioms which refer entity, are
instances of type, optionally including the imports closure in the
results.
|
<T extends OWLAxiom> |
axioms(OWLAxiomSearchFilter filter,
Object key)
Generic filter type for further refining search by axiom type.
|
<T extends OWLAxiom> |
axioms(OWLAxiomSearchFilter filter,
Object key,
Imports imports)
Generic filter type for further refining search by axiom type.
|
java.util.stream.Stream<OWLClassAxiom> |
axioms(OWLClass cls)
Gets the axioms that form the definition/description of a class.
|
java.util.stream.Stream<OWLDataPropertyAxiom> |
axioms(OWLDataProperty property)
Gets the axioms that form the definition/description of a data property.
|
java.util.stream.Stream<OWLDatatypeDefinitionAxiom> |
axioms(OWLDatatype datatype)
Gets the datatype definition axioms for the specified datatype.
|
java.util.stream.Stream<OWLIndividualAxiom> |
axioms(OWLIndividual individual)
Gets the axioms that form the definition/description of an individual.
|
java.util.stream.Stream<OWLObjectPropertyAxiom> |
axioms(OWLObjectPropertyExpression property)
Gets the axioms that form the definition/description of an object
property.
|
java.util.stream.Stream<OWLAxiom> |
axiomsIgnoreAnnotations(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.
|
java.util.stream.Stream<OWLAxiom> |
axiomsIgnoreAnnotations(OWLAxiom axiom,
Imports imports)
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.
|
java.util.stream.Stream<OWLClass> |
classesInSignature() |
boolean |
contains(OWLAxiomSearchFilter filter,
Object key)
Generic containment check type for further refining search by axiom type.
|
boolean |
contains(OWLAxiomSearchFilter filter,
Object key,
Imports imports)
Generic containment check type for further refining search by axiom type.
|
boolean |
containsAnnotationPropertyInSignature(IRI iri)
Determines if the signature contains an OWLAnnotationProperty that has
the specified IRI.
|
boolean |
containsAnnotationPropertyInSignature(IRI iri,
Imports imports)
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,
Imports imports,
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 |
containsClassInSignature(IRI iri)
Determines if the signature contains an OWLClass that has the specified
IRI.
|
boolean |
containsClassInSignature(IRI iri,
Imports imports)
Determines if the signature contains an OWLClass that has the specified
IRI.
|
boolean |
containsDataPropertyInSignature(IRI iri)
Determines if the signature contains an OWLDataProperty that has the
specified IRI.
|
boolean |
containsDataPropertyInSignature(IRI iri,
Imports imports)
Determines if the signature contains an OWLDataProperty that has the
specified IRI.
|
boolean |
containsDatatypeInSignature(IRI iri)
Determines if the signature contains an OWLDatatype that has the
specified IRI.
|
boolean |
containsDatatypeInSignature(IRI iri,
Imports imports)
Determines if the signature contains an OWLDatatype that has the
specified IRI.
|
boolean |
containsEntityInSignature(OWLEntity owlEntity)
Determines if the signature of this object contains the specified entity.
|
boolean |
containsIndividualInSignature(IRI iri)
Determines if the signature contains an OWLNamedIndividual that has the
specified IRI.
|
boolean |
containsIndividualInSignature(IRI iri,
Imports imports)
Determines if the signature contains an OWLNamedIndividual that has the
specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI iri)
Determines if the signature contains an OWLObjectProperty that has the
specified IRI.
|
boolean |
containsObjectPropertyInSignature(IRI iri,
Imports imports)
Determines if the signature contains an OWLObjectProperty that has the
specified IRI.
|
boolean |
containsReference(OWLEntity entity) |
boolean |
containsReference(OWLEntity entity,
Imports includeImportsClosure) |
java.util.stream.Stream<OWLDataProperty> |
dataPropertiesInSignature() |
java.util.stream.Stream<OWLDatatype> |
datatypesInSignature() |
java.util.stream.Stream<OWLOntology> |
directImports()
Stream of loaded ontologies that this ontology is related to via
the directlyImports relation.
|
java.util.stream.Stream<IRI> |
directImportsDocuments()
The stream of document IRIs that are directly imported by this ontology.
|
java.util.stream.Stream<OWLEntity> |
entitiesInSignature(IRI iri) |
java.util.stream.Stream<OWLClassAxiom> |
generalClassAxioms()
Gets the set of general axioms in this ontology.
|
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,
Imports imports)
Gets the axiom count of a specific type of axiom, optionally including
the imports closure.
|
int |
getAxiomCount(Imports imports) |
int |
getLogicalAxiomCount()
Gets the number of logical axioms in this collection.
|
int |
getLogicalAxiomCount(Imports imports)
Gets the number of logical axioms in this collection, optionally
including the imports closure.
|
OWLOntologyID |
getOntologyID()
Gets the
OWLOntologyID belonging to this object. |
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.
|
java.util.stream.Stream<OWLOntology> |
imports()
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. |
java.util.stream.Stream<OWLOntology> |
importsClosure()
Gets the imports closure, including the root object.
|
java.util.stream.Stream<OWLImportsDeclaration> |
importsDeclarations()
Gets the set of imports declarations for this ontology.
|
java.util.stream.Stream<OWLNamedIndividual> |
individualsInSignature() |
boolean |
isAnonymous() |
boolean |
isDeclared(OWLEntity owlEntity)
Determines if this ontology 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.
|
java.util.stream.Stream<OWLLogicalAxiom> |
logicalAxioms() |
java.util.stream.Stream<OWLObjectProperty> |
objectPropertiesInSignature() |
java.util.stream.Stream<OWLAxiom> |
rboxAxioms(Imports imports)
Gets the axioms that form the RBox for this ontology, i.e., the ones
whose type is in the AxiomType::RBoxAxiomTypes.
|
java.util.stream.Stream<OWLAnonymousIndividual> |
referencedAnonymousIndividuals()
Gets the referenced anonymous individuals.
|
java.util.stream.Stream<OWLAxiom> |
referencingAxioms(OWLPrimitive owlEntity)
Gets the axioms where the specified
OWLPrimitive appears in the
signature of the axiom.Note that currently signatures contain OWLEntity only. |
void |
setOWLOntologyManager(OWLOntologyManager manager)
Sets the manager for this ontology.
|
java.util.stream.Stream<OWLEntity> |
signature() |
java.util.stream.Stream<OWLAxiom> |
tboxAxioms(Imports imports)
Gets the axioms that form the TBox for this ontology, i.e., the ones
whose type is in the AxiomType::TBoxAxiomTypes.
|
String |
toString() |
annotationPropertyDomainAxioms, annotationPropertyRangeAxioms, datatypeDefinitions, subAnnotationPropertyOfAxioms, trimToSizecompareTo, equals, hashCode, nestedClassExpressionsaccept, accept, accept, accept, addAxiom, addAxioms, addAxioms, addAxioms, applyChange, applyChanges, applyDirectChange, components, getABoxAxioms, getFormat, getGeneralClassAxioms, getImports, getImportsDeclarations, getNonnullFormat, getRBoxAxioms, getSignature, getTBoxAxioms, hashIndex, isAxiom, isDeclared, isIndividual, isOntology, removeAxiom, removeAxioms, removeAxioms, removeAxioms, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, signature, typeIndexgetNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isTopEntity, nestedClassExpressionscompareTogetSignaturegetAnonymousIndividualsgetAnnotationPropertiesInSignaturecomponentsAnnotationsFirst, componentsWithoutAnnotationsannotations, annotations, getAnnotations, getAnnotationsgetDirectImports, getDirectImportsDocumentscontainsAxiom, containsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxiomsaxioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getAxiomsIgnoreAnnotations, getLogicalAxioms, getReferencingAxioms, getReferencingAxioms, logicalAxioms, referencingAxiomsgetLogicalAxiomsequalAxioms, getAxiomscontainsAnnotationPropertyInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsReference, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getReferencedAnonymousIndividualsannotationPropertiesInSignature, classesInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, entitiesInSignature, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getReferencedAnonymousIndividuals, getReferencedAnonymousIndividuals, individualsInSignature, objectPropertiesInSignature, referencedAnonymousIndividualsgetEntitiesInSignaturegetClassesInSignaturegetObjectPropertiesInSignaturegetDataPropertiesInSignaturegetDatatypesInSignaturegetIndividualsInSignatureannotationAssertionAxioms, annotationAssertionAxioms, annotationPropertyDomainAxioms, annotationPropertyRangeAxioms, asymmetricObjectPropertyAxioms, axioms, axioms, axioms, classAssertionAxioms, classAssertionAxioms, dataPropertyAssertionAxioms, dataPropertyDomainAxioms, dataPropertyRangeAxioms, dataSubPropertyAxiomsForSubProperty, dataSubPropertyAxiomsForSuperProperty, datatypeDefinitions, declarationAxioms, differentIndividualAxioms, disjointClassesAxioms, disjointDataPropertiesAxioms, disjointObjectPropertiesAxioms, disjointUnionAxioms, equivalentClassesAxioms, equivalentDataPropertiesAxioms, equivalentObjectPropertiesAxioms, filterAxioms, filterAxioms, functionalDataPropertyAxioms, functionalObjectPropertyAxioms, getAnnotationAssertionAxioms, getAnnotationAssertionAxioms, getAnnotationPropertyDomainAxioms, getAnnotationPropertyRangeAxioms, getAsymmetricObjectPropertyAxioms, getAxioms, getAxioms, getAxioms, getAxioms, 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, hasKeyAxioms, inverseFunctionalObjectPropertyAxioms, inverseObjectPropertyAxioms, irreflexiveObjectPropertyAxioms, negativeDataPropertyAssertionAxioms, negativeObjectPropertyAssertionAxioms, objectPropertyAssertionAxioms, objectPropertyDomainAxioms, objectPropertyRangeAxioms, objectSubPropertyAxiomsForSubProperty, objectSubPropertyAxiomsForSuperProperty, reflexiveObjectPropertyAxioms, sameIndividualAxioms, subAnnotationPropertyOfAxioms, subClassAxiomsForSubClass, subClassAxiomsForSuperClass, symmetricObjectPropertyAxioms, transitiveObjectPropertyAxiomsapplyChangesaddadd, addremoveremove, remove, removeaddAnonymousIndividualsToSet, addSignatureEntitiesToSetpublic OWLImmutableOntologyImpl(OWLOntologyManager manager, OWLOntologyID ontologyID)
manager - ontology managerontologyID - ontology idpublic String toString()
toString in class OWLObjectImplpublic OWLOntologyManager getOWLOntologyManager()
OWLOntologygetOWLOntologyManager in interface OWLOntologypublic void setOWLOntologyManager(@Nullable OWLOntologyManager manager)
OWLOntologysetOWLOntologyManager in interface OWLOntologymanager - the new manager for this ontologypublic OWLOntologyID getOntologyID()
HasOntologyIDOWLOntologyID belonging to this object.getOntologyID in interface HasOntologyIDOWLOntologyIDpublic boolean isAnonymous()
isAnonymous in interface IsAnonymoustrue if this object is anonymous, false
otherwise. For example, class expressions are anonymous while
class entities are not (they have an IRI).public boolean isEmpty()
OWLOntologyHasAxioms.axioms() is empty), and it does not
have any annotations (i.e. HasAnnotations.annotations() is empty).isEmpty in interface OWLOntologytrue if the ontology is empty, otherwise false.public <T extends OWLAxiom> int getAxiomCount(AxiomType<T> axiomType)
OWLAxiomCollectiongetAxiomCount in interface OWLAxiomCollectionT - axiom type classaxiomType - The type of axiom to countpublic int getAxiomCount()
getAxiomCount in interface OWLAxiomCollectionpublic boolean containsAxiom(OWLAxiom axiom)
HasContainsAxiomOWLAxiom.containsAxiom in interface HasContainsAxiomaxiom - The OWLAxiom to test for.true if this object contains axiom, otherwise
false.public java.util.stream.Stream<OWLAxiom> axioms()
public <T extends OWLAxiom> java.util.stream.Stream<T> axioms(AxiomType<T> axiomType)
HasAxiomsByTypeaxioms in interface HasAxiomsByTypeT - axiom typeaxiomType - The type of axioms to be retrieved.public java.util.stream.Stream<OWLLogicalAxiom> logicalAxioms()
logicalAxioms in interface HasLogicalAxiomsOWLLogicalAxioms that are contained within this
object.public int getLogicalAxiomCount()
OWLAxiomCollectiongetLogicalAxiomCount in interface OWLAxiomCollectionpublic <T extends OWLAxiom> int getAxiomCount(AxiomType<T> axiomType, Imports imports)
OWLAxiomCollectiongetAxiomCount in interface OWLAxiomCollectionT - axiom typeaxiomType - The type of axiom to countimports - if INCLUDED, include imports closure.public int getAxiomCount(Imports imports)
getAxiomCount in interface OWLAxiomCollectionimports - if INCLUDED, include imports closure.public java.util.stream.Stream<OWLAxiom> tboxAxioms(Imports imports)
OWLOntologytboxAxioms in interface OWLOntologyimports - if INCLUDED, the imports closure is included.public java.util.stream.Stream<OWLAxiom> aboxAxioms(Imports imports)
OWLOntologyaboxAxioms in interface OWLOntologyimports - if INCLUDED, the imports closure is included.public java.util.stream.Stream<OWLAxiom> rboxAxioms(Imports imports)
OWLOntologyrboxAxioms in interface OWLOntologyimports - if INCLUDED, the imports closure is included.public int getLogicalAxiomCount(Imports imports)
OWLAxiomCollectiongetLogicalAxiomCount in interface OWLAxiomCollectionimports - if INCLUDED, include imports closure.public java.util.stream.Stream<OWLAnnotation> annotations()
annotations in interface HasAnnotationspublic java.util.stream.Stream<OWLClassAxiom> generalClassAxioms()
OWLOntologyOWLClasses)OWLClasses)generalClassAxioms in interface OWLOntologypublic boolean containsAxiom(OWLAxiom axiom, Imports imports, AxiomAnnotations ignoreAnnotations)
OWLAxiomCollectioncontainsAxiom in interface OWLAxiomCollectionaxiom - The axiom to search.imports - 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 java.util.stream.Stream<OWLAxiom> axiomsIgnoreAnnotations(OWLAxiom axiom)
OWLAxiomCollectionaxiomsIgnoreAnnotations in interface OWLAxiomCollectionaxiom - 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 boolean containsAxiomIgnoreAnnotations(OWLAxiom axiom)
OWLAxiomCollectioncontainsAxiomIgnoreAnnotations in interface OWLAxiomCollectionaxiom - The axiom to search.true if the ontology contains the specified axiom.public java.util.stream.Stream<OWLAxiom> axiomsIgnoreAnnotations(OWLAxiom axiom, Imports imports)
OWLAxiomCollectionaxiomsIgnoreAnnotations in interface OWLAxiomCollectionaxiom - The axiom that the returned axioms must equal, ignoring
annotations.imports - 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 iri, Imports imports)
OWLSignaturecontainsClassInSignature in interface OWLSignatureiri - The IRI of the class to check forimports - if INCLUDED, include imports closure.public boolean containsObjectPropertyInSignature(IRI iri, Imports imports)
OWLSignaturecontainsObjectPropertyInSignature in interface OWLSignatureiri - The IRI of the OWLObjectProperty to check forimports - if INCLUDED, include imports closure.public boolean containsDataPropertyInSignature(IRI iri, Imports imports)
OWLSignaturecontainsDataPropertyInSignature in interface OWLSignatureiri - The IRI of the OWLDataProperty to check forimports - if INCLUDED, include imports closure.public boolean containsAnnotationPropertyInSignature(IRI iri, Imports imports)
OWLSignaturecontainsAnnotationPropertyInSignature in interface OWLSignatureiri - The IRI of the OWLAnnotationProperty to check forimports - if INCLUDED, include imports closure.public boolean containsIndividualInSignature(IRI iri, Imports imports)
OWLSignaturecontainsIndividualInSignature in interface OWLSignatureiri - The IRI of the OWLNamedIndividual to check forimports - if INCLUDED, include imports closure.public boolean containsDatatypeInSignature(IRI iri, Imports imports)
OWLSignaturecontainsDatatypeInSignature in interface OWLSignatureiri - The IRI of the OWLDatatype to check forimports - if INCLUDED, include imports closure.public java.util.stream.Stream<OWLEntity> entitiesInSignature(IRI iri)
entitiesInSignature in interface HasGetEntitiesInSignatureiri - IRI for all entities to retrievepublic Set<IRI> getPunnedIRIs(Imports includeImportsClosure)
OWLSignaturegetPunnedIRIs in interface OWLSignatureincludeImportsClosure - if INCLUDED, include imports closure.public boolean containsReference(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 containsEntityInSignature(OWLEntity owlEntity)
HasContainsEntityInSignaturecontainsEntityInSignature in interface HasContainsEntityInSignaturecontainsEntityInSignature in class OWLObjectImplowlEntity - The entitytrue if the signature of this object contains
owlEntity, otherwise falsepublic java.util.stream.Stream<OWLEntity> signature()
signature in interface HasSignaturesignature in class OWLObjectImplpublic java.util.stream.Stream<OWLAnonymousIndividual> anonymousIndividuals()
HasAnonymousIndividualsanonymousIndividuals in interface HasAnonymousIndividualsanonymousIndividuals in class OWLObjectImplpublic java.util.stream.Stream<OWLClass> classesInSignature()
classesInSignature in interface HasClassesInSignatureclassesInSignature in class OWLObjectImplpublic java.util.stream.Stream<OWLDataProperty> dataPropertiesInSignature()
dataPropertiesInSignature in interface HasDataPropertiesInSignaturedataPropertiesInSignature in class OWLObjectImplpublic java.util.stream.Stream<OWLObjectProperty> objectPropertiesInSignature()
objectPropertiesInSignature in interface HasObjectPropertiesInSignatureobjectPropertiesInSignature in class OWLObjectImplpublic java.util.stream.Stream<OWLNamedIndividual> individualsInSignature()
individualsInSignature in interface HasIndividualsInSignatureindividualsInSignature in class OWLObjectImplpublic java.util.stream.Stream<OWLDatatype> datatypesInSignature()
datatypesInSignature in interface HasDatatypesInSignaturedatatypesInSignature in class OWLObjectImplpublic java.util.stream.Stream<OWLAnonymousIndividual> referencedAnonymousIndividuals()
OWLSignaturereferencedAnonymousIndividuals in interface OWLSignaturepublic java.util.stream.Stream<OWLAnnotationProperty> annotationPropertiesInSignature()
HasAnnotationPropertiesInSignatureannotationPropertiesInSignature in interface HasAnnotationPropertiesInSignatureannotationPropertiesInSignature in class OWLObjectImplpublic java.util.stream.Stream<OWLImportsDeclaration> importsDeclarations()
OWLOntologyimportsDeclarations in interface OWLOntologypublic java.util.stream.Stream<IRI> directImportsDocuments()
HasDirectImportsdirectImportsDocuments in interface HasDirectImportspublic java.util.stream.Stream<OWLOntology> imports()
OWLOntologyimports in interface OWLOntologypublic java.util.stream.Stream<OWLOntology> directImports()
HasDirectImportsHasDirectImports.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.directImports in interface HasDirectImportspublic java.util.stream.Stream<OWLOntology> importsClosure()
HasImportsClosureimportsClosure in interface HasImportsClosurepublic java.util.stream.Stream<OWLClassAxiom> axioms(OWLClass cls)
OWLAxiomCollectionaxioms in interface OWLAxiomCollectioncls - The class whose describing axioms are to be retrieved.public java.util.stream.Stream<OWLObjectPropertyAxiom> axioms(OWLObjectPropertyExpression property)
OWLAxiomCollectionaxioms in interface OWLAxiomCollectionproperty - The property whose defining axioms are to be retrieved.public java.util.stream.Stream<OWLDataPropertyAxiom> axioms(OWLDataProperty property)
OWLAxiomCollectionaxioms in interface OWLAxiomCollectionproperty - The property whose defining axioms are to be retrieved.public java.util.stream.Stream<OWLIndividualAxiom> axioms(OWLIndividual individual)
OWLAxiomCollectionaxioms in interface OWLAxiomCollectionindividual - The individual whose defining axioms are to be retrieved.public java.util.stream.Stream<OWLDatatypeDefinitionAxiom> axioms(OWLDatatype datatype)
OWLAxiomCollectionaxioms in interface OWLAxiomCollectiondatatype - The datatypepublic java.util.stream.Stream<OWLAxiom> referencingAxioms(OWLPrimitive owlEntity)
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.referencingAxioms in interface OWLAxiomCollectionowlEntity - The entity that should be directly referred to by all axioms in
the results set.public <A extends OWLAxiom> java.util.stream.Stream<A> axioms(Class<A> type, Class<? extends OWLObject> explicitClass, OWLObject entity, Navigation forSubPosition)
OWLAxiomIndexaxioms 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)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 <T extends OWLAxiom> java.util.stream.Stream<T> axioms(OWLAxiomSearchFilter filter, Object key, Imports imports)
OWLAxiomIndexaxioms 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.imports - if INCLUDED, include imports closure.public <T extends OWLAxiom> java.util.stream.Stream<T> axioms(OWLAxiomSearchFilter filter, Object key)
OWLAxiomIndexaxioms 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.public boolean contains(OWLAxiomSearchFilter filter, Object key)
OWLAxiomIndexcontains in interface OWLAxiomIndexfilter - the filter to matchkey - the key. Its type is generic and it is used only by the filter.public boolean contains(OWLAxiomSearchFilter filter, Object key, Imports imports)
OWLAxiomIndexcontains in interface OWLAxiomIndexfilter - the filter to matchkey - the key. Its type is generic and it is used only by the filter.imports - if INCLUDED, include imports closure.public boolean containsDatatypeInSignature(IRI iri)
OWLSignaturecontainsDatatypeInSignature in interface OWLSignatureiri - The IRI of the OWLDatatype to check forpublic boolean containsClassInSignature(IRI iri)
OWLSignaturecontainsClassInSignature in interface OWLSignatureiri - The IRI of the class to check forpublic boolean containsObjectPropertyInSignature(IRI iri)
OWLSignaturecontainsObjectPropertyInSignature in interface OWLSignatureiri - The IRI of the OWLObjectProperty to check forpublic boolean containsDataPropertyInSignature(IRI iri)
OWLSignaturecontainsDataPropertyInSignature in interface OWLSignatureiri - The IRI of the OWLDataProperty to check forpublic boolean containsAnnotationPropertyInSignature(IRI iri)
OWLSignaturecontainsAnnotationPropertyInSignature in interface OWLSignatureiri - The IRI of the OWLAnnotationProperty to check forpublic boolean containsIndividualInSignature(IRI iri)
OWLSignaturecontainsIndividualInSignature in interface OWLSignatureiri - The IRI of the OWLNamedIndividual to check forpublic boolean containsReference(OWLEntity entity)
containsReference in interface OWLSignatureentity - entyty to checkCopyright © 2017 The University of Manchester. All Rights Reserved.