trustgraph-flow 3.0.0rc15__tar.gz → 3.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/PKG-INFO +1 -1
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/direct/cassandra_kg.py +118 -509
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/query_formulation/service.py +6 -1
- trustgraph_flow-3.0.1/trustgraph/flow_version.py +1 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/expressions.py +41 -1
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/cassandra/service.py +27 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph_flow.egg-info/PKG-INFO +1 -1
- trustgraph_flow-3.0.0rc15/trustgraph/flow_version.py +0 -1
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/README.md +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/pyproject.toml +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/setup.cfg +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/erp_finance/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/erp_finance/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/joke/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/joke/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/redact/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/redact/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/web/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/action_service/web/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/mcp_tool/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/mcp_tool/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/mcp_tool/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/aggregator.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/meta_router.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/pattern_base.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/plan_pattern.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/react_pattern.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/orchestrator/supervisor_pattern.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/streaming_parser.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/react/types.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/agent/tool_filter.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/base.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/bootstrapper/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/bootstrapper/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/bootstrapper/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/initialisers/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/initialisers/default_flow_start.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/initialisers/pulsar_topology.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/initialisers/template_seed.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/bootstrap/initialisers/workspace_init.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/config/service/config.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/config/service/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/cores/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/cores/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/cores/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/direct/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/row_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/row_embeddings/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/embeddings/row_embeddings/embeddings.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/chunking.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/common.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/decoding.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/extraction.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/handlers.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/mcp_tool.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/query_formulation.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/query_spec_join.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/query_spec_summarise.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/retrieval.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/synthesis.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/system1.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/action_worker/transform.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/orchestrator/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/orchestrator/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/planner/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/planner/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/planner/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/policy/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/policy/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/policy/evaluator.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/policy/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/query_formulation/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/verification/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/verification/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/execution/verification/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/external/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/agent/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/agent/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/agent/extract.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/extract_metrics.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/entity_normalizer.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/extract.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/ontology_embedder.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/ontology_loader.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/ontology_selector.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/run.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/simplified_parser.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/text_processor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/triple_converter.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/ontology/vector_store.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/rows/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/rows/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/rows/processor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/flow/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/flow/service/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/flow/service/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/flow/service/flow.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/flow/service/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/audit.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/auth.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/capabilities.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/action.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/chunker.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/cloze.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/collection_management.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/concept_extraction.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/core_export.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/core_import.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/decision_scoring.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_decode.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_embeddings_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/document_stream.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/extraction.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/field_extraction.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/iam.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/image_to_text.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/knowledge_retrieval.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/manager.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/mcp_tool.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/nl_sparql.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/nlp_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/ontology.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/orchestrator.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/passthrough.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/planner.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/policy_engine.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/query_formulation.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/reranker.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/row_embeddings_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/rows_import.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/rows_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/sparql_nl_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/sparql_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/structured_diag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/structured_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/dispatch/verification.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/auth_endpoints.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/i18n.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/iam_endpoint.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/registry_endpoint.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/stream_endpoint.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/registry.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/running.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/noauth/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/noauth/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/noauth/handler.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/noauth/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/service/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/service/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/service/iam.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/iam/service/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/librarian/collection_manager.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/librarian/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/metering/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/metering/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/metering/counter.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/decision_scoring/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/image_to_text/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/image_to_text/openai/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/image_to_text/openai/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/image_to_text/openai/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/openai/variants.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/tgi/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/tgi/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/tgi/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/vllm/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/vllm/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/model/text_completion/vllm/llm.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/ontology/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/ontology/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/ontology/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/policy/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/policy/policy_filter.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/policy/triples/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/policy/triples/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/processing/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/processing/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/processing/processing.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/prompt/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/prompt/template/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/prompt/template/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/prompt/template/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graphql/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graphql/filters.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graphql/schema.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/graphql/types.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/row_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/row_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/row_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/row_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/rows/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/rows/cassandra/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/rows/cassandra/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/rows/cassandra/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/algebra.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/parser.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/sparql/solutions.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/reranker/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/reranker/flashrank/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/reranker/flashrank/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/reranker/flashrank/processor.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/concept_extraction/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/concept_extraction/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/concept_extraction/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/document_rag/rerank.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/knowledge_retrieval/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/knowledge_retrieval/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/knowledge_retrieval/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/knowledge_retrieval/traversal.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/nl_sparql/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/nl_sparql/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/nl_sparql/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/nlp_query/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/nlp_query/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/nlp_query/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/sparql_nl_query/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/sparql_nl_query/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/sparql_nl_query/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/structured_diag/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/structured_diag/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/structured_diag/type_detector.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/structured_query/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/structured_query/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/retrieval/structured_query/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/rev_gateway/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/rev_gateway/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/rev_gateway/dispatcher.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/rev_gateway/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/kw_index/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/kw_index/fts5/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/kw_index/fts5/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/kw_index/fts5/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/row_embeddings/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/row_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/row_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/row_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tables/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tables/cassandra_async.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tables/config.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tables/iam.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tables/library.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/template/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/template/prompt_manager.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tool_service/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tool_service/joke/__init__.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph/tool_service/joke/service.py +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph_flow.egg-info/entry_points.txt +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph_flow-3.0.0rc15 → trustgraph_flow-3.0.1}/trustgraph_flow.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-flow
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -16,519 +16,10 @@ _active_clusters = []
|
|
|
16
16
|
|
|
17
17
|
logger = logging.getLogger(__name__)
|
|
18
18
|
|
|
19
|
-
# Sentinel value for wildcard graph queries
|
|
20
|
-
GRAPH_WILDCARD = "*"
|
|
21
|
-
|
|
22
19
|
# Default graph stored as empty string
|
|
23
20
|
DEFAULT_GRAPH = ""
|
|
24
21
|
|
|
25
22
|
|
|
26
|
-
class KnowledgeGraph:
|
|
27
|
-
"""
|
|
28
|
-
REDUNDANT: This 7-table implementation has been superseded by
|
|
29
|
-
EntityCentricKnowledgeGraph which uses a more efficient 2-table model.
|
|
30
|
-
This class is retained temporarily for reference but should not be used
|
|
31
|
-
for new deployments.
|
|
32
|
-
|
|
33
|
-
Cassandra-backed knowledge graph supporting quads (s, p, o, g).
|
|
34
|
-
|
|
35
|
-
Uses 7 tables to support all 16 query patterns efficiently:
|
|
36
|
-
- Family A (g-wildcard): SPOG, POSG, OSPG
|
|
37
|
-
- Family B (g-specified): GSPO, GPOS, GOSP
|
|
38
|
-
- Collection table: COLL (for iteration/deletion)
|
|
39
|
-
|
|
40
|
-
Plus a metadata table for tracking collections.
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
|
-
def __init__(
|
|
44
|
-
self, hosts=None,
|
|
45
|
-
keyspace="trustgraph", username=None, password=None,
|
|
46
|
-
replication_factor=1,
|
|
47
|
-
):
|
|
48
|
-
|
|
49
|
-
if hosts is None:
|
|
50
|
-
hosts = ["localhost"]
|
|
51
|
-
|
|
52
|
-
self.keyspace = keyspace
|
|
53
|
-
self.replication_factor = replication_factor
|
|
54
|
-
self.username = username
|
|
55
|
-
|
|
56
|
-
# 7-table schema for quads with full query pattern support
|
|
57
|
-
# Family A: g-wildcard queries (g in clustering columns)
|
|
58
|
-
self.spog_table = "quads_spog" # partition (collection, s), cluster (p, o, g)
|
|
59
|
-
self.posg_table = "quads_posg" # partition (collection, p), cluster (o, s, g)
|
|
60
|
-
self.ospg_table = "quads_ospg" # partition (collection, o), cluster (s, p, g)
|
|
61
|
-
|
|
62
|
-
# Family B: g-specified queries (g in partition key)
|
|
63
|
-
self.gspo_table = "quads_gspo" # partition (collection, g, s), cluster (p, o)
|
|
64
|
-
self.gpos_table = "quads_gpos" # partition (collection, g, p), cluster (o, s)
|
|
65
|
-
self.gosp_table = "quads_gosp" # partition (collection, g, o), cluster (s, p)
|
|
66
|
-
|
|
67
|
-
# Collection table for iteration and bulk deletion
|
|
68
|
-
self.coll_table = "quads_coll" # partition (collection), cluster (g, s, p, o)
|
|
69
|
-
|
|
70
|
-
# Collection metadata tracking
|
|
71
|
-
self.collection_metadata_table = "collection_metadata"
|
|
72
|
-
|
|
73
|
-
if username and password:
|
|
74
|
-
ssl_context = ssl.create_default_context()
|
|
75
|
-
auth_provider = PlainTextAuthProvider(username=username, password=password)
|
|
76
|
-
self.cluster = Cluster(hosts, auth_provider=auth_provider, ssl_context=ssl_context)
|
|
77
|
-
else:
|
|
78
|
-
self.cluster = Cluster(hosts)
|
|
79
|
-
self.session = self.cluster.connect()
|
|
80
|
-
|
|
81
|
-
# Track this cluster globally
|
|
82
|
-
_active_clusters.append(self.cluster)
|
|
83
|
-
|
|
84
|
-
self.init()
|
|
85
|
-
self.prepare_statements()
|
|
86
|
-
|
|
87
|
-
def clear(self):
|
|
88
|
-
self.session.execute(f"""
|
|
89
|
-
drop keyspace if exists {self.keyspace};
|
|
90
|
-
""")
|
|
91
|
-
self.init()
|
|
92
|
-
|
|
93
|
-
def init(self):
|
|
94
|
-
self.session.execute(f"""
|
|
95
|
-
create keyspace if not exists {self.keyspace}
|
|
96
|
-
with replication = {{
|
|
97
|
-
'class' : 'SimpleStrategy',
|
|
98
|
-
'replication_factor' : {self.replication_factor}
|
|
99
|
-
}};
|
|
100
|
-
""")
|
|
101
|
-
|
|
102
|
-
self.session.set_keyspace(self.keyspace)
|
|
103
|
-
self.init_quad_schema()
|
|
104
|
-
|
|
105
|
-
def init_quad_schema(self):
|
|
106
|
-
"""Initialize 7-table schema for quads with full query pattern support"""
|
|
107
|
-
|
|
108
|
-
# Family A: g-wildcard queries (g in clustering columns)
|
|
109
|
-
|
|
110
|
-
# SPOG: partition (collection, s), cluster (p, o, g)
|
|
111
|
-
# Supports: (?, s, ?, ?), (?, s, p, ?), (?, s, p, o)
|
|
112
|
-
self.session.execute(f"""
|
|
113
|
-
CREATE TABLE IF NOT EXISTS {self.spog_table} (
|
|
114
|
-
collection text,
|
|
115
|
-
s text,
|
|
116
|
-
p text,
|
|
117
|
-
o text,
|
|
118
|
-
g text,
|
|
119
|
-
PRIMARY KEY ((collection, s), p, o, g)
|
|
120
|
-
);
|
|
121
|
-
""")
|
|
122
|
-
|
|
123
|
-
# POSG: partition (collection, p), cluster (o, s, g)
|
|
124
|
-
# Supports: (?, ?, p, ?), (?, ?, p, o)
|
|
125
|
-
self.session.execute(f"""
|
|
126
|
-
CREATE TABLE IF NOT EXISTS {self.posg_table} (
|
|
127
|
-
collection text,
|
|
128
|
-
p text,
|
|
129
|
-
o text,
|
|
130
|
-
s text,
|
|
131
|
-
g text,
|
|
132
|
-
PRIMARY KEY ((collection, p), o, s, g)
|
|
133
|
-
);
|
|
134
|
-
""")
|
|
135
|
-
|
|
136
|
-
# OSPG: partition (collection, o), cluster (s, p, g)
|
|
137
|
-
# Supports: (?, ?, ?, o), (?, s, ?, o)
|
|
138
|
-
self.session.execute(f"""
|
|
139
|
-
CREATE TABLE IF NOT EXISTS {self.ospg_table} (
|
|
140
|
-
collection text,
|
|
141
|
-
o text,
|
|
142
|
-
s text,
|
|
143
|
-
p text,
|
|
144
|
-
g text,
|
|
145
|
-
PRIMARY KEY ((collection, o), s, p, g)
|
|
146
|
-
);
|
|
147
|
-
""")
|
|
148
|
-
|
|
149
|
-
# Family B: g-specified queries (g in partition key)
|
|
150
|
-
|
|
151
|
-
# GSPO: partition (collection, g, s), cluster (p, o)
|
|
152
|
-
# Supports: (g, s, ?, ?), (g, s, p, ?), (g, s, p, o)
|
|
153
|
-
self.session.execute(f"""
|
|
154
|
-
CREATE TABLE IF NOT EXISTS {self.gspo_table} (
|
|
155
|
-
collection text,
|
|
156
|
-
g text,
|
|
157
|
-
s text,
|
|
158
|
-
p text,
|
|
159
|
-
o text,
|
|
160
|
-
PRIMARY KEY ((collection, g, s), p, o)
|
|
161
|
-
);
|
|
162
|
-
""")
|
|
163
|
-
|
|
164
|
-
# GPOS: partition (collection, g, p), cluster (o, s)
|
|
165
|
-
# Supports: (g, ?, p, ?), (g, ?, p, o)
|
|
166
|
-
self.session.execute(f"""
|
|
167
|
-
CREATE TABLE IF NOT EXISTS {self.gpos_table} (
|
|
168
|
-
collection text,
|
|
169
|
-
g text,
|
|
170
|
-
p text,
|
|
171
|
-
o text,
|
|
172
|
-
s text,
|
|
173
|
-
PRIMARY KEY ((collection, g, p), o, s)
|
|
174
|
-
);
|
|
175
|
-
""")
|
|
176
|
-
|
|
177
|
-
# GOSP: partition (collection, g, o), cluster (s, p)
|
|
178
|
-
# Supports: (g, ?, ?, o), (g, s, ?, o)
|
|
179
|
-
self.session.execute(f"""
|
|
180
|
-
CREATE TABLE IF NOT EXISTS {self.gosp_table} (
|
|
181
|
-
collection text,
|
|
182
|
-
g text,
|
|
183
|
-
o text,
|
|
184
|
-
s text,
|
|
185
|
-
p text,
|
|
186
|
-
PRIMARY KEY ((collection, g, o), s, p)
|
|
187
|
-
);
|
|
188
|
-
""")
|
|
189
|
-
|
|
190
|
-
# Collection table for iteration and bulk deletion
|
|
191
|
-
# COLL: partition (collection), cluster (g, s, p, o)
|
|
192
|
-
self.session.execute(f"""
|
|
193
|
-
CREATE TABLE IF NOT EXISTS {self.coll_table} (
|
|
194
|
-
collection text,
|
|
195
|
-
g text,
|
|
196
|
-
s text,
|
|
197
|
-
p text,
|
|
198
|
-
o text,
|
|
199
|
-
PRIMARY KEY (collection, g, s, p, o)
|
|
200
|
-
);
|
|
201
|
-
""")
|
|
202
|
-
|
|
203
|
-
# Collection metadata tracking
|
|
204
|
-
self.session.execute(f"""
|
|
205
|
-
CREATE TABLE IF NOT EXISTS {self.collection_metadata_table} (
|
|
206
|
-
collection text,
|
|
207
|
-
created_at timestamp,
|
|
208
|
-
PRIMARY KEY (collection)
|
|
209
|
-
);
|
|
210
|
-
""")
|
|
211
|
-
|
|
212
|
-
logger.info("Quad schema initialized (7 tables + metadata)")
|
|
213
|
-
|
|
214
|
-
def prepare_statements(self):
|
|
215
|
-
"""Prepare statements for all 7 tables"""
|
|
216
|
-
|
|
217
|
-
# Insert statements
|
|
218
|
-
self.insert_spog_stmt = self.session.prepare(
|
|
219
|
-
f"INSERT INTO {self.spog_table} (collection, s, p, o, g) VALUES (?, ?, ?, ?, ?)"
|
|
220
|
-
)
|
|
221
|
-
self.insert_posg_stmt = self.session.prepare(
|
|
222
|
-
f"INSERT INTO {self.posg_table} (collection, p, o, s, g) VALUES (?, ?, ?, ?, ?)"
|
|
223
|
-
)
|
|
224
|
-
self.insert_ospg_stmt = self.session.prepare(
|
|
225
|
-
f"INSERT INTO {self.ospg_table} (collection, o, s, p, g) VALUES (?, ?, ?, ?, ?)"
|
|
226
|
-
)
|
|
227
|
-
self.insert_gspo_stmt = self.session.prepare(
|
|
228
|
-
f"INSERT INTO {self.gspo_table} (collection, g, s, p, o) VALUES (?, ?, ?, ?, ?)"
|
|
229
|
-
)
|
|
230
|
-
self.insert_gpos_stmt = self.session.prepare(
|
|
231
|
-
f"INSERT INTO {self.gpos_table} (collection, g, p, o, s) VALUES (?, ?, ?, ?, ?)"
|
|
232
|
-
)
|
|
233
|
-
self.insert_gosp_stmt = self.session.prepare(
|
|
234
|
-
f"INSERT INTO {self.gosp_table} (collection, g, o, s, p) VALUES (?, ?, ?, ?, ?)"
|
|
235
|
-
)
|
|
236
|
-
self.insert_coll_stmt = self.session.prepare(
|
|
237
|
-
f"INSERT INTO {self.coll_table} (collection, g, s, p, o) VALUES (?, ?, ?, ?, ?)"
|
|
238
|
-
)
|
|
239
|
-
|
|
240
|
-
# Delete statements (for single quad deletion)
|
|
241
|
-
self.delete_spog_stmt = self.session.prepare(
|
|
242
|
-
f"DELETE FROM {self.spog_table} WHERE collection = ? AND s = ? AND p = ? AND o = ? AND g = ?"
|
|
243
|
-
)
|
|
244
|
-
self.delete_posg_stmt = self.session.prepare(
|
|
245
|
-
f"DELETE FROM {self.posg_table} WHERE collection = ? AND p = ? AND o = ? AND s = ? AND g = ?"
|
|
246
|
-
)
|
|
247
|
-
self.delete_ospg_stmt = self.session.prepare(
|
|
248
|
-
f"DELETE FROM {self.ospg_table} WHERE collection = ? AND o = ? AND s = ? AND p = ? AND g = ?"
|
|
249
|
-
)
|
|
250
|
-
self.delete_gspo_stmt = self.session.prepare(
|
|
251
|
-
f"DELETE FROM {self.gspo_table} WHERE collection = ? AND g = ? AND s = ? AND p = ? AND o = ?"
|
|
252
|
-
)
|
|
253
|
-
self.delete_gpos_stmt = self.session.prepare(
|
|
254
|
-
f"DELETE FROM {self.gpos_table} WHERE collection = ? AND g = ? AND p = ? AND o = ? AND s = ?"
|
|
255
|
-
)
|
|
256
|
-
self.delete_gosp_stmt = self.session.prepare(
|
|
257
|
-
f"DELETE FROM {self.gosp_table} WHERE collection = ? AND g = ? AND o = ? AND s = ? AND p = ?"
|
|
258
|
-
)
|
|
259
|
-
self.delete_coll_stmt = self.session.prepare(
|
|
260
|
-
f"DELETE FROM {self.coll_table} WHERE collection = ? AND g = ? AND s = ? AND p = ? AND o = ?"
|
|
261
|
-
)
|
|
262
|
-
|
|
263
|
-
# Query statements - Family A (g-wildcard, g in clustering)
|
|
264
|
-
|
|
265
|
-
# SPOG table queries
|
|
266
|
-
self.get_s_wildcard_stmt = self.session.prepare(
|
|
267
|
-
f"SELECT p, o, g FROM {self.spog_table} WHERE collection = ? AND s = ? LIMIT ?"
|
|
268
|
-
)
|
|
269
|
-
self.get_sp_wildcard_stmt = self.session.prepare(
|
|
270
|
-
f"SELECT o, g FROM {self.spog_table} WHERE collection = ? AND s = ? AND p = ? LIMIT ?"
|
|
271
|
-
)
|
|
272
|
-
self.get_spo_wildcard_stmt = self.session.prepare(
|
|
273
|
-
f"SELECT g FROM {self.spog_table} WHERE collection = ? AND s = ? AND p = ? AND o = ? LIMIT ?"
|
|
274
|
-
)
|
|
275
|
-
|
|
276
|
-
# POSG table queries
|
|
277
|
-
self.get_p_wildcard_stmt = self.session.prepare(
|
|
278
|
-
f"SELECT o, s, g FROM {self.posg_table} WHERE collection = ? AND p = ? LIMIT ?"
|
|
279
|
-
)
|
|
280
|
-
self.get_po_wildcard_stmt = self.session.prepare(
|
|
281
|
-
f"SELECT s, g FROM {self.posg_table} WHERE collection = ? AND p = ? AND o = ? LIMIT ?"
|
|
282
|
-
)
|
|
283
|
-
|
|
284
|
-
# OSPG table queries
|
|
285
|
-
self.get_o_wildcard_stmt = self.session.prepare(
|
|
286
|
-
f"SELECT s, p, g FROM {self.ospg_table} WHERE collection = ? AND o = ? LIMIT ?"
|
|
287
|
-
)
|
|
288
|
-
self.get_os_wildcard_stmt = self.session.prepare(
|
|
289
|
-
f"SELECT p, g FROM {self.ospg_table} WHERE collection = ? AND o = ? AND s = ? LIMIT ?"
|
|
290
|
-
)
|
|
291
|
-
|
|
292
|
-
# Query statements - Family B (g-specified, g in partition)
|
|
293
|
-
|
|
294
|
-
# GSPO table queries
|
|
295
|
-
self.get_gs_stmt = self.session.prepare(
|
|
296
|
-
f"SELECT p, o FROM {self.gspo_table} WHERE collection = ? AND g = ? AND s = ? LIMIT ?"
|
|
297
|
-
)
|
|
298
|
-
self.get_gsp_stmt = self.session.prepare(
|
|
299
|
-
f"SELECT o FROM {self.gspo_table} WHERE collection = ? AND g = ? AND s = ? AND p = ? LIMIT ?"
|
|
300
|
-
)
|
|
301
|
-
self.get_gspo_stmt = self.session.prepare(
|
|
302
|
-
f"SELECT s FROM {self.gspo_table} WHERE collection = ? AND g = ? AND s = ? AND p = ? AND o = ? LIMIT ?"
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
# GPOS table queries
|
|
306
|
-
self.get_gp_stmt = self.session.prepare(
|
|
307
|
-
f"SELECT o, s FROM {self.gpos_table} WHERE collection = ? AND g = ? AND p = ? LIMIT ?"
|
|
308
|
-
)
|
|
309
|
-
self.get_gpo_stmt = self.session.prepare(
|
|
310
|
-
f"SELECT s FROM {self.gpos_table} WHERE collection = ? AND g = ? AND p = ? AND o = ? LIMIT ?"
|
|
311
|
-
)
|
|
312
|
-
|
|
313
|
-
# GOSP table queries
|
|
314
|
-
self.get_go_stmt = self.session.prepare(
|
|
315
|
-
f"SELECT s, p FROM {self.gosp_table} WHERE collection = ? AND g = ? AND o = ? LIMIT ?"
|
|
316
|
-
)
|
|
317
|
-
self.get_gos_stmt = self.session.prepare(
|
|
318
|
-
f"SELECT p FROM {self.gosp_table} WHERE collection = ? AND g = ? AND o = ? AND s = ? LIMIT ?"
|
|
319
|
-
)
|
|
320
|
-
|
|
321
|
-
# Collection table query (for get_all and iteration)
|
|
322
|
-
self.get_all_stmt = self.session.prepare(
|
|
323
|
-
f"SELECT g, s, p, o FROM {self.coll_table} WHERE collection = ? LIMIT ?"
|
|
324
|
-
)
|
|
325
|
-
self.get_g_stmt = self.session.prepare(
|
|
326
|
-
f"SELECT s, p, o FROM {self.coll_table} WHERE collection = ? AND g = ? LIMIT ?"
|
|
327
|
-
)
|
|
328
|
-
|
|
329
|
-
logger.info("Prepared statements initialized for quad schema (7 tables)")
|
|
330
|
-
|
|
331
|
-
def insert(self, collection, s, p, o, g=None):
|
|
332
|
-
"""Insert a quad into all 7 tables"""
|
|
333
|
-
# Default graph stored as empty string
|
|
334
|
-
if g is None:
|
|
335
|
-
g = DEFAULT_GRAPH
|
|
336
|
-
|
|
337
|
-
batch = BatchStatement()
|
|
338
|
-
|
|
339
|
-
# Family A tables
|
|
340
|
-
batch.add(self.insert_spog_stmt, (collection, s, p, o, g))
|
|
341
|
-
batch.add(self.insert_posg_stmt, (collection, p, o, s, g))
|
|
342
|
-
batch.add(self.insert_ospg_stmt, (collection, o, s, p, g))
|
|
343
|
-
|
|
344
|
-
# Family B tables
|
|
345
|
-
batch.add(self.insert_gspo_stmt, (collection, g, s, p, o))
|
|
346
|
-
batch.add(self.insert_gpos_stmt, (collection, g, p, o, s))
|
|
347
|
-
batch.add(self.insert_gosp_stmt, (collection, g, o, s, p))
|
|
348
|
-
|
|
349
|
-
# Collection table
|
|
350
|
-
batch.add(self.insert_coll_stmt, (collection, g, s, p, o))
|
|
351
|
-
|
|
352
|
-
self.session.execute(batch)
|
|
353
|
-
|
|
354
|
-
def delete_quad(self, collection, s, p, o, g=None):
|
|
355
|
-
"""Delete a single quad from all 7 tables"""
|
|
356
|
-
if g is None:
|
|
357
|
-
g = DEFAULT_GRAPH
|
|
358
|
-
|
|
359
|
-
batch = BatchStatement()
|
|
360
|
-
|
|
361
|
-
batch.add(self.delete_spog_stmt, (collection, s, p, o, g))
|
|
362
|
-
batch.add(self.delete_posg_stmt, (collection, p, o, s, g))
|
|
363
|
-
batch.add(self.delete_ospg_stmt, (collection, o, s, p, g))
|
|
364
|
-
batch.add(self.delete_gspo_stmt, (collection, g, s, p, o))
|
|
365
|
-
batch.add(self.delete_gpos_stmt, (collection, g, p, o, s))
|
|
366
|
-
batch.add(self.delete_gosp_stmt, (collection, g, o, s, p))
|
|
367
|
-
batch.add(self.delete_coll_stmt, (collection, g, s, p, o))
|
|
368
|
-
|
|
369
|
-
self.session.execute(batch)
|
|
370
|
-
|
|
371
|
-
# ========================================================================
|
|
372
|
-
# Query methods
|
|
373
|
-
# g=None means default graph, g="*" means all graphs
|
|
374
|
-
# ========================================================================
|
|
375
|
-
|
|
376
|
-
def get_all(self, collection, limit=50):
|
|
377
|
-
"""Get all quads in collection"""
|
|
378
|
-
return self.session.execute(self.get_all_stmt, (collection, limit))
|
|
379
|
-
|
|
380
|
-
def get_s(self, collection, s, g=None, limit=10):
|
|
381
|
-
"""Query by subject. g=None: default graph, g='*': all graphs"""
|
|
382
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
383
|
-
# Default graph - use GSPO table
|
|
384
|
-
return self.session.execute(self.get_gs_stmt, (collection, DEFAULT_GRAPH, s, limit))
|
|
385
|
-
elif g == GRAPH_WILDCARD:
|
|
386
|
-
# All graphs - use SPOG table
|
|
387
|
-
return self.session.execute(self.get_s_wildcard_stmt, (collection, s, limit))
|
|
388
|
-
else:
|
|
389
|
-
# Specific graph - use GSPO table
|
|
390
|
-
return self.session.execute(self.get_gs_stmt, (collection, g, s, limit))
|
|
391
|
-
|
|
392
|
-
def get_p(self, collection, p, g=None, limit=10):
|
|
393
|
-
"""Query by predicate"""
|
|
394
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
395
|
-
return self.session.execute(self.get_gp_stmt, (collection, DEFAULT_GRAPH, p, limit))
|
|
396
|
-
elif g == GRAPH_WILDCARD:
|
|
397
|
-
return self.session.execute(self.get_p_wildcard_stmt, (collection, p, limit))
|
|
398
|
-
else:
|
|
399
|
-
return self.session.execute(self.get_gp_stmt, (collection, g, p, limit))
|
|
400
|
-
|
|
401
|
-
def get_o(self, collection, o, g=None, limit=10):
|
|
402
|
-
"""Query by object"""
|
|
403
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
404
|
-
return self.session.execute(self.get_go_stmt, (collection, DEFAULT_GRAPH, o, limit))
|
|
405
|
-
elif g == GRAPH_WILDCARD:
|
|
406
|
-
return self.session.execute(self.get_o_wildcard_stmt, (collection, o, limit))
|
|
407
|
-
else:
|
|
408
|
-
return self.session.execute(self.get_go_stmt, (collection, g, o, limit))
|
|
409
|
-
|
|
410
|
-
def get_sp(self, collection, s, p, g=None, limit=10):
|
|
411
|
-
"""Query by subject and predicate"""
|
|
412
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
413
|
-
return self.session.execute(self.get_gsp_stmt, (collection, DEFAULT_GRAPH, s, p, limit))
|
|
414
|
-
elif g == GRAPH_WILDCARD:
|
|
415
|
-
return self.session.execute(self.get_sp_wildcard_stmt, (collection, s, p, limit))
|
|
416
|
-
else:
|
|
417
|
-
return self.session.execute(self.get_gsp_stmt, (collection, g, s, p, limit))
|
|
418
|
-
|
|
419
|
-
def get_po(self, collection, p, o, g=None, limit=10):
|
|
420
|
-
"""Query by predicate and object"""
|
|
421
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
422
|
-
return self.session.execute(self.get_gpo_stmt, (collection, DEFAULT_GRAPH, p, o, limit))
|
|
423
|
-
elif g == GRAPH_WILDCARD:
|
|
424
|
-
return self.session.execute(self.get_po_wildcard_stmt, (collection, p, o, limit))
|
|
425
|
-
else:
|
|
426
|
-
return self.session.execute(self.get_gpo_stmt, (collection, g, p, o, limit))
|
|
427
|
-
|
|
428
|
-
def get_os(self, collection, o, s, g=None, limit=10):
|
|
429
|
-
"""Query by object and subject"""
|
|
430
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
431
|
-
return self.session.execute(self.get_gos_stmt, (collection, DEFAULT_GRAPH, o, s, limit))
|
|
432
|
-
elif g == GRAPH_WILDCARD:
|
|
433
|
-
return self.session.execute(self.get_os_wildcard_stmt, (collection, o, s, limit))
|
|
434
|
-
else:
|
|
435
|
-
return self.session.execute(self.get_gos_stmt, (collection, g, o, s, limit))
|
|
436
|
-
|
|
437
|
-
def get_spo(self, collection, s, p, o, g=None, limit=10):
|
|
438
|
-
"""Query by subject, predicate, object (find which graphs)"""
|
|
439
|
-
if g is None or g == DEFAULT_GRAPH:
|
|
440
|
-
return self.session.execute(self.get_gspo_stmt, (collection, DEFAULT_GRAPH, s, p, o, limit))
|
|
441
|
-
elif g == GRAPH_WILDCARD:
|
|
442
|
-
return self.session.execute(self.get_spo_wildcard_stmt, (collection, s, p, o, limit))
|
|
443
|
-
else:
|
|
444
|
-
return self.session.execute(self.get_gspo_stmt, (collection, g, s, p, o, limit))
|
|
445
|
-
|
|
446
|
-
def get_g(self, collection, g, limit=50):
|
|
447
|
-
"""Get all quads in a specific graph"""
|
|
448
|
-
if g is None:
|
|
449
|
-
g = DEFAULT_GRAPH
|
|
450
|
-
return self.session.execute(self.get_g_stmt, (collection, g, limit))
|
|
451
|
-
|
|
452
|
-
# ========================================================================
|
|
453
|
-
# Collection management
|
|
454
|
-
# ========================================================================
|
|
455
|
-
|
|
456
|
-
def collection_exists(self, collection):
|
|
457
|
-
"""Check if collection exists"""
|
|
458
|
-
try:
|
|
459
|
-
result = self.session.execute(
|
|
460
|
-
f"SELECT collection FROM {self.collection_metadata_table} WHERE collection = %s LIMIT 1",
|
|
461
|
-
(collection,)
|
|
462
|
-
)
|
|
463
|
-
return bool(list(result))
|
|
464
|
-
except Exception as e:
|
|
465
|
-
logger.error(f"Error checking collection existence: {e}")
|
|
466
|
-
return False
|
|
467
|
-
|
|
468
|
-
def create_collection(self, collection):
|
|
469
|
-
"""Create collection by inserting metadata row"""
|
|
470
|
-
try:
|
|
471
|
-
self.session.execute(
|
|
472
|
-
f"INSERT INTO {self.collection_metadata_table} (collection, created_at) VALUES (%s, %s)",
|
|
473
|
-
(collection, datetime.datetime.now())
|
|
474
|
-
)
|
|
475
|
-
logger.info(f"Created collection metadata for {collection}")
|
|
476
|
-
except Exception as e:
|
|
477
|
-
logger.error(f"Error creating collection: {e}")
|
|
478
|
-
raise e
|
|
479
|
-
|
|
480
|
-
def delete_collection(self, collection):
|
|
481
|
-
"""Delete all quads for a collection from all 7 tables"""
|
|
482
|
-
# Read all quads from collection table
|
|
483
|
-
rows = self.session.execute(
|
|
484
|
-
f"SELECT g, s, p, o FROM {self.coll_table} WHERE collection = %s",
|
|
485
|
-
(collection,)
|
|
486
|
-
)
|
|
487
|
-
|
|
488
|
-
batch = BatchStatement()
|
|
489
|
-
count = 0
|
|
490
|
-
|
|
491
|
-
for row in rows:
|
|
492
|
-
g, s, p, o = row.g, row.s, row.p, row.o
|
|
493
|
-
|
|
494
|
-
# Delete from all 7 tables
|
|
495
|
-
batch.add(self.delete_spog_stmt, (collection, s, p, o, g))
|
|
496
|
-
batch.add(self.delete_posg_stmt, (collection, p, o, s, g))
|
|
497
|
-
batch.add(self.delete_ospg_stmt, (collection, o, s, p, g))
|
|
498
|
-
batch.add(self.delete_gspo_stmt, (collection, g, s, p, o))
|
|
499
|
-
batch.add(self.delete_gpos_stmt, (collection, g, p, o, s))
|
|
500
|
-
batch.add(self.delete_gosp_stmt, (collection, g, o, s, p))
|
|
501
|
-
batch.add(self.delete_coll_stmt, (collection, g, s, p, o))
|
|
502
|
-
|
|
503
|
-
count += 1
|
|
504
|
-
|
|
505
|
-
# Execute batch every 15 quads (7 deletes each = 105 statements)
|
|
506
|
-
if count % 15 == 0:
|
|
507
|
-
self.session.execute(batch)
|
|
508
|
-
batch = BatchStatement()
|
|
509
|
-
|
|
510
|
-
# Execute remaining
|
|
511
|
-
if count % 15 != 0:
|
|
512
|
-
self.session.execute(batch)
|
|
513
|
-
|
|
514
|
-
# Delete collection metadata
|
|
515
|
-
self.session.execute(
|
|
516
|
-
f"DELETE FROM {self.collection_metadata_table} WHERE collection = %s",
|
|
517
|
-
(collection,)
|
|
518
|
-
)
|
|
519
|
-
|
|
520
|
-
logger.info(f"Deleted {count} quads from collection {collection}")
|
|
521
|
-
|
|
522
|
-
def close(self):
|
|
523
|
-
"""Close connections"""
|
|
524
|
-
if hasattr(self, 'session') and self.session:
|
|
525
|
-
self.session.shutdown()
|
|
526
|
-
if hasattr(self, 'cluster') and self.cluster:
|
|
527
|
-
self.cluster.shutdown()
|
|
528
|
-
if self.cluster in _active_clusters:
|
|
529
|
-
_active_clusters.remove(self.cluster)
|
|
530
|
-
|
|
531
|
-
|
|
532
23
|
class EntityCentricKnowledgeGraph:
|
|
533
24
|
"""
|
|
534
25
|
Entity-centric Cassandra-backed knowledge graph with append-only versioning.
|
|
@@ -791,6 +282,24 @@ class EntityCentricKnowledgeGraph:
|
|
|
791
282
|
"WHERE collection = ? AND entity = ? AND role = 'S'"
|
|
792
283
|
)
|
|
793
284
|
|
|
285
|
+
self.delete_collection_version_stmt = self.session.prepare(
|
|
286
|
+
f"DELETE FROM {self.collection_table} "
|
|
287
|
+
"WHERE collection = ? AND g = ? AND s = ? AND p = ? AND o = ? "
|
|
288
|
+
"AND otype = ? AND dtype = ? AND lang = ? AND version = ?"
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
self.delete_entity_version_stmt = self.session.prepare(
|
|
292
|
+
f"DELETE FROM {self.entity_table} "
|
|
293
|
+
"WHERE collection = ? AND entity = ? AND role = ? "
|
|
294
|
+
"AND p = ? AND otype = ? AND s = ? AND o = ? AND g = ? "
|
|
295
|
+
"AND dtype = ? AND lang = ? AND version = ?"
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
self.delete_version_log_stmt = self.session.prepare(
|
|
299
|
+
f"DELETE FROM {self.graph_version_log_table} "
|
|
300
|
+
"WHERE collection = ? AND named_graph = ? AND version = ?"
|
|
301
|
+
)
|
|
302
|
+
|
|
794
303
|
logger.info("Prepared statements initialized")
|
|
795
304
|
|
|
796
305
|
def insert(self, collection, s, p, o, g, version, is_deleted,
|
|
@@ -1634,6 +1143,106 @@ class EntityCentricKnowledgeGraph:
|
|
|
1634
1143
|
|
|
1635
1144
|
return new_version
|
|
1636
1145
|
|
|
1146
|
+
# ========================================================================
|
|
1147
|
+
# Purge — drop version history before a cutoff
|
|
1148
|
+
# ========================================================================
|
|
1149
|
+
|
|
1150
|
+
async def async_purge_graph(self, collection, named_graph, before_version):
|
|
1151
|
+
"""
|
|
1152
|
+
Remove version history before ``before_version`` for a named graph.
|
|
1153
|
+
|
|
1154
|
+
For each unique quad, the latest entry with version < before_version
|
|
1155
|
+
is kept (it establishes the state at the cutoff), older entries are
|
|
1156
|
+
deleted. Dead-end delete markers (no entries >= before_version) are
|
|
1157
|
+
removed entirely. Version log entries before the cutoff are also
|
|
1158
|
+
deleted.
|
|
1159
|
+
"""
|
|
1160
|
+
cql = (
|
|
1161
|
+
f"SELECT g, s, p, o, otype, dtype, lang, version, is_deleted "
|
|
1162
|
+
f"FROM {self.collection_table} "
|
|
1163
|
+
"WHERE collection = %s AND g = %s"
|
|
1164
|
+
)
|
|
1165
|
+
stmt = SimpleStatement(cql, fetch_size=5000)
|
|
1166
|
+
|
|
1167
|
+
rows = await async_scan(
|
|
1168
|
+
self.session, stmt, (collection, named_graph),
|
|
1169
|
+
)
|
|
1170
|
+
|
|
1171
|
+
quads = {}
|
|
1172
|
+
for row in rows:
|
|
1173
|
+
key = (row.g, row.s, row.p, row.o, row.otype, row.dtype, row.lang)
|
|
1174
|
+
quads.setdefault(key, []).append(
|
|
1175
|
+
(row.version, row.is_deleted)
|
|
1176
|
+
)
|
|
1177
|
+
|
|
1178
|
+
to_delete = []
|
|
1179
|
+
|
|
1180
|
+
for key, entries in quads.items():
|
|
1181
|
+
entries.sort(key=lambda e: e[0], reverse=True)
|
|
1182
|
+
|
|
1183
|
+
has_post_cutoff = any(v >= before_version for v, _ in entries)
|
|
1184
|
+
pre_cutoff = [(v, d) for v, d in entries if v < before_version]
|
|
1185
|
+
|
|
1186
|
+
if not pre_cutoff:
|
|
1187
|
+
continue
|
|
1188
|
+
|
|
1189
|
+
keep_version = pre_cutoff[0][0]
|
|
1190
|
+
keep_is_deleted = pre_cutoff[0][1]
|
|
1191
|
+
|
|
1192
|
+
if keep_is_deleted and not has_post_cutoff:
|
|
1193
|
+
for v, _ in pre_cutoff:
|
|
1194
|
+
to_delete.append((key, v))
|
|
1195
|
+
else:
|
|
1196
|
+
for v, _ in pre_cutoff[1:]:
|
|
1197
|
+
to_delete.append((key, v))
|
|
1198
|
+
|
|
1199
|
+
batch = BatchStatement()
|
|
1200
|
+
count = 0
|
|
1201
|
+
|
|
1202
|
+
for (g, s, p, o, otype, dtype, lang), version in to_delete:
|
|
1203
|
+
batch.add(self.delete_collection_version_stmt,
|
|
1204
|
+
(collection, g, s, p, o, otype, dtype, lang, version))
|
|
1205
|
+
|
|
1206
|
+
for entity, role in [(s, 'S'), (p, 'P'), (o, 'O')]:
|
|
1207
|
+
batch.add(self.delete_entity_version_stmt,
|
|
1208
|
+
(collection, entity, role,
|
|
1209
|
+
p, otype, s, o, g, dtype, lang, version))
|
|
1210
|
+
|
|
1211
|
+
if g != DEFAULT_GRAPH:
|
|
1212
|
+
batch.add(self.delete_entity_version_stmt,
|
|
1213
|
+
(collection, g, 'G',
|
|
1214
|
+
p, otype, s, o, g, dtype, lang, version))
|
|
1215
|
+
|
|
1216
|
+
count += 1
|
|
1217
|
+
if count % 10 == 0:
|
|
1218
|
+
await async_execute(self.session, batch)
|
|
1219
|
+
batch = BatchStatement()
|
|
1220
|
+
|
|
1221
|
+
if count % 10 != 0:
|
|
1222
|
+
await async_execute(self.session, batch)
|
|
1223
|
+
|
|
1224
|
+
log = await self.async_get_version_log(collection, named_graph)
|
|
1225
|
+
log_batch = BatchStatement()
|
|
1226
|
+
log_count = 0
|
|
1227
|
+
for entry in log:
|
|
1228
|
+
if entry["version"] < before_version:
|
|
1229
|
+
log_batch.add(self.delete_version_log_stmt,
|
|
1230
|
+
(collection, named_graph, entry["version"]))
|
|
1231
|
+
log_count += 1
|
|
1232
|
+
if log_count % 50 == 0:
|
|
1233
|
+
await async_execute(self.session, log_batch)
|
|
1234
|
+
log_batch = BatchStatement()
|
|
1235
|
+
if log_count % 50 != 0:
|
|
1236
|
+
await async_execute(self.session, log_batch)
|
|
1237
|
+
|
|
1238
|
+
logger.info(
|
|
1239
|
+
f"Purged {collection}/{named_graph}: "
|
|
1240
|
+
f"{count} quad versions, {log_count} log entries removed "
|
|
1241
|
+
f"(before v{before_version})"
|
|
1242
|
+
)
|
|
1243
|
+
|
|
1244
|
+
return count
|
|
1245
|
+
|
|
1637
1246
|
def close(self):
|
|
1638
1247
|
if hasattr(self, 'session') and self.session:
|
|
1639
1248
|
self.session.shutdown()
|
|
@@ -14,7 +14,8 @@ logger = logging.getLogger(__name__)
|
|
|
14
14
|
|
|
15
15
|
default_ident = "query-formulation"
|
|
16
16
|
|
|
17
|
-
FILTER_OPS = {"eq", "ne", "lt", "lte", "gt", "gte", "in", "like"}
|
|
17
|
+
FILTER_OPS = {"eq", "ne", "lt", "lte", "gt", "gte", "in", "like", "is_null", "is_not_null"}
|
|
18
|
+
NULLARY_OPS = {"is_null", "is_not_null"}
|
|
18
19
|
ORDER_DIRECTIONS = {"asc", "desc"}
|
|
19
20
|
|
|
20
21
|
|
|
@@ -66,6 +67,10 @@ def validate_select(spec, schema):
|
|
|
66
67
|
f"Unknown filter operator '{op}'. "
|
|
67
68
|
f"Must be one of: {sorted(FILTER_OPS)}"
|
|
68
69
|
)
|
|
70
|
+
if op not in NULLARY_OPS and "value" not in f:
|
|
71
|
+
raise ValueError(
|
|
72
|
+
f"Filter on '{col}' with op '{op}' requires a value"
|
|
73
|
+
)
|
|
69
74
|
|
|
70
75
|
for o in spec.get("order_by", []):
|
|
71
76
|
col = o.get("column", "")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.0.1"
|