Record Class OntologySnapshot
java.lang.Object
java.lang.Record
cz.cvut.kbss.ontodriver.owlapi.connector.OntologySnapshot
public record OntologySnapshot(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLDataFactory dataFactory, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOntologySnapshot
(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLDataFactory dataFactory, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) Creates an instance of aOntologySnapshot
record class. -
Method Summary
Modifier and TypeMethodDescriptionapplyChanges
(List<TransactionalChange> changes) Applies the specified changes to this ontology snapshot.org.semanticweb.owlapi.model.OWLDataFactory
Returns the value of thedataFactory
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.semanticweb.owlapi.model.OWLOntology
ontology()
Returns the value of theontology
record component.org.semanticweb.owlapi.model.OWLOntologyManager
Returns the value of theontologyManager
record component.org.semanticweb.owlapi.reasoner.OWLReasoner
reasoner()
Returns the value of thereasoner
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OntologySnapshot
public OntologySnapshot(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLDataFactory dataFactory, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) Creates an instance of aOntologySnapshot
record class.- Parameters:
ontology
- the value for theontology
record componentontologyManager
- the value for theontologyManager
record componentdataFactory
- the value for thedataFactory
record componentreasoner
- the value for thereasoner
record component
-
-
Method Details
-
applyChanges
Applies the specified changes to this ontology snapshot.- Parameters:
changes
- The changes to apply- Returns:
- The applied changes
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
ontology
public org.semanticweb.owlapi.model.OWLOntology ontology()Returns the value of theontology
record component.- Returns:
- the value of the
ontology
record component
-
ontologyManager
public org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager()Returns the value of theontologyManager
record component.- Returns:
- the value of the
ontologyManager
record component
-
dataFactory
public org.semanticweb.owlapi.model.OWLDataFactory dataFactory()Returns the value of thedataFactory
record component.- Returns:
- the value of the
dataFactory
record component
-
reasoner
public org.semanticweb.owlapi.reasoner.OWLReasoner reasoner()Returns the value of thereasoner
record component.- Returns:
- the value of the
reasoner
record component
-