Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full EML metadata to read_data() return object #141

Open
clnsmth opened this issue Aug 23, 2022 · 0 comments
Open

Add full EML metadata to read_data() return object #141

clnsmth opened this issue Aug 23, 2022 · 0 comments

Comments

@clnsmth
Copy link
Contributor

clnsmth commented Aug 23, 2022

Metadata is an integral part of ecocomDP data discovery and use.

While information-rich metadata is available to end users in the EDI and NEON data portals, it's not available in the R environment. Additionally, read_data() returns sparse and incomplete metadata with an inconsistent format in the EDI and NEON implementations.

Because EDI and NEON both publish detailed metadata in the EML standard, it should be possible to include it in the metadata field of the read_data() return object. While the EDI use case can be solved by simply reading in the EML from the archived L1 data package and attaching it to the read_data() return object, in NEON's case, we'll need to create EML "on-the-fly" during the L0-to-L1 mapping process since some returned metadata values are informed by user supplied arguments to read_data() (e.g. temporalCoverage, geographicCoverage, and taxonomicCoverage).

Returning EML metadata as an XML document, via xml2::xml_read(), facilitates working with XML and conversion to other user preferred representations (e.g. a native list object via emld::as_emld() or JSON-LD via emld::as_json()).

@sokole, how does this sound? What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant