lookup: Resolve a minid by identifier or file name

Description Usage Arguments Details Value Examples

View source: R/minidtools.R

Description

Query the minid server specified in the configuration object to retrieve minid metadata about an identifier or file.

Usage

1
lookup(query, server = "http://minid.bd2k.org/minid", algo = "md5")

Arguments

query

the minid to look up, specified by identifier (e.g. "ark:/57799/b9j69h" or "minid:b9j69h") or file name (e.g. "file:./some/file.RDa")

server

the minid resolution server. Can be obtained from configuration object with server(config). Default = "http://minid.bd2k.org/minid" (see also load_configuration)

algo

the hashing algorighm to use for file-based minid lookups (default "md5")

Details

NOTE: lookup currently supports minids of the form "ark:/57799/b9j69h" or "mind:b9j69h"

Value

An object of type "minid" or an error if the lookup fails

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

my_minid <- lookup(query = "ark:/57799/b9j69h", server = server(config))
my_minid <- lookup(query = "minid:b9j69h", server = server(config))
my_minid <- lookup(query = "file:./some/file.RDa", algo = "md5",
                   server = server(config))


## End(Not run)

bheavner/minidtools documentation built on Aug. 3, 2020, 4:05 a.m.