holonic.cli package

Submodules

holonic.cli.migrate_registry module

Migration CLI: backfill graph-type declarations in the registry.

Added in 0.3.4. Scans the registry graph for layer graphs declared via cga:hasInterior / cga:hasBoundary / cga:hasProjection / cga:hasContext that lack the graph-type typing triples (a cga:HolonicGraph and cga:graphRole <role>) introduced in 0.3.4, and adds them.

Usage:

holonic-migrate-registry <fuseki-or-rdflib-url> [--apply]

Without --apply, prints the plan (which graphs would get typed, and with which role). With --apply, writes the triples and prints a summary.

The migration is idempotent. Running twice is safe; the second run will find nothing to do. See docs/DECISIONS.md § D-0.3.4-2 for rationale.

holonic.cli.migrate_registry.main(argv=None)[source]

Entry point. Returns the process exit code.

Return type:

int

Parameters:

argv (list[str] | None)

Module contents

Command-line entry points for holonic.

Added in 0.3.4. Exposed as [project.scripts] entries in pyproject.toml.