wd_rand_query function

Download random Wikidata items

Download random Wikidata items

Utility wrapper for wikidata API to download random items. Used by random_item

wd_rand_query(ns, limit, ...)

Arguments

  • ns: string indicating namespace, most commonly "Main" for QID items, "Property" for PID properties
  • limit: how many random objesct to return
  • \dots: Additional parameters to supply to [httr::POST]

Returns

a download of the full wikidata objects (items or properties) formatted as nested json lists

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