get_pids: Get pids

Description Usage Arguments Examples

Description

This function takes a package DOI and optionally, a data URL and returns the associated pids. Alternative to url_to_pid(), based on arcticdatautils::get_package().

Usage

1
get_pids(pkg_doi, data_url = NULL)

Arguments

pkg_doi

(character) The package DOI, or the metadata object PID on a DataONE member node #TODO: figure out terminology

data_url

(character) Optional. The URL to the data object on a DataONE member node. If the data_url is passed, only the specified data object PIDs will be returned

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#get all pids in the data package
get_pids("https://doi.org/10.6073/pasta/cd7ec5009430eb78f464a66f6794579f")
#return only pids related to the specified data object
get_pids("doi:10.18739/A2PC2T79B", 
         "https://cn.dataone.org/cn/v2/resolve/urn:uuid#' :a81f49db-5841-4095-aee2-b0cad7a35cc0")
get_pids("https://doi.org/10.6073/pasta/cd7ec5009430eb78f464a66f6794579f", 
         "https://portal.lternet.edu/nis/dataviewer?packageid=knb-lter-luq.107.9996700&entityid=6c2bcaf6cdd5b365a51b1d3318f93eef")

## End(Not run)

isteves/dataimport documentation built on May 7, 2019, 8:39 a.m.