mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-16 19:05:14 +02:00
Fix threading of workspace paramater: - The SPARQL algebra evaluator was threading a workspace parameter through every function and passing it to TriplesClient.query(), which doesn't accept it. Workspace isolation is handled by pub/sub topic routing — the TriplesClient is already scoped to a workspace-specific flow, same as GraphRAG. Passing workspace explicitly was both incorrect and unnecessary. Update tests: - tests/unit/test_query/test_sparql_algebra.py (new) — Tests _query_pattern, _eval_bgp, and evaluate() with various algebra nodes. Key tests assert workspace is never in tc.query() kwargs, plus correctness tests for BGP, JOIN, UNION, SLICE, DISTINCT, and edge cases. - tests/unit/test_retrieval/test_graph_rag.py — Added test_triples_query_never_passes_workspace (checks query()) and test_follow_edges_never_passes_workspace (checks query_stream()). |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_doc_embeddings_milvus_query.py | ||
| test_doc_embeddings_pinecone_query.py | ||
| test_doc_embeddings_qdrant_query.py | ||
| test_graph_embeddings_milvus_query.py | ||
| test_graph_embeddings_pinecone_query.py | ||
| test_graph_embeddings_qdrant_query.py | ||
| test_memgraph_workspace_collection_query.py | ||
| test_neo4j_workspace_collection_query.py | ||
| test_rows_cassandra_query.py | ||
| test_sparql_algebra.py | ||
| test_sparql_expressions.py | ||
| test_sparql_parser.py | ||
| test_sparql_solutions.py | ||
| test_triples_cassandra_query.py | ||
| test_triples_falkordb_query.py | ||
| test_triples_memgraph_query.py | ||
| test_triples_neo4j_query.py | ||