API Client Library for 'Wikidata'

An API client for the Wikidata < http://wikidata.org/> store of semantic data.


An R API wrapper for the Wikidata store of semantic data.

Author: Oliver Keyes, Serena Signorelli & Christian Graul
License: MIT
Status: Stable

Travis-CI Build Statusdownloads

Description

WikidataR is a wrapper around the Wikidata API. It is written in and for R, and was inspired by Christian Graul's rwikidata project. For details on how to best use it, see the explanatory vignette.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Installation

For the most recent CRAN version:

install.packages("WikidataR")

For the development version:

library(devtools)
devtools::install_github("ironholds/WikidataR")

Dependencies

News

1.4.0

  • extract_claims() allows you to, well, extract claims.
  • SPARQL syntax bug with some geo queries now fixed (thanks to Mikhail Popov)

1.3.0

  • get_* functions are now vectorised

1.2.0

  • geographic data for entities that exist relative to other Wikidata items can now be retrieved with get_geo_entity and get_geo_box, courtesy of excellent Serena Signorelli's excellent QueryWikidataR package.

  • A bug in printing returned objects is now fixed.

1.1.0

  • You can now retrieve multiple random properties or items with get_random_item and get_random_property

1.0.1

  • Various documentation and metadata improvements.

1.0.0

  • Fix a bug in get_* functions due to a parameter name mismatch
  • Print methods added by Christian Graul

0.5.0

  • This is the initial release! See the explanatory vignettes.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("WikidataR")

1.4.0 by Oliver Keyes, 2 years ago


https://github.com/Ironholds/WikidataR/issues


Report a bug at https://github.com/Ironholds/WikidataR/issues


Browse source code at https://github.com/cran/WikidataR


Authors: Oliver Keyes [aut, cre] , Serena Signorelli [aut, cre] , Christian Graul [ctb] , Mikhail Popov [ctb]


Documentation:   PDF Manual  


Task views: Web Technologies and Services


MIT + file LICENSE license


Imports httr, jsonlite, WikipediR, utils

Suggests testthat, knitr, pageviews


Imported by wikitaxa.

Suggested by WikipediR, pageviews.


See at CRAN