Interface TransactionalChange
- All Known Subinterfaces:
MutableAxiomChange
- All Known Implementing Classes:
MutableAddAxiom
,MutableRemoveAxiom
,SubjectAnnotationPropertyRemove
,SubjectClassAssertionRemove
,SubjectDataPropertyRemove
,SubjectObjectPropertyRemove
,SubjectPropertyRemove
public interface TransactionalChange
Represents a change in data made during a transaction.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
overrides
(TransactionalChange existing) Whether this change overrides the specified existing change.List<org.semanticweb.owlapi.model.OWLOntologyChange>
toOwlChanges
(org.semanticweb.owlapi.model.OWLOntology targetOntology) Translates this transactional change to corresponding OWLAPI change axioms.
-
Method Details
-
toOwlChanges
List<org.semanticweb.owlapi.model.OWLOntologyChange> toOwlChanges(org.semanticweb.owlapi.model.OWLOntology targetOntology) Translates this transactional change to corresponding OWLAPI change axioms.- Parameters:
targetOntology
- Ontology to which the changes are applied- Returns:
- A list of OWL change axioms corresponding to this change
-
overrides
Whether this change overrides the specified existing change.The most typical case is a subject-property remove change overriding an existing add axiom asserting the specified property value.
Note that a remove change need not be overridden by an add change, because if applied in a sequence, the addition occurs after removal.
- Parameters:
existing
- Possibly overridden existing transactional change- Returns:
true
if this change overrides the specified one,false
otherwise
-