Skip to content

openregs graph

Work with a regime’s cross-reference graph.

The canon is one file per legal unit, which is the right shape for reviewing law and the wrong shape for answering questions about it. The graph is the edges the text states and the layout does not: what cites what, which unit defines a term another one uses, what amends what, and what is disapplied for whom.

openregs graph [-h] <command> ...

Derive the edge list from a regime’s canon and atoms.

Rebuild regimes//graph/edges.yaml from the canon, the atoms and the entity-type taxonomy. Every endpoint must exist: a reference that resolves to nothing is reported and the build fails rather than writing an edge nobody can follow.

openregs graph build [-h] --regime <name> [--root <path>] [--out <path>]
Option
--regime <name>the regime to build, for example fixreg (required)
--root <path>read regimes/ under this directory instead of the checkout
--out <path>write the edge list here instead of regimes/<regime>/graph/edges.yaml

Rendered from openregs/openregs@cbe9615:tooling/openregs/cli/main.py