sparql_query function

Download full Wikidata items matching a sparql query

Download full Wikidata items matching a sparql query

Utility wrapper for wikidata spargle endpoint to download items. Used by get_geo_entity and get_geo_box

sparql_query(query, ...)

Arguments

  • query: the sparql query as a string
  • \dots: Additional parameters to supply to [httr::POST]

Returns

a download of the full wikidata objects formatted as a nested json list

  • Maintainer: Thomas Shafee
  • License: MIT + file LICENSE
  • Last published: 2021-11-16