Record Class CortexStats

java.lang.Object
java.lang.Record
ai.chatur.cortex.CortexStats
Record Components:
triplesAddedToday - the number of triples approved into the knowledge graph today, according to their recorded provenance
pendingBranches - the number of branches with staged assertions awaiting review
assertionTriples - the total number of triples in the approved assertions, excluding provenance triples, which are kept in a separate graph
inferenceTriples - the total number of triples visible to queries, including statements derived by inference
ontologyClasses - the number of classes defined in the ontology
shapes - the number of root (targeted) SHACL shapes ingested assertions are validated against — shapes reachable only as a nested sh:property of another shape are not counted separately, since they have no target of their own
rules - the number of rules used for inference

public record CortexStats(long triplesAddedToday, long pendingBranches, long assertionTriples, long inferenceTriples, long ontologyClasses, long shapes, long rules) extends Record
A snapshot of the size and activity of the knowledge graph, as returned by CortexStatistics.getStats().
  • Constructor Details

    • CortexStats

      public CortexStats(long triplesAddedToday, long pendingBranches, long assertionTriples, long inferenceTriples, long ontologyClasses, long shapes, long rules)
      Creates an instance of a CortexStats record class.
      Parameters:
      triplesAddedToday - the value for the triplesAddedToday record component
      pendingBranches - the value for the pendingBranches record component
      assertionTriples - the value for the assertionTriples record component
      inferenceTriples - the value for the inferenceTriples record component
      ontologyClasses - the value for the ontologyClasses record component
      shapes - the value for the shapes record component
      rules - the value for the rules record component
  • Method Details

    • 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 '=='.
      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.
    • triplesAddedToday

      public long triplesAddedToday()
      Returns the value of the triplesAddedToday record component.
      Returns:
      the value of the triplesAddedToday record component
    • pendingBranches

      public long pendingBranches()
      Returns the value of the pendingBranches record component.
      Returns:
      the value of the pendingBranches record component
    • assertionTriples

      public long assertionTriples()
      Returns the value of the assertionTriples record component.
      Returns:
      the value of the assertionTriples record component
    • inferenceTriples

      public long inferenceTriples()
      Returns the value of the inferenceTriples record component.
      Returns:
      the value of the inferenceTriples record component
    • ontologyClasses

      public long ontologyClasses()
      Returns the value of the ontologyClasses record component.
      Returns:
      the value of the ontologyClasses record component
    • shapes

      public long shapes()
      Returns the value of the shapes record component.
      Returns:
      the value of the shapes record component
    • rules

      public long rules()
      Returns the value of the rules record component.
      Returns:
      the value of the rules record component