Skip to contents

Search a term by its label in the Movebank Attribute Dictionary (MVB). Returns in order: term with matching prefLabel, matching altLabel or error when no matching term is found.

Usage

get_mvb_term(label)

Arguments

label

Label of the term to look for. Case will be ignored and -, _, . and : interpreted as space.

Value

List with term information.

See also

Other support functions: datacite_to_eml(), get_aphia_id()

Examples

get_mvb_term("animal_id")
#> $id
#> [1] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000016/"
#> 
#> $identifier
#> [1] "SDN:MVB::MVB000016"
#> 
#> $prefLabel
#> [1] "animal ID"
#> 
#> $altLabel
#> [1] "individual local identifier"
#> 
#> $definition
#> [1] "An individual identifier for the animal, provided by the data owner. Values are unique within the study. If the data owner does not provide an Animal ID, an internal Movebank animal identifier is sometimes shown. Example: 'TUSC_CV5'; Units: none; Entity described: individual"
#> 
#> $date
#> [1] "2022-08-15 10:20:18.0"
#> 
#> $version
#> [1] "3"
#> 
#> $hasCurrentVersion
#> [1] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000016/3/"
#> 
#> $hasVersion
#> [1] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000016/1/"
#> [2] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000016/2/"
#> 
#> $deprecated
#> [1] "false"
#> 
#> $note
#> [1] "accepted"
#> 

get_mvb_term("Deploy.On.Date")
#> $id
#> [1] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000081/"
#> 
#> $identifier
#> [1] "SDN:MVB::MVB000081"
#> 
#> $prefLabel
#> [1] "deploy on timestamp"
#> 
#> $altLabel
#> [1] "deploy on date"
#> 
#> $definition
#> [1] "The timestamp when the tag deployment started. Data records recorded before this day and time are not associated with the animal related to the deployment. Values are typically defined by the data owner, and in some cases are created automatically during data import. Example: '2008-08-30 18:00:00.000'; Format: yyyy-MM-dd HH:mm:ss.SSS; Units: UTC or GPS time; Entity described: deployment"
#> 
#> $date
#> [1] "2022-08-15 10:20:18.0"
#> 
#> $version
#> [1] "3"
#> 
#> $hasCurrentVersion
#> [1] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000081/3/"
#> 
#> $hasVersion
#> [1] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000081/1/"
#> [2] "http://vocab.nerc.ac.uk/collection/MVB/current/MVB000081/2/"
#> 
#> $deprecated
#> [1] "false"
#> 
#> $note
#> [1] "accepted"
#>