openregs fetch-expression
Capture one sibling language Expression of a Work already in canon.
An EU act is equally authentic in every official language, so each language is a sibling Expression of one Work. Ingestion normalizes one of them eagerly and registers the rest in each unit’s meta.yaml; this captures one of those registered siblings on demand, normalizes it and writes it into canon beside the Expression that registered it. The URI comes from the registration, so a language nobody registered is refused rather than guessed at.
openregs fetch-expression [-h] [--offline-fixtures] [--regime <name>] [--config <path>] [--state-dir <path>] [--canon <path>] [--lock <path>] <work> <lang>| Argument | |
|---|---|
<work> | Work IRI, for example /akn/eu/act/reg/2024/1 (required) |
<lang> | ISO 639 code of the wanted Expression, for example fra (required) |
| Option | |
|---|---|
--offline-fixtures | serve the registered URI out of the checkout instead of the network |
--regime <name> | look in this regime’s canon only (default: every regime) |
--config <path> | read this source configuration instead of config/sources.yaml |
--state-dir <path> | keep the snapshot store and fetch state here instead of state/ |
--canon <path> | read and write this canon directory instead of regimes/<regime>/canon/ |
--lock <path> | append the provenance entry to this ledger instead of regimes/<regime>/SOURCES.lock |
Rendered from openregs/openregs@cbe9615:tooling/openregs/cli/main.py