Package org.semanticweb.owlapi.model
Class SetOntologyID
java.lang.Object
org.semanticweb.owlapi.model.OWLOntologyChange
org.semanticweb.owlapi.model.SetOntologyID
- All Implemented Interfaces:
Serializable
,HasSignature
- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSetOntologyID
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(OWLOntologyChangeVisitor visitor) Accepts a visitor.<O> O
accept
(OWLOntologyChangeVisitorEx<O> visitor) Accepts a visitor.boolean
Gets the data (independent of the ontology) associated with this specific change.Gets the original ID of the ontology whose URI was changed.int
hashCode()
toString()
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getAddedAxiom, getAddedOrRemovedAxiom, getAxiom, getChangeRecord, getOntology, getRemovedAxiom, isAddAxiom, isAxiomChange, isAxiomChange, isImportChange, isRemoveAxiom
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
-
Constructor Details
-
SetOntologyID
Creates a set ontology id change, which will set the ontology id to the new one.- Parameters:
ont
- The ontology whose id is to be changedontologyID
- The ontology ID
-
SetOntologyID
Creates a set ontology id change using the ontologyIRI, which will set the ontology id to the new one.- Parameters:
ont
- The ontology whose id is to be changedontologyIRI
- The ontology iri
-
-
Method Details
-
getChangeData
Description copied from class:OWLOntologyChange
Gets the data (independent of the ontology) associated with this specific change.- Specified by:
getChangeData
in classOWLOntologyChange
- Returns:
- The
OWLOntologyChangeData
associated with thisOWLOntologyChange
.
-
getOriginalOntologyID
Gets the original ID of the ontology whose URI was changed.- Returns:
- The original ID
-
getNewOntologyID
- Returns:
- the new URI - i.e. the URI of the ontology after the change was applied.
-
accept
Description copied from class:OWLOntologyChange
Accepts a visitor.- Specified by:
accept
in classOWLOntologyChange
- Parameters:
visitor
- The visitor
-
accept
Description copied from class:OWLOntologyChange
Accepts a visitor.- Specified by:
accept
in classOWLOntologyChange
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- The visitor- Returns:
- visitor value
-
toString
-
hashCode
public int hashCode() -
equals
-
reverseChange
- Specified by:
reverseChange
in classOWLOntologyChange
- Returns:
- the reverse of this change; can be used to create undo changes.
-