Skip to content

openregs normalize

Map a captured source document to Akoma Ntoso and report the mapping.

Run a source-format mapper over one captured document and validate its output against the vendored Akoma Ntoso XSD in spec/xsd/. Pure: no network, no clock, no randomness, so the same input always produces byte-identical output. The mapping report says how much of the source was understood and which cross-references found no target.

openregs normalize [-h] [--format <format>] [--doc-id <id>] [--output <path>]
[--report <path>]
<path>
Argument
<path>the captured source document to map (required)
Option
--format <format>source format (akn, clml, ecfr, formex, gazette-ocr; default: detect from the root element) (one of akn, clml, ecfr, formex, gazette-ocr)
--doc-id <id>the source’s own id for this document, recorded in the mapping report
--output <path>, -o <path>write the Akoma Ntoso here (’-’ for stdout); default: do not write it
--report <path>write the mapping report here as JSON

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