Expand description
Temporal overlay graph helpers — PROV-O + Dublin Core bi-temporal quins.
All temporal quins are written to T_CONTEXT. Predicates are FNV-1a hashes
of the standard W3C URIs, computed at compile time via q_hash().
Named graph context:
T_CONTEXT = q_hash("urn:qualia:context:temporal")
Bi-temporal model:
- Assertion time (
t_assert) — when the system recorded the fact. Stored asprov:generatedAtTime. - Valid time (
t_valid_start/t_valid_end) — when the fact was true in reality. Stored asprov:startedAtTime/prov:endedAtTime.
All timestamps are milliseconds since Unix epoch (u64).
Constants§
- AGENT_
CONTEXT - C_
COG_ AGENT - C_
COG_ BELIEF - C_
COG_ GOAL - C_
COG_ PLAN - P_
COG_ HAS_ GOAL - P_
COG_ HAS_ PLAN - P_
COG_ HOLDS_ BELIEF - P_
DC_ CREATOR - P_
DC_ DATE - P_
DC_ VALID - P_
ENDED_ AT - P_
GENERATED_ AT - P_
HAD_ PRIMARY_ SOURCE - P_
INVALIDATED_ AT - P_
Q42_ INFERENCE_ AUTHORIZED_ BY - P_
Q42_ PROVENANCE_ CITATIONS - P_
RDF_ TYPE - P_
STARTED_ AT - P_
WAS_ ATTRIBUTED_ TO - P_
WAS_ GENERATED_ BY - P_
WAS_ INVALIDATED_ BY - T_
CONTEXT
Functions§
- assert_
temporal - Write PROV-O bi-temporal quins for
entitytoT_CONTEXT. - invalidate_
entity - Record that an entity was invalidated (tombstoned) at
t_invalidatebyagent_did. - register_
agent - Write
cog:Agenttype quin for a DID hash toAGENT_CONTEXT. - write_
belief - Write
cog:Beliefwith PROV-O provenance for(agent_did, belief_hash)pair. - write_
goal - Write
cog:Goalfor(agent_did, goal_hash)pair toAGENT_CONTEXT.
Type Aliases§
- Temp
Quins - Variable-length return type for
assert_temporal.