check_metadata {delma} | R Documentation |
Check validity of a metadata statement
Description
In the Darwin Core standard, metadata statements are mandatory and must be
provided in Ecological Metadata Language (EML) in a file called eml.xml
. This
function applies a series of checks designed by GBIF to check the structure
of the specified xml document for consistency with the standard. Note,
however, that this function doesn't check the content of those files,
meaning a file could be structurally sound and still be lacking critical
information.
Usage
check_metadata(file = NULL, schema = NULL, quiet = FALSE)
Arguments
file |
An EML file to check Can be either local or a URL. |
schema |
Either |
quiet |
(logical) Should messages be hidden? Defaults to |
Details
This function uses local versions of dc.xsd
, eml-gbif-profile.xsd
and
eml.xsd
downloaded
from http://rs.gbif.org/schema/eml-gbif-profile/1.3/
on
2024-09-25.
Value
Invisibly returns a tibble showing parsed errors; or an empty tibble if no errors are identified.
Examples
source_file <- system.file("extdata",
"bionet_metadata.xml",
package = "delma")
check_metadata(source_file)