query_record_api: Query Record API

View source: R/query_record_api.R

query_record_apiR Documentation

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.

Source

https://pro.europeana.eu/page/record

References

\insertRef

doerr2010europeanaeuropeanaR

\insertRef

httreuropeanaR

\insertRef

jsonliteeuropeanaR

Examples



#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)



AleKoure/europeanaR documentation built on June 11, 2022, 4:29 p.m.