emld-package: emld: Ecological Metadata as Linked Data

emld-packageR Documentation

emld: Ecological Metadata as Linked Data

Description

This is a utility for transforming Ecological Metadata Language ('EML') files into 'JSON-LD' and back into 'EML.' Doing so creates a list-based representation of 'EML' in R, so that 'EML' data can easily be manipulated using standard 'R' tools. This makes this package an effective backend for other 'R'-based tools working with 'EML.' By abstracting away the complexity of 'XML' Schema, developers can build around native 'R' list objects and not have to worry about satisfying many of the additional constraints of set by the schema (such as element ordering, which is handled automatically). Additionally, the 'JSON-LD' representation enables the use of developer-friendly 'JSON' parsing and serialization that may facilitate the use of 'EML' in contexts outside of 'R,' as well as the informatics-friendly serializations such as 'RDF' and 'SPARQL' queries.

The goal of emld is to provide a way to work with EML metadata in the JSON-LD format. At it's heart, the package is simply a way to translate an EML XML document into JSON-LD and be able to reverse this so that any semantically equivalent JSON-LD file can be serialized into EML-schema valid XML.

Details

The package has only three core functions:

  • as_emld() Convert EML's xml files (or the json version created by this package) into a native R object (an S3 class called emld, essentially just a list).

  • as_xml() Convert the native R format, emld, back into XML-schema valid EML.

  • as_json() Convert the native R format, emld, into json(LD).

Author(s)

Maintainer: Carl Boettiger cboettig@gmail.com (ORCID) [copyright holder]

Authors:

See Also

Useful links:

Useful links:


emld documentation built on Nov. 21, 2025, 9:06 a.m.