md_getrecord: Get a record from a OAI-PMH data provider.

View source: R/md_getrecord.r

md_getrecordR Documentation

Get a record from a OAI-PMH data provider.

Description

Get records for the data sources from the OAI-PMH list, and others not on that list, including PMC, DataCite, Hindawi Journals, Dryad, and Pensoft Journals.

Usage

md_getrecord(provider = NULL, identifier = NULL,
  metadataPrefix = "oai_dc", fuzzy = FALSE, brief = TRUE)

Arguments

provider

The metadata provider.

identifier

The OAI-PMH identifier for the record.

metadataPrefix

Specifies the metadata format that the records will be returned in.

fuzzy

Do fuzzy search or not (default FALSE). Fuzzy uses agrep.

brief

Give brief results (just a subset of columns)

Details

To query multiple different identifier's from a single provider, just pass in multiple identifiers like c("identifier1", "identifier2"). To query identifiers from different providers, just use separate calls to md_getrecord.

Author(s)

Scott Chamberlain myrmecocystus@gmail.com

See Also

md_identify, md_listidentifiers, md_listmetadataformats, md_listrecords, md_listsets, count_identifiers

Examples

## Not run: 
# Single provider, one identifier
md_getrecord(provider = "pensoft", identifier = "10.3897/zookeys.1.10")

# Single provider, multiple identifiers
md_getrecord(provider = "pensoft", identifier = c("10.3897/zookeys.1.10","10.3897/zookeys.4.57"))

# More than one provider found - or just easier than typing in
# the whole provider name - Choose 15
md_getrecord(provider = "advances",
             identifier = "oai:ojs.www.academypublisher.com:article/5460",
             fuzzy=TRUE)

## End(Not run)

ropensci/rmetadata documentation built on May 18, 2022, 6:41 p.m.