Audit a published Darwin Core archive
audit_archiveA file this tool reads, sent or fetched from the address given, is read as one dropped on our website: what the read finds (column headings, the shape of its rows, the terms they became, refusal codes) is kept so the reader learns, never the file or its values. Names and contacts are dropped or replaced by a code, and protected species' locations are made coarser. What is wrong with a Darwin Core archive already published on GBIF? The defects in a published Darwin Core archive, found by the audit our website runs on an archive dropped on it: give a GBIF dataset key (the archive is fetched from the endpoint GBIF's registry lists), the archive's address, or the archive itself as base64. Each defect is coded (FS_...), with the check that found it (each check's words once, in checks; a finding names it by index), its count over the rows read, and the file and lines it stands on (at most 5 lines a finding; not_located says why when a check names neither a cell nor a row). bdq names every test of TDWG's BDQ TG2 suite: ran, with compliant and not_compliant counts and lines, or not run under a code (bdq.terms_absent, bdq.authority_absent, bdq.does_not_reproduce, bdq.not_implemented): a test not run is not a test passed. annex: true adds the audit as a markdown document to attach to a report. A large archive answers pending with a call_id: call again with only that call_id to collect it. Refusals are coded: dataset.not_found, dataset.no_archive, archive.unreachable, archive.not_dwca, archive.too_large, url.refused.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The http(s) address of a Darwin Core archive: an IPT's archive.do?r=..., a .zip (up to 200 MB). | |
| annex | No | Also return the audit as a markdown document (a data quality annex). | |
| call_id | No | Only after a `pending` answer: its call_id, to collect the audit without naming the archive again. | |
| filename | No | With content_base64: the archive's file name. | |
| gbif_dataset | No | A GBIF dataset key (a UUID, as in gbif.org/dataset/<key>). | |
| content_base64 | No | The archive's bytes, base64-encoded (at most 10 MB of zip; a larger one by its url). |