A schema is an xml document that maps the files and field names in a DwCA.
This map makes it easier to reconstruct one or more related datasets so that
information is matched correctly. It works by detecting column names on csv
files in a specified directory; these should all be Darwin Core terms for
this function to produce reliable results. This function assumes that the
publishing directory is named "data-publish"
. This function is primarily
internal and is called by build_archive()
, but is exported for clarity
and debugging purposes.
Value
Does not return an object to the workspace; called for the side effect of building a schema file in the publication directory.
Details
To be compliant with the Darwin Core Standard, the schema file must be
called meta.xml
, and this function enforces that.
See also
build_archive()
which calls this function.