knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
A general purpose client to work with any 'OAI-PMH' service.
The 'OAI-PMH' protocol is described at http://www.openarchives.org/OAI/openarchivesprotocol.html.
The main functions follow the OAI-PMH verbs:
GetRecord
Identify
ListIdentifiers
ListMetadataFormats
ListRecords
ListSets
Install from CRAN
install.packages("oai")
Or install the development version from GitHub
devtools::install_github("ropensci/oai")
Load oai
library("oai")
id("http://oai.datacite.org/oai")
list_identifiers(from = '2018-05-01T', until = '2018-09-01T')
count_identifiers()
list_records(from = '2018-05-01T', until = '2018-05-15T')
ids <- c("87832186-00ea-44dd-a6bf-c2896c4d09b4", "d981c07d-bc43-40a2-be1f-e786e25106ac") get_records(ids)
list_metadataformats(id = "87832186-00ea-44dd-a6bf-c2896c4d09b4")
list_sets("http://api.gbif.org/v1/oai-pmh/registry")
Identify
id("http://www.biodiversitylibrary.org/oai")
Get records
get_records(c("oai:biodiversitylibrary.org:item/7", "oai:biodiversitylibrary.org:item/9"), url = "http://www.biodiversitylibrary.org/oai")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.