Map columns to Darwin Core
map_to_darwin_coreWhich Darwin Core term each column of a species occurrence or checklist file maps to, by the header rules our file-to-archive converter runs before it checks values: for each column the term, the rule that decided it (exact name or alias, a word of the name, a packed coordinate pair, a grid reference), the alias that matched and where it came from, or a coded refused block saying why it stays unmapped (no term or alias matches, several columns tie for one term, another column holds the term, blank in the sample). Also names the terms GBIF requires of an occurrence or a checklist dataset that no column carries. Values are not checked here: each mapped column names the value check it must still pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | The file's header names, in order, exactly as written. | |
| sample_rows | No | Optional data rows, each an array aligned with `columns` or an object keyed by header: a column blank in every row is skipped as the converter skips it, and a column of distinct codes is named an identifier. |