mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-09-02 04:00:40 +00:00
The Neo4j example in the persistent graph store section was passing a raw Neo4jStore straight into GraphBuilder. GraphBuilder calls add_nodes() and add_edges() on whatever it's given, and those only exist on the GraphStore facade, not on Neo4jStore itself. Anyone who copied the example got: AttributeError: 'Neo4jStore' object has no attribute 'add_nodes' Swapped the import and construction to GraphStore(backend="neo4j", uri=..., user=..., password=...), which wraps Neo4jStore internally and actually has the methods GraphBuilder needs. Added a test in tests/kg/test_graph_builder_with_graph_store.py that builds a small graph through GraphBuilder with a mocked GraphStore and checks add_nodes/add_edges get called. Also kept a test for GraphBuilder without a graph_store at all, so that path doesn't regress either. Closes #1135