Makes a POST request to Wikidata Query Service SPARQL endpoint.
query_wikidata(sparql_query, format = c("simple","smart"))
Arguments
sparql_query: SPARQL query (can be a vector of queries)
format: "simple" uses CSV and returns pure character data frame, while "smart" fetches JSON-formatted data and returns a data frame with datetime columns converted to POSIXct
Returns
A tibble data frame
Query limits
There is a hard query deadline configured which is set to 60 seconds. There are also following limits:
One client (user agent + IP) is allowed 60 seconds of processing time each 60 seconds