extract_claims: Extract Claims from Returned Item Data
Description
extract claim information from data returned using
get_item.
Usage
extract_claims(items, claims)
Arguments
items
a list of one or more Wikidata items returned with
get_item.
claims
a vector of claims (in the form "P321", "P12") to look for
and extract.
Value
a list containing one sub-list for each entry in items,
and (below that) the found data for each claim. In the event a claim
cannot be found for an item, an NA will be returned
instead.