Package ai.chatur.cortex
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 provenancependingBranches- the number of branches with staged assertions awaiting reviewassertionTriples- the total number of triples in the approved assertions, excluding provenance triples, which are kept in a separate graphinferenceTriples- the total number of triples visible to queries, including statements derived by inferenceontologyClasses- the number of classes defined in the ontologyshapes- the number of root (targeted) SHACL shapes ingested assertions are validated against — shapes reachable only as a nestedsh:propertyof another shape are not counted separately, since they have no target of their ownrules- 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 Summary
ConstructorsConstructorDescriptionCortexStats(long triplesAddedToday, long pendingBranches, long assertionTriples, long inferenceTriples, long ontologyClasses, long shapes, long rules) Creates an instance of aCortexStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theassertionTriplesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinferenceTriplesrecord component.longReturns the value of theontologyClassesrecord component.longReturns the value of thependingBranchesrecord component.longrules()Returns the value of therulesrecord component.longshapes()Returns the value of theshapesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetriplesAddedTodayrecord component.
-
Constructor Details
-
CortexStats
public CortexStats(long triplesAddedToday, long pendingBranches, long assertionTriples, long inferenceTriples, long ontologyClasses, long shapes, long rules) Creates an instance of aCortexStatsrecord class.- Parameters:
triplesAddedToday- the value for thetriplesAddedTodayrecord componentpendingBranches- the value for thependingBranchesrecord componentassertionTriples- the value for theassertionTriplesrecord componentinferenceTriples- the value for theinferenceTriplesrecord componentontologyClasses- the value for theontologyClassesrecord componentshapes- the value for theshapesrecord componentrules- the value for therulesrecord component
-
-
Method Details
-
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 with '=='. -
triplesAddedToday
public long triplesAddedToday()Returns the value of thetriplesAddedTodayrecord component.- Returns:
- the value of the
triplesAddedTodayrecord component
-
pendingBranches
public long pendingBranches()Returns the value of thependingBranchesrecord component.- Returns:
- the value of the
pendingBranchesrecord component
-
assertionTriples
public long assertionTriples()Returns the value of theassertionTriplesrecord component.- Returns:
- the value of the
assertionTriplesrecord component
-
inferenceTriples
public long inferenceTriples()Returns the value of theinferenceTriplesrecord component.- Returns:
- the value of the
inferenceTriplesrecord component
-
ontologyClasses
public long ontologyClasses()Returns the value of theontologyClassesrecord component.- Returns:
- the value of the
ontologyClassesrecord component
-
shapes
public long shapes()Returns the value of theshapesrecord component.- Returns:
- the value of the
shapesrecord component
-
rules
public long rules()Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-