Skip to content
LITHOEN

Evidence platform and governance

Document

ADR-0005: Knowledge graph as typed relational records; no graph database

Repository path
docs/decisions/ADR-0005-relational-graph-no-graph-db.md
Size · SHA-256
1007 B · a9ff987e6619a5d3129e1cbc7a0c2102c8773bb06eb940a91d7edc451d736ec3

Status: accepted (2026-09-06)

Context

Lithoen needs knowledge-graph semantics (typed, directed, evidence-backed edges) at a scale of, currently, tens of nodes.

Decision

Relations are JSON records validated against a curated taxonomy that documents directionality, domain/range (by entity type), symmetry and inverses. Inverses are never stored — only one side of a pair is authorable; CorpusIndex derives the other at read time, so paired edges cannot drift apart. Graph queries are in-memory adjacency over the loaded corpus. No Neo4j, no triple store.

Consequences

  • The taxonomy, not the storage engine, carries the semantics — which is what must survive a future storage migration anyway.
  • Multi-hop analytical queries are manual today. Fine at seed scale; a graph projection (or Postgres recursive queries per ADR-0001's escape hatch) can be added behind the same index interface when needed.