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

    Constructors
    Constructor
    Description
    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 a OntologySnapshot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies the specified changes to this ontology snapshot.
    org.semanticweb.owlapi.model.OWLDataFactory
    Returns the value of the dataFactory record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.semanticweb.owlapi.model.OWLOntology
    Returns the value of the ontology record component.
    org.semanticweb.owlapi.model.OWLOntologyManager
    Returns the value of the ontologyManager record component.
    org.semanticweb.owlapi.reasoner.OWLReasoner
    Returns the value of the reasoner record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a OntologySnapshot record class.
      Parameters:
      ontology - the value for the ontology record component
      ontologyManager - the value for the ontologyManager record component
      dataFactory - the value for the dataFactory record component
      reasoner - the value for the reasoner record component
  • Method Details

    • applyChanges

      public List<TransactionalChange> applyChanges(List<TransactionalChange> changes)
      Applies the specified changes to this ontology snapshot.
      Parameters:
      changes - The changes to apply
      Returns:
      The applied changes
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ontology

      public org.semanticweb.owlapi.model.OWLOntology ontology()
      Returns the value of the ontology record component.
      Returns:
      the value of the ontology record component
    • ontologyManager

      public org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager()
      Returns the value of the ontologyManager record component.
      Returns:
      the value of the ontologyManager record component
    • dataFactory

      public org.semanticweb.owlapi.model.OWLDataFactory dataFactory()
      Returns the value of the dataFactory record component.
      Returns:
      the value of the dataFactory record component
    • reasoner

      public org.semanticweb.owlapi.reasoner.OWLReasoner reasoner()
      Returns the value of the reasoner record component.
      Returns:
      the value of the reasoner record component