Skip to main content

triples_schema

Function triples_schema 

Source
pub fn triples_schema() -> Schema
Expand description

Schema for the Triples table — the core knowledge representation.

Columns (16 total, v1.1.0):

  • triple_id: unique identifier (UUID string)
  • subject, predicate, object: the RDF-like triple
  • graph: named graph / context URI
  • namespace: partition key (user-defined string)
  • layer: optional sub-partition (UInt8, 0 if unused)
  • confidence: float64 confidence score
  • source_document: provenance document path
  • source_chunk_id: FK to ChunkTable for fine-grained provenance
  • extracted_by: agent/process that created this triple
  • created_at: timestamp
  • caused_by: triple_id of the causal predecessor
  • derived_from: triple_id of the derivation source
  • consolidated_at: timestamp when consolidated
  • deleted: logical delete flag