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.26.tar.gz (24.9 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.26-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cjm_capability_graph_sqlite-0.0.26.tar.gz
Algorithm Hash digest
SHA256 814d5b8f6739475e695b78e00177ea5ce697a9a02c485fd1659432859b088d5e
MD5 4d904025b1d13dd8ca195c7eb0ebd558
BLAKE2b-256 fd9fb60dcd3bedfbbb5937096f5288dbb2c26f4d876a32e8f319553a49d9c387

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cjm_capability_graph_sqlite-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 4821fce60972c023b26ec5c462d43e1494e407c789caf0d3273fb2be975892f0
MD5 4e09da59d06d0060687743b2f79d2d9b
BLAKE2b-256 c88e4ebbaefdcd24159edc41c419bea9f1a60f59054faf7d72d2d696dc88dee4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.28

2 files

This release

0.0.26 This release

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