Skip to main content

Module knowledge

Module knowledge 

Source
Expand description

Knowledge graph domain types — entities (nodes) + temporal triples (edges). The structured-facts layer: “Who depends on Y?” “What did we decide about X?”

Import-compatible with the pi-mempalace entities + triples schema (see docs/HANDOFF.md §3). In the SurrealDB backend, entities are record nodes and triples are graph edges (RELATE ... ->triples->).

Structs§

Entity
An entity — a node in the knowledge graph.
EntityId
Stable opaque identifier for an entity (node).
EntityRecord
An entity plus its connected triples (query result).
KgStats
Counts for the knowledge-graph stats endpoint.
Triple
A temporal triple: subject -predicate-> object with validity. The valid_to field expresses invalidation (None = still current).

Traits§

KnowledgeGraph
The knowledge-graph contract every backend implements alongside crate::Store. All methods are scoped to a NamespaceId.