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, toString
getAnnotationAssertionAxioms, 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, trimToSize
compareTo, getNestedClassExpressions, isBottomEntity, isTopEntity
setLock
accept, 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, setOWLOntologyManager
accept, accept, getNestedClassExpressions, isBottomEntity, isIndividual, isIRI, isTopEntity, toString
compareTo
getAnonymousIndividuals
isAnonymous, isNamed
containsAxiom, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxioms
containsAxiom, containsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxioms
containsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getReferencingAxioms
getLogicalAxioms
getAxioms
containsAxiom
containsAnnotationPropertyInSignature, 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, getReferencedAnonymousIndividuals
getAnnotationPropertiesInSignature
containsAnnotationPropertyInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsReference, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getReferencedAnonymousIndividuals
getEntitiesInSignature
getClassesInSignature
getObjectPropertiesInSignature
getDataPropertiesInSignature
getDatatypesInSignature
getIndividualsInSignature
containsEntityInSignature
contains, 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)
HasApplyChange
OWLOntologyManager
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 HasApplyChange
change
- The change to be applied@Nonnull public ChangeApplied applyChanges(@Nonnull List<? extends OWLOntologyChange> changes)
HasApplyChanges
OWLOntologyManager
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 HasApplyChanges
changes
- The changes to be applied.public ChangeDetails applyChangesAndGetDetails(List<? extends OWLOntologyChange> changes)
HasApplyChanges
applyChangesAndGetDetails
in interface HasApplyChanges
changes
- The changes to be applied.public ChangeApplied addAxiom(OWLAxiom axiom)
HasDirectAddAxiom
addAxiom
in interface HasDirectAddAxiom
axiom
- The axiom to be addedpublic ChangeApplied addAxioms(Set<? extends OWLAxiom> axioms)
HasDirectAddAxioms
addAxioms
in interface HasDirectAddAxioms
axioms
- The axioms to be added. Not null
.Copyright © 2020 The University of Manchester. All rights reserved.