Package ai.chatur.cortex
Record Class ProvenancedStatement
java.lang.Object
java.lang.Record
ai.chatur.cortex.ProvenancedStatement
- Record Components:
predicate- the property of the statementobject- the value of the statementcreated- when the statement was approved into the knowledge graph, ornullfor statements without recorded provenance (such as inferred statements)
A statement about a resource together with its provenance, as returned by
CortexQuery.describe(String).-
Constructor Summary
ConstructorsConstructorDescriptionProvenancedStatement(Term predicate, Term object, String created) Creates an instance of aProvenancedStatementrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.object()Returns the value of theobjectrecord component.Returns the value of thepredicaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 withObjects::equals(Object,Object). -
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-