wd_rand_query: Download random Wikidata items

Description Usage Arguments Value

View source: R/queries.R

Description

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

Usage

1
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]

Value

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


WikidataR documentation built on Nov. 16, 2021, 5:07 p.m.