Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wikibaser

dataobservatory lifecycle Project Status: WIP devel-version

wikibaser

wikibaser provides a lightweight R interface to the MediaWiki Action API for working with Wikibase repositories and Wikidata.

The package aims to simplify common tasks such as:

  • authenticating with a Wikibase instance;
  • creating and editing Wikibase entities;
  • uploading files to the associated MediaWiki repository;
  • retrieving entities and file metadata; and
  • supporting simple federation workflows between Wikibase instances and Wikidata.

The package is under active development.

Installation

# install.packages("remotes")
remotes::install_github("dataobservatory-eu/wikibaser")

Example

library(wikibaser)

session <- wb_login(
  api_url = "https://example.org/w/api.php",
  username = "...",
  password = "..."
)

wb_upload_file(
  session = session,
  file = "P7101565_thumbnail.jpg",
  text = "Farmhouse (Deliņi farmstead)"
)

Status

Current development focuses on:

  • authentication;
  • MediaWiki file uploads;
  • Wikibase entity operations; and
  • simple federation tools.

Contributions, bug reports and feature requests are welcome.

About

A lightweight R interface to the MediaWiki Action API for working with Wikibase repositories and Wikidata

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages