public abstract class OWLOntologyChange extends Object implements HasSignature, Serializable
Constructor and Description |
---|
OWLOntologyChange(OWLOntology ont) |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(OWLOntologyChangeVisitor visitor)
Accepts a visitor.
|
abstract <O> O |
accept(OWLOntologyChangeVisitorEx<O> visitor)
Accepts a visitor.
|
Optional<OWLAxiom> |
getAddedAxiom() |
Optional<OWLAxiom> |
getAddedOrRemovedAxiom() |
OWLAxiom |
getAxiom()
If the change is an axiom change (i.e.
|
abstract OWLOntologyChangeData |
getChangeData()
Gets the data (independent of the ontology) associated with this specific change.
|
OWLOntologyChangeRecord |
getChangeRecord()
Gets a
OWLOntologyChangeRecord that is derived from this OWLOntologyChange 's
OWLOntologyID and it's OWLOntologyChangeData . |
OWLOntology |
getOntology()
Gets the ontology that the change is/was applied to.
|
Optional<OWLAxiom> |
getRemovedAxiom() |
boolean |
isAddAxiom()
Determines if the change will add an axiom to an ontology.
|
boolean |
isAxiomChange()
Determines if the change will cause the addition or removal of an axiom from an ontology.
|
boolean |
isAxiomChange(AxiomType<?> type) |
boolean |
isImportChange()
Determines if this change is an import change and hence causes a change to the imports
closure of an ontology.
|
boolean |
isRemoveAxiom()
Determines if the change will remove an axiom from an ontology.
|
abstract OWLOntologyChange |
reverseChange() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSignature, signature, unsortedSignature
public OWLOntologyChange(OWLOntology ont)
ont
- the ontology to which the change is to be appliedpublic Optional<OWLAxiom> getAddedOrRemovedAxiom()
getAxiom()
, but it never throws an exception or returns null.public Optional<OWLAxiom> getAddedAxiom()
public Optional<OWLAxiom> getRemovedAxiom()
public boolean isAxiomChange(AxiomType<?> type)
type
- axiom type to checkpublic boolean isAxiomChange()
true
if the change is an OWLAddAxiomChange
or OWLRemoveAxiomChange
otherwise false
.public boolean isAddAxiom()
true
if the change is an AddAxiom change and it will add an axiom to an
ontology, false
otherwise.public boolean isRemoveAxiom()
true
if the change is a RemoveAxiom change and it will remove an axiom from
an ontology, false
otherwise.public OWLAxiom getAxiom()
IllegalStateException
- if the change has no axiom; UnsupportedOperationException If
the change is not an axiom change (check with the isAxiomChange
method
first).public boolean isImportChange()
true
if this change is an import change, otherwise false
.public OWLOntology getOntology()
public abstract OWLOntologyChangeData getChangeData()
OWLOntologyChangeData
associated with this OWLOntologyChange
.public OWLOntologyChangeRecord getChangeRecord()
OWLOntologyChangeRecord
that is derived from this OWLOntologyChange
's
OWLOntologyID
and it's OWLOntologyChangeData
.OWLOntologyChangeRecord
containing an OWLOntologyID
equal to the
OWLOntologyID
of this OWLOntologyChange
's OWLOntology
. Not
null
.public abstract void accept(OWLOntologyChangeVisitor visitor)
visitor
- The visitorpublic abstract <O> O accept(OWLOntologyChangeVisitorEx<O> visitor)
O
- visitor return typevisitor
- The visitorpublic abstract OWLOntologyChange reverseChange()
Copyright © 2020 The University of Manchester. All rights reserved.