the-qa-company / WikibaseSync

Library to copy entities from one Wikibase to another and to keep them in sync
MIT License
30 stars 8 forks source link
pywikibot wikibase wikidata

WikibaseSync documentation

This is an open-source project developed by The QA Company.

You can use this project to sync Wikidata Items and Properties with your arbitrary Wikibase.

This tool is actively used at https://linkedopendata.eu.

Features

Installation remarks

This is just a standard setup of the python repo using virtual enviroments

Setup

This is the standard procedure to create a Bot Account on Wikibase. The Account is responsible for making the edits.

  1. Login in the Wikibase instance (for example using the admin account)
  2. Go to "Special Pages" -> "Bot passwords" and type the name of your bot (for example WikidataUpdater)
  3. Give him the follwing rights: "High-volume editing", "Edit existing pages" and "Create, edit, and move pages"
  4. Copy your username in "user-config.py"
  5. Copy your username, the name of the bot and the password in "user-password.py"
  6. Update the application.config.ini [config/application.config.ini]

Application config

Define the Wikibase properties in this file.

application.config.ini

located in config/application.config.ini in the repository

Customize this file based on your Wikibase properties. Check the example properties below (it matches the default properties of a Wikibase Docker installation)

[wikibase]
user = admin
sparqlEndPoint = http://localhost:8834/proxy/wdqs/bigdata/namespace/wdq/sparql
domain = localhost:80
protocol = http
apiUrl= http://localhost:80/w/api.php
entityUri=http://wikibase.svc/entity
propertyUri=http://wikibase.svc/prop

Usage