Skip to main content

cjm-capability-graph-sqlite

A local, file-backed context-graph storage capability for the cjm-substrate runtime that implements graph storage, traversal, and querying using SQLite.

Modules

  • cjm_capability_graph_sqlite.capability — Capability implementation for Context Graph using SQLite.
  • cjm_capability_graph_sqlite.query_translation — The per-backend translation of the typed query expressions (pass-2 Thread 5; stage 4): NodeQuery/EdgeQuery -> parameterized SQLite SQL over the nodes/edges schema. THIS module is what makes the typed surface portable - the expression is domain- and backend-neutral; every backend tool owns a translation like this one (the ratified stage-4 split: backend owns translation; the adapter stays generic). Pure functions, unit-tested against an in-memory DB with the production schema - no capability runtime needed.

API

cjm_capability_graph_sqlite.capability

  • SQLiteGraphCapability class — Local, file-backed Context Graph implementation using SQLite.
  • SQLiteGraphCapabilityConfig class — Configuration for SQLite Graph Capability.
  • integrity_check function — Backend self-check (stage 4; the G3 corruption find institutionalized):
  • query_edges function — Execute a typed edge query (stage 4) — same contract as query_nodes.
  • query_nodes function — Execute a typed node query (stage 4) — translated to parameterized SQL
  • raw_query function — Execute the raw escape — refuses backend mismatches (non-portable by

cjm_capability_graph_sqlite.query_translation

  • translate_edge_query function — Translate an EdgeQuery to parameterized SQLite SQL.
  • translate_node_query function — Translate a NodeQuery to parameterized SQLite SQL.

Dependencies

Depends on: cjm-context-graph-primitives, cjm-substrate

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cjm_capability_graph_sqlite-0.0.28.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cjm_capability_graph_sqlite-0.0.28-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file cjm_capability_graph_sqlite-0.0.28.tar.gz.

File metadata

File hashes

Hashes for cjm_capability_graph_sqlite-0.0.28.tar.gz
Algorithm Hash digest
SHA256 6ec6c06270c8a173636d0e64102c7c8ee6a3dab695058c51f1cd50d33ccce715
MD5 1e578d52d7eeeeaa19d95e2a28205bd5
BLAKE2b-256 c010fc0510720057cbefaec41429a632e4d4037f2afd05ba3a9b48e56a5347cc

See more details on using hashes here.

File details

Details for the file cjm_capability_graph_sqlite-0.0.28-py3-none-any.whl.

File metadata

File hashes

Hashes for cjm_capability_graph_sqlite-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 a6fcba79ef3c12a911173a63d5049d1318040357065099881f6ead2ed1b2a9d3
MD5 1c9f49988e453c2303458d4814579eec
BLAKE2b-256 7b3744f7490cc6a2c913caeb291cd68c101ab3637004aef9e118624cd59d40e7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.28 This release

2 files

0.0.26

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page