public class OWLOntologyImpl extends OWLImmutableOntologyImpl implements OWLMutableOntology, Serializable
Constructor and Description |
---|
OWLOntologyImpl(OWLOntologyManager manager,
OWLOntologyID ontologyID) |
Modifier and Type | Method and Description |
---|---|
ChangeDetails |
applyChangesAndGetDetails(List<? extends OWLOntologyChange> changes)
Applies a list ontology changes to a collection of ontologies.
|
ChangeApplied |
applyDirectChange(OWLOntologyChange change)
A convenience method that applies just one change to this ontology.
|
aboxAxioms, annotationPropertiesInSignature, annotations, annotationsAsList, anonymousIndividuals, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axiomsIgnoreAnnotations, axiomsIgnoreAnnotations, classAssertionAxioms, classesInSignature, contains, contains, containsAnnotationPropertyInSignature, containsAnnotationPropertyInSignature, containsAxiom, containsAxiom, containsAxiomIgnoreAnnotations, containsClassInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsDatatypeInSignature, containsEntitiesOfTypeInSignature, containsEntityInSignature, containsIndividualInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsObjectPropertyInSignature, containsReference, containsReference, dataPropertiesInSignature, datatypesInSignature, directImports, directImportsDocuments, entitiesInSignature, equalAxioms, generalClassAxioms, getAxiomCount, getAxiomCount, getAxiomCount, getAxiomCount, getLogicalAxiomCount, getLogicalAxiomCount, getOntologyID, getOWLOntologyManager, getPunnedIRIs, imports, importsClosure, importsDeclarations, individualsInSignature, isAnonymous, isDeclared, isEmpty, logicalAxioms, objectPropertiesInSignature, rboxAxioms, referencedAnonymousIndividuals, referencingAxioms, setOWLOntologyManager, signature, tboxAxioms, toString, unsortedSignature
annotationPropertyDomainAxioms, annotationPropertyRangeAxioms, datatypeDefinitions, subAnnotationPropertyOfAxioms, trimToSize
compareTo, equals, hashCode, nestedClassExpressions
setLock
aboxAxioms, accept, accept, accept, accept, addAxiom, addAxioms, addAxioms, addAxioms, applyChange, components, generalClassAxioms, getABoxAxioms, getFormat, getGeneralClassAxioms, getImports, getImportsDeclarations, getNonnullFormat, getOWLOntologyManager, getRBoxAxioms, getSignature, getTBoxAxioms, hashIndex, imports, importsDeclarations, initHashCode, isAxiom, isDeclared, isDeclared, isEmpty, isIndividual, isOntology, rboxAxioms, removeAxiom, removeAxioms, removeAxioms, removeAxioms, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, setOWLOntologyManager, signature, tboxAxioms, typeIndex
getNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isTopEntity, nestedClassExpressions
compareTo
getSignature, signature, unsortedSignature
anonymousIndividuals, getAnonymousIndividuals
componentsAnnotationsFirst, componentsWithoutAnnotations
isAnonymous, isNamed
annotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotations
directImports, directImportsDocuments, getDirectImports, getDirectImportsDocuments
getOntologyID
containsAxiom, containsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxioms
axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axioms, axiomsIgnoreAnnotations, axiomsIgnoreAnnotations, containsAxiom, containsAxiomIgnoreAnnotations, getAxiomCount, getAxiomCount, getAxiomCount, getAxiomCount, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxioms, getAxiomsIgnoreAnnotations, getAxiomsIgnoreAnnotations, getLogicalAxiomCount, getLogicalAxiomCount, getLogicalAxioms, getReferencingAxioms, getReferencingAxioms, logicalAxioms, referencingAxioms, referencingAxioms
getLogicalAxioms, logicalAxioms
axioms, equalAxioms, getAxioms
containsAxiom
containsAnnotationPropertyInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsReference, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getReferencedAnonymousIndividuals
annotationPropertiesInSignature, classesInSignature, containsAnnotationPropertyInSignature, containsAnnotationPropertyInSignature, containsClassInSignature, containsClassInSignature, containsDataPropertyInSignature, containsDataPropertyInSignature, containsDatatypeInSignature, containsDatatypeInSignature, containsEntitiesOfTypeInSignature, containsEntitiesOfTypeInSignature, containsEntityInSignature, containsEntityInSignature, containsEntityInSignature, containsIndividualInSignature, containsIndividualInSignature, containsObjectPropertyInSignature, containsObjectPropertyInSignature, containsReference, containsReference, dataPropertiesInSignature, datatypesInSignature, entitiesInSignature, getAnnotationPropertiesInSignature, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getEntitiesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getPunnedIRIs, getReferencedAnonymousIndividuals, getReferencedAnonymousIndividuals, individualsInSignature, objectPropertiesInSignature, referencedAnonymousIndividuals, referencedAnonymousIndividuals
entitiesInSignature, getEntitiesInSignature
classesInSignature, getClassesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
datatypesInSignature, getDatatypesInSignature
getIndividualsInSignature, individualsInSignature
containsEntityInSignature
annotationAssertionAxioms, annotationAssertionAxioms, annotationPropertyDomainAxioms, annotationPropertyRangeAxioms, asymmetricObjectPropertyAxioms, axioms, axioms, axioms, axioms, axioms, axioms, classAssertionAxioms, classAssertionAxioms, contains, contains, 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, transitiveObjectPropertyAxioms
applyChanges, applyChanges, applyChangesAndGetDetails
add
add, add
remove
remove, remove, remove
addAnonymousIndividualsToSet, addSignatureEntitiesToSet
@Inject public OWLOntologyImpl(OWLOntologyManager manager, OWLOntologyID ontologyID)
manager
- ontology managerontologyID
- ontology idpublic ChangeApplied applyDirectChange(OWLOntologyChange change)
HasApplyDirectChange
applyDirectChange
in interface HasApplyDirectChange
applyDirectChange
in interface OWLOntology
change
- The change to be appliedpublic ChangeDetails applyChangesAndGetDetails(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.applyChangesAndGetDetails
in interface HasApplyChanges
applyChangesAndGetDetails
in interface OWLOntology
changes
- The changes to be applied.Copyright © 2020 The University of Manchester. All rights reserved.