forked from cleveragents/cleveragents-core
3e5c0059da
Implement Neo4j-based graph backend for ACMS with SPARQL query support, UKO ontology triple storage, and graceful degradation. - Neo4jGraphBackend: read-side GraphBackend protocol implementation with SPARQL-to-Cypher translation, get_triples, and traverse - Neo4jGraphIndexBackend: write-side GraphIndexBackend protocol implementation with add_triple, query, and remove_triples - Graceful degradation: falls back to InMemoryGraphBackend/ InMemoryGraphIndexBackend when neo4j package is missing or server is unreachable - DI container updated to use build_graph_backend/ build_graph_index_backend factory functions with conditional activation via index.graph.backend config key - Configuration sourced from index.graph.neo4j-url and index.graph.neo4j-auth config keys - BDD tests: 35 scenarios covering triple storage, SPARQL queries, graceful degradation, validation, and DI container registration - All mocks in features/mocks/neo4j_mock_driver.py ISSUES CLOSED: #872