Learn R Programming

europeanaR (version 0.1.0)

query_record_api: Query Record API

Description

The Record API provides direct access to the Europeana data, which is modeled using the Europeana Data Model (EDM). While EDM is an open flexible data model featuring various kind of resources and relations between them, the Record API (and the Europeana Collections Portal) supports the retrieval of a segment of EDM for practical purposes.

These "atomic" EDM segments typically contain one Cultural Heritage Object (CHO), aggregation information that connects the metadata and digital representations, and a number of contextual resources related to the CHO, such as agents, locations, concepts, and time.

Usage

query_record_api(id, path = "/record/v2", ...)

Arguments

id

string with the `RECORD_ID` in the form of `/DATASET_ID/LOCAL_ID`

path

string that indicates version of the API

...

other parameters passed as query parameters

Value

S3 object of class `europeana_record_api`. Contains the parsed content, the path, and the API response compatible with `httr` methods.

References

doerr2010europeanaeuropeanaR

httreuropeanaR

jsonliteeuropeanaR

Examples

Run this code
# NOT RUN {
#set your API key with set_key(api_key = "XXXX")
#query search API
res <- query_search_api("arioch", qf = "1712", media = TRUE)
#get results in tidy format
dat <- tidy_search_items(res)
#query records API for each item
lapply(dat$id, query_record_api)
# }

Run the code above in your browser using DataLab