public class SetOntologyID extends OWLOntologyChange
Constructor and Description |
---|
SetOntologyID(OWLOntology ont,
IRI ontologyIRI)
Creates a set ontology id change using the ontologyIRI, which will set the ontology id to the
new one.
|
SetOntologyID(OWLOntology ont,
OWLOntologyID ontologyID)
Creates a set ontology id change, which will set the ontology id to the new one.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLOntologyChangeVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLOntologyChangeVisitorEx<O> visitor)
Accepts a visitor
|
boolean |
equals(Object obj) |
OWLAxiom |
getAxiom()
If the change is an axiom change (i.e.
|
SetOntologyIDData |
getChangeData()
Gets the data (independent of the ontology) associated with this specific change.
|
OWLOntologyID |
getNewOntologyID() |
OWLOntologyID |
getOriginalOntologyID()
Gets the original ID of the ontology whose URI was changed.
|
Set<OWLEntity> |
getSignature()
Gets the signature of this ontology change.
|
int |
hashCode() |
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 |
isImportChange()
Determines if this change is an import change and hence causes a change to the imports
closure of an ontology.
|
OWLOntologyChange |
reverseChange() |
String |
toString() |
getAddedAxiom, getAddedOrRemovedAxiom, getChangeRecord, getOntology, getRemovedAxiom, isAxiomChange, isRemoveAxiom
public SetOntologyID(@Nonnull OWLOntology ont, @Nonnull OWLOntologyID ontologyID)
ont
- The ontology whose id is to be changedontologyID
- The ontology IDpublic SetOntologyID(@Nonnull OWLOntology ont, @Nonnull IRI ontologyIRI)
ont
- The ontology whose id is to be changedontologyIRI
- The ontology iripublic SetOntologyIDData getChangeData()
OWLOntologyChange
getChangeData
in class OWLOntologyChange
OWLOntologyChangeData
associated with this OWLOntologyChange
.public Set<OWLEntity> getSignature()
OWLOntologyChange
getSignature
in interface HasSignature
getSignature
in class OWLOntologyChange
public boolean isImportChange()
OWLOntologyChange
isImportChange
in class OWLOntologyChange
true
if this change is an import change, otherwise false
.public boolean isAxiomChange()
OWLOntologyChange
isAxiomChange
in class OWLOntologyChange
true
if the change is an OWLAddAxiomChange
or
OWLRemoveAxiomChange
otherwise false
.public boolean isAddAxiom()
OWLOntologyChange
isAddAxiom
in class OWLOntologyChange
true
if the change is an AddAxiom change and it will add an axiom to an
ontology, false
otherwise.public OWLAxiom getAxiom()
OWLOntologyChange
getAxiom
in class OWLOntologyChange
@Nonnull public OWLOntologyID getOriginalOntologyID()
@Nonnull public OWLOntologyID getNewOntologyID()
public void accept(OWLOntologyChangeVisitor visitor)
OWLOntologyChange
accept
in class OWLOntologyChange
visitor
- The visitorpublic <O> O accept(OWLOntologyChangeVisitorEx<O> visitor)
OWLOntologyChange
accept
in class OWLOntologyChange
O
- visitor return typevisitor
- The visitorpublic OWLOntologyChange reverseChange()
reverseChange
in class OWLOntologyChange
Copyright © 2020 The University of Manchester. All rights reserved.