Skip to contents

An S3 mapping_configuration is a named list of correspondences between two reference catalogues.

Construction

Use read_mapping_configuration() to read and validate mapping.yaml.

Lookup defaults and returned properties are made explicit, and correspondence-file paths become absolute.

Reading does not load catalogue rows or open correspondence files.

Structure

  • schema_version: the mapping format version.

  • catalogues: the source and target selections, naming reference configurations and their catalogues.

  • mappings: a named list keyed by target table ID, each containing a list of mapping alternatives.

  • Each alternative declares source.table, source.lookup, target lookup and returned property.

  • Optional source.property and file select the correspondence source and are mutually exclusive.

Alternatives are always stored as lists, including when the YAML uses the compact single-alternative form.

Catalogue definitions and their data are not embedded in this object.

Attributes

  • provenance: the mapping YAML's absolute path and SHA-256 sha256 checksum.

  • mapping_lookups: added to the returned copy by resolve_mapping_lookups(), with resolved lookup policies.

Use

Pass the object and named reference_configuration objects to prepare_mapping_references().

Mapping alternatives require an explicit, unambiguous selection; they are not fallbacks.

There are no class-specific S3 methods.