list_properties function

List properties of a Wikidata item

List properties of a Wikidata item

for a downloaded wikidata item, list the properties of all statements

list_properties(item, names = FALSE)

Arguments

  • item: a list of one or more Wikidata items returned with get_item.
  • names: a boolian for whether to return property names, or just P numbers and extract.

Returns

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.

Examples

# Get item data adams_data <- get_item("42") # Get claim data claims <- extract_claims(adams_data, "P31")
  • Maintainer: Thomas Shafee
  • License: MIT + file LICENSE
  • Last published: 2021-11-16