(Cross-posted to Discovery and Wikidata lists.)
Hi all! I just wanted to make a quick and brief announcement that there's
now a way to use WDQS API from R with my new WikidataQueryServiceR
package[1], inspired by Oliver Keyes' WikipediR[2] and WikidataR[3]
packages.
Current 0.0.3 release supports:
- Sending one or more SPARQL queries and getting back a data.frame (or a
list of data.frames)
- Scraping examples page[4] and extracting SPARQL query/queries
I'll give it a few days to see if I or anyone else comes across any bugs or
usability issues (please report those at [5]) and then I'll submit it to
Comprehensive R Archive Network (CRAN).
Cheers,
Mikhail Popov // Count Logula
Discovery, Wikimedia Foundation
[1]
https://github.com/bearloga/WikidataQueryServiceR
[2]
https://github.com/Ironholds/WikipediR
[3]
https://github.com/Ironholds/WikidataR
[4]
https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
[5]
https://github.com/bearloga/WikidataQueryServiceR/issues