get_item and get_property allow you to retrieve the data associated
with individual Wikidata items and properties, respectively. As with
other WikidataR code, custom print methods are available; use str
to manipulate and see the underlying structure of the data.
Arguments
- id
the ID number(s) of the item or property you're looking for. This can be in various formats; either a numeric value ("200"), the full name ("Q200") or even with an included namespace ("Property:P10") - the function will format it appropriately. This function is vectorized and will happily accept multiple IDs.
- \dots
further arguments to pass to dehttr:ink[httr::GET]GET.
See also
get_random for selecting a random item or property,
or find_item for using search functionality to pull out
item or property IDs where the descriptions or aliases match a particular
search term.