public class OWLOntologyImpl extends OWLImmutableOntologyImpl implements OWLMutableOntology, Serializable
| Constructor and Description |
|---|
OWLOntologyImpl(OWLOntologyManager manager,
OWLOntologyID ontologyID) |
| Modifier and Type | Method and Description |
|---|---|
ChangeApplied |
addAxiom(OWLAxiom axiom)
A convenience method that adds a single axiom to an ontology.
|
ChangeApplied |
addAxioms(Set<? extends OWLAxiom> axioms)
A convenience method that adds a set of axioms to an ontology.
|
ChangeApplied |
applyChange(OWLOntologyChange change)
A convenience method that applies just one change to an ontology.
|
ChangeApplied |
applyChanges(List<? extends OWLOntologyChange> changes)
Applies a list ontology changes to a collection of ontologies.
|
ChangeDetails |
applyChangesAndGetDetails(List<? extends OWLOntologyChange> changes)
Applies a list ontology changes to a collection of ontologies.
|
accept, accept, accept, accept, contains, containsAnnotationPropertyInSignature, containsAnnotationPropertyInSignature, containsAnnotationPropertyInSignature, containsAxiom, containsAxiom, containsAxiom, containsAxiomIgnoreAnnotations, containsAxiomIgnoreAnnotations, containsClassInSignature, containsClassInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDataPropertyInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsDatatypeInSignature, containsDatatypeInSignature, containsEntitiesOfTypeInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsIndividualInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsObjectPropertyInSignature, containsObjectPropertyInSignature, containsReference, containsReference, containsReference, equals, filterAxioms, getABoxAxioms, getAnnotationPropertiesInSignature, getAnnotationPropertiesInSignature, getAnnotationPropertiesInSignature, getAnnotations, getAnonymousIndividuals, getAxiomCount, getAxiomCount, getAxiomCount, getAxiomCount, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getAxiomsIgnoreAnnotations, getAxiomsIgnoreAnnotations, getClassAssertionAxioms, getClassesInSignature, getClassesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDataPropertiesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getDatatypesInSignature, getDatatypesInSignature, getDirectImports, getDirectImportsDocuments, getEntitiesInSignature, getEntitiesInSignature, getEntitiesInSignature, getGeneralClassAxioms, getImports, getImportsClosure, getImportsDeclarations, getIndividualsInSignature, getIndividualsInSignature, getIndividualsInSignature, getLogicalAxiomCount, getLogicalAxiomCount, getLogicalAxiomCount, getLogicalAxioms, getLogicalAxioms, getLogicalAxioms, getObjectPropertiesInSignature, getObjectPropertiesInSignature, getObjectPropertiesInSignature, getOntologyID, getOWLOntologyManager, getPunnedIRIs, getRBoxAxioms, getReferencedAnonymousIndividuals, getReferencedAnonymousIndividuals, getReferencingAxioms, getReferencingAxioms, getReferencingAxioms, getSignature, getSignature, getTBoxAxioms, hashCode, isAnonymous, isDeclared, isDeclared, isEmpty, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, setOWLOntologyManager, toStringgetAnnotationAssertionAxioms, getAnnotationPropertyDomainAxioms, getAnnotationPropertyRangeAxioms, getAsymmetricObjectPropertyAxioms, getClassAssertionAxioms, getDataPropertyAssertionAxioms, getDataPropertyDomainAxioms, getDataPropertyRangeAxioms, getDataSubPropertyAxiomsForSubProperty, getDataSubPropertyAxiomsForSuperProperty, getDatatypeDefinitions, getDeclarationAxioms, getDifferentIndividualAxioms, getDisjointClassesAxioms, getDisjointDataPropertiesAxioms, getDisjointObjectPropertiesAxioms, getDisjointUnionAxioms, getEquivalentClassesAxioms, getEquivalentDataPropertiesAxioms, getEquivalentObjectPropertiesAxioms, getFunctionalDataPropertyAxioms, getFunctionalObjectPropertyAxioms, getHasKeyAxioms, getInverseFunctionalObjectPropertyAxioms, getInverseObjectPropertyAxioms, getIrreflexiveObjectPropertyAxioms, getNegativeDataPropertyAssertionAxioms, getNegativeObjectPropertyAssertionAxioms, getObjectPropertyAssertionAxioms, getObjectPropertyDomainAxioms, getObjectPropertyRangeAxioms, getObjectSubPropertyAxiomsForSubProperty, getObjectSubPropertyAxiomsForSuperProperty, getReflexiveObjectPropertyAxioms, getSameIndividualAxioms, getSubAnnotationPropertyOfAxioms, getSubClassAxiomsForSubClass, getSubClassAxiomsForSuperClass, getSymmetricObjectPropertyAxioms, getTransitiveObjectPropertyAxioms, trimToSizecompareTo, getNestedClassExpressions, isBottomEntity, isTopEntitysetLockaccept, accept, containsEntitiesOfTypeInSignature, getABoxAxioms, getAnnotations, getDirectImports, getDirectImportsDocuments, getGeneralClassAxioms, getImports, getImportsClosure, getImportsDeclarations, getOntologyID, getOWLOntologyManager, getRBoxAxioms, getSignature, getSignature, getTBoxAxioms, isDeclared, isDeclared, isEmpty, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, setOWLOntologyManageraccept, accept, getNestedClassExpressions, isBottomEntity, isIndividual, isIRI, isTopEntity, toStringcompareTogetAnonymousIndividualsisAnonymous, isNamedcontainsAxiom, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxiomscontainsAxiom, containsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxiomscontainsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getReferencingAxiomsgetLogicalAxiomsgetAxiomscontainsAxiomcontainsAnnotationPropertyInSignature, containsAnnotationPropertyInSignature, containsClassInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsDatatypeInSignature, containsEntitiesOfTypeInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsObjectPropertyInSignature, containsReference, containsReference, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getPunnedIRIs, getReferencedAnonymousIndividualsgetAnnotationPropertiesInSignaturecontainsAnnotationPropertyInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsReference, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getReferencedAnonymousIndividualsgetEntitiesInSignaturegetClassesInSignaturegetObjectPropertiesInSignaturegetDataPropertiesInSignaturegetDatatypesInSignaturegetIndividualsInSignaturecontainsEntityInSignaturecontains, filterAxioms, getAnnotationAssertionAxioms, getAnnotationPropertyDomainAxioms, getAnnotationPropertyRangeAxioms, getAsymmetricObjectPropertyAxioms, 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@Inject public OWLOntologyImpl(@Nonnull OWLOntologyManager manager, @Nonnull OWLOntologyID ontologyID)
manager - ontology managerontologyID - ontology idpublic ChangeApplied applyChange(@Nonnull OWLOntologyChange change)
HasApplyChangeOWLOntologyManager implementation, the instance used should be the one
that the ontology returns through the getOWLOntologyManager() call. The reason is
that some changes, e.g., change of ontology id and change of imports directives, affect data
that only that manager instance knows about, such as the imports closure; changes of ontology
id through the wrong manager will make the ontology unreachable through its new id in the
manager associated with the ontology. Configuration for loading and saving parameters is also
held by the manager, if not explicitly specified for the ontology. While the change might be
successful, other bugs might be made apparent later.applyChange in interface HasApplyChangechange - The change to be applied@Nonnull public ChangeApplied applyChanges(@Nonnull List<? extends OWLOntologyChange> changes)
HasApplyChangesOWLOntologyManager implementation, the instance used should be the one
that the ontology returns through the getOWLOntologyManager() call. The reason is
that some changes, e.g., change of ontology id and change of imports directives, affect data
that only that manager instance knows about, such as the imports closure; changes of ontology
id through the wrong manager will make the ontology unreachable through its new id in the
manager associated with the ontology. Configuration for loading and saving parameters is also
held by the manager, if not explicitly specified for the ontology. While the change might be
successful, other bugs might be made apparent later.applyChanges in interface HasApplyChangeschanges - The changes to be applied.public ChangeDetails applyChangesAndGetDetails(List<? extends OWLOntologyChange> changes)
HasApplyChangesapplyChangesAndGetDetails in interface HasApplyChangeschanges - The changes to be applied.public ChangeApplied addAxiom(OWLAxiom axiom)
HasDirectAddAxiomaddAxiom in interface HasDirectAddAxiomaxiom - The axiom to be addedpublic ChangeApplied addAxioms(Set<? extends OWLAxiom> axioms)
HasDirectAddAxiomsaddAxioms in interface HasDirectAddAxiomsaxioms - The axioms to be added. Not null.Copyright © 2021 The University of Manchester. All rights reserved.