Checks each component of a QWAmetadata object, as the final check of the
metadata before a submission. Aborts if the object is not a valid
QWAmetadata or if IDs in $sites, $trees, $woodpieces or $slides
are not unique. Warns (or, with strict = TRUE, aborts) on:
a missing component required at the object's stage (see
is_submission());values violating the JSON schema of the stage;
duplicate values in columns that must be unique (e.g.
email,site_name);not exactly one contact person, or
author_nrnot numbering the authors from 1 to n;country codes not in ISO 3166-1 alpha-2;
species codes not in the ITRDB list, or species columns of
$treesnot matching their code;template placeholders left in the dataset
description;IDs or derived values (counts, parent labels,
species_code) in the hierarchical tables not matching$images(resync withupdate_QWAmetadata());issues in
$images, seecheck_QWAimages().
Arguments
- x
A QWAmetadata object.
- strict
If
TRUE, abort on the first issue instead of warning.