reqWDQS | R Documentation |
Retrieve responses from Wikidata Query Service (WDQS)
reqWDQS(sparql_query, format = "json", method = "GET")
sparql_query |
A string with the query in SPARQL language (SELECT query). |
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 'json'. |
method |
The method used in the httr request, GET or POST, mandatory. Default 'GET'. Use 'POST' method for long SELECT clauses. |
The response in the format selected. Please check httr::stop_for_status(response)
For short queries GET method is better, POST for long ones. Only GET queries as cached.
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.