mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
- Add semantica/kg/knowledge_graph.py with KnowledgeGraph dataclass (entities, relationships, metadata) plus __len__ and __bool__ helpers - Export KnowledgeGraph from semantica/kg/__init__.py - Add KGVisualizer._convert_knowledge_graph() for explicit, non-mutating conversion from KnowledgeGraph to internal dict format - Route isinstance(graph, KnowledgeGraph) through _convert_knowledge_graph inside _normalize_graph so all five visualize_* entry points accept KnowledgeGraph directly without any manual conversion - Add TestFormalKnowledgeGraphType (15 tests) Closes #471