trustgraph/trustgraph-base/trustgraph
Cyber MacGeddon 4e5cd91eb1 1. Shared Provenance Module - URI generators, namespace constants,
triple builders, vocabulary bootstrap
2. Librarian - Emits document metadata to graph on processing
   initiation (vocabulary bootstrap + PROV-O triples)
3. PDF Extractor - Saves pages as child documents, emits parent-child
   provenance edges, forwards page IDs
4. Chunker - Saves chunks as child documents, emits provenance edges,
   forwards chunk ID + content
5. Knowledge Extractors (both definitions and relationships):
   - Link entities to chunks via SUBJECT_OF (not top-level document)
   - Removed duplicate metadata emission (now handled by librarian)
   - Get chunk_doc_id and chunk_uri from incoming Chunk message
6. Embedding Provenance:
   - EntityContext schema has chunk_id field
   - EntityEmbeddings schema has chunk_id field
   - Definitions extractor sets chunk_id when creating EntityContext
   - Graph embeddings processor passes chunk_id through to
     EntityEmbeddings

Provenance Flow:
Document → Page (PDF) → Chunk → Extracted Facts/Embeddings
    ↓           ↓          ↓              ↓
  librarian  librarian  librarian    (chunk_id reference)
  + graph    + graph    + graph

Each artifact is stored in librarian with parent-child linking, and PROV-O
edges are emitted to the knowledge graph for full traceability from any
extracted fact back to its source document.
2026-03-05 17:33:57 +00:00
..
api Incremental / large document loading (#659) 2026-03-04 16:57:58 +00:00
base 1. Shared Provenance Module - URI generators, namespace constants, 2026-03-05 17:33:57 +00:00
clients Row embeddings APIs exposed (#646) 2026-02-23 21:52:56 +00:00
knowledge Fix/core save api (#172) 2024-11-26 16:46:38 +00:00
messaging Incremental / large document loading (#659) 2026-03-04 16:57:58 +00:00
objects Feature/pkgsplit (#83) 2024-09-30 19:36:09 +01:00
provenance 1. Shared Provenance Module - URI generators, namespace constants, 2026-03-05 17:33:57 +00:00
schema 1. Shared Provenance Module - URI generators, namespace constants, 2026-03-05 17:33:57 +00:00
exceptions.py Librarian (#304) 2025-02-11 16:01:03 +00:00
log_level.py Feature/pkgsplit (#83) 2024-09-30 19:36:09 +01:00
rdf.py OntoRAG: Ontology-Based Knowledge Extraction and Query Technical Specification (#523) 2025-11-12 20:38:08 +00:00