w_query | R Documentation |
Retrieve responses from Wikidata Query Service (WDQS). Uses ratelimitr if param limitRequester = TRUE.
w_query(sparql_query, format = "csv", method = "GET", limitRequester = FALSE)
sparql_query |
A string with the query in SPARQL language. |
format |
A string with the query response format. Mandatory. See https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual#SPARQL_endpoint. Only 'json', 'xml' or 'csv' formats are allowed, default 'csv'. |
method |
The method used in the httr request, GET or POST, mandatory. Default 'GET'. |
limitRequester |
If True, uses ratelimitr to limit the requests. |
The response in selected format or NULL on errors.
Angel Zazo, Department of Computer Science and Automatics, University of Salamanca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.