annotate_element: Annotate an EML element

View source: R/annotate_eml.R

annotate_elementR Documentation

Annotate an EML element

Description

This is a helper function for annotate_eml().

Usage

annotate_element(element, eml, anno, rp)

Arguments

element

(character) Element to be annotated

eml

(emld list) EML to be annotated

anno

(data.frame) The annotations.txt template

rp

(data.frame) The responsibleParty table

Details

Match annotatable elements (subjects) to their annotations listed in the annotations.txt template. Target EML sub-trees where the subjects occur, extract their values and, when not unique, their context, then use these as keys to annotations.txt from which IDs and predicate + object annotations are retrieved and assigned to the EML. Annotatable elements only supported through ID references are added to /eml/dataset/annotations (e.g. ResponsibleParty).

Value

eml

emld list object being annotated


EDIorg/EMLtools documentation built on Nov. 1, 2022, 9:38 a.m.