map_record
Validates a Governed Data Record, maps every value to a chosen target format, and returns output, coverage report, unmapped gaps, and audit hash.
Instructions
Map one Governed Data Record to one target format. The record is validated first: valid, valid with Exceptional Values (one bad value is marked, not fatal), or refused with the reasons. Returns the output (inline, or written to output_dir), the coverage report (how every value reached the target, and what happened to every Exceptional Value), one sentence of what the target could not say, and the hash of the log entry. The model is the one the record names unless ct_id or directory is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ct_id | No | The model's identifier (CUID2) in the public catalog; the package is fetched from the host this server was started with. | |
| record | Yes | Path to the Governed Data Record's XML file on disk. | |
| target | Yes | A mapper name, as list_targets gives it. | |
| mapping | No | Path to a mapping file (YAML) for this model and target, if the model alone does not settle the mapping. | |
| directory | No | A package directory already on disk (dm-<ct>.jsonld and dm-<ct>.xsd, optionally catalog.json and versions.json). Give this or ct_id, not both. | |
| output_dir | No | Write the outputs and coverage.json here instead of returning them inline. |