trustgraph/tests/unit/test_knowledge_graph
cybermaggedon aa4f5c6c00
Remove redundant metadata (#685)
The metadata field (list of triples) in the pipeline Metadata class
was redundant. Document metadata triples already flow directly from
librarian to triple-store via emit_document_provenance() - they don't
need to pass through the extraction pipeline.

Additionally, chunker and PDF decoder were overwriting metadata to []
anyway, so any metadata passed through the pipeline was being
discarded.

Changes:
- Remove metadata field from Metadata dataclass
  (schema/core/metadata.py)
- Update all Metadata instantiations to remove metadata=[]
  parameter
- Remove metadata handling from translators (document_loading,
  knowledge)
- Remove metadata consumption from extractors (ontology, agent)
- Update gateway serializers and import handlers
- Update all unit, integration, and contract tests
2026-03-11 10:51:39 +00:00
..
__init__.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
conftest.py Remove redundant metadata (#685) 2026-03-11 10:51:39 +00:00
test_agent_extraction.py Remove redundant metadata (#685) 2026-03-11 10:51:39 +00:00
test_agent_extraction_edge_cases.py Remove redundant metadata (#685) 2026-03-11 10:51:39 +00:00
test_entity_extraction.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_graph_validation.py Changed schema for Value -> Term, majorly breaking change (#622) 2026-01-27 13:48:08 +00:00
test_object_extraction_logic.py Remove redundant metadata (#685) 2026-03-11 10:51:39 +00:00
test_object_validation.py Structured data 2 (#645) 2026-02-23 15:56:29 +00:00
test_relationship_extraction.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_triple_construction.py Remove redundant metadata (#685) 2026-03-11 10:51:39 +00:00