View source: R/check_metadata.R
check_metadata | R Documentation |
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.
check_metadata(file = NULL, schema = NULL, quiet = FALSE)
file |
An EML file to check Can be either local or a URL. |
schema |
Either |
quiet |
(logical) Should messages be hidden? Defaults to |
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.
Invisibly returns a tibble showing parsed errors; or an empty tibble if no errors are identified.
source_file <- system.file("extdata",
"bionet_metadata.xml",
package = "delma")
check_metadata(source_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.