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.
|
String |
toString() |
getChangeRecord, getOntology, isRemoveAxiom
public SetOntologyID(OWLOntology ont, OWLOntologyID ontologyID)
ont
- The ontology whose id is to be changedontologyID
- The ontology IDpublic SetOntologyID(OWLOntology ont, 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
. Not null
.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
public OWLOntologyID getOriginalOntologyID()
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 visitorCopyright © 2017 The University of Manchester. All Rights Reserved.