Wikibase Suite (WBS)

Wikibase Suite (WBS) QuickStatements Docker Image

QuickStatements is a tool to batch-edit Wikibase.

This image contains QuickStatements and the required Magnustools library. It is ready to be connected to MediaWiki OAuth on a Wikibase Docker Image.

💡 This image is part of Wikibase Suite (WBS), which provides everything you need to run a Wikibase instance on your own server. For an integrated setup, see the docker-compose.yml file in the full Wikibase Suite (WBS) configuration.

Setup

1) Provision the supporting services and configuration

2) Set the environment variables

Variables in bold are required.

Variable Default Description
WIKIBASE_PUBLIC_URL   Host and port of Wikibase as seen by the user’s browser (required)
QUICKSTATEMENTS_PUBLIC_URL   Host and port of QuickStatements as seen by the user’s browser (required)
OAUTH_CONSUMER_KEY   OAuth consumer key (from MediaWiki), required on initial setup, stored in /quickstatements/data.
OAUTH_CONSUMER_SECRET   OAuth consumer secret (from MediaWiki), required on initial setup, stored in /quickstatements/data.
WB_ITEM_NAMESPACE 120 Wikibase Item namespace
WB_PROPERTY_NAMESPACE 122 Wikibase Property namespace
WB_ITEM_PREFIX “Item:” Wikibase Item prefix
WB_PROPERTY_PREFIX “Property:” Wikibase Property prefix
PHP_TIMEZONE “UTC” setting of php.ini date.timezone
LANGUAGE_CODE “en” Site language
SITENAME “wikibase” Site name

Troubleshooting

Known limitations

QuickStatements’ “Run in background” option is not supported by this image.

QuickStatements’ “Batches” require a database and are not supported by this image.

OAuth errors

If you see an error such as mw-oauth exception when trying to log in, check that you have passed the correct consumer token and secret token to QuickStatements.

If you have changed the value of $wgSecretKey or $wgOAuthSecretKey since you made the consumer, you’ll need to make another new consumer or reissue the secret token for the old one.

Internal filesystem layout

The following paths can be used to extend this image. See the Dockerfile for its source.

Path Description
/var/www/html/quickstatements Base QuickStatements directory
/var/www/html/quickstatements/public_html The Apache root folder
/var/www/html/magnustools Base magnustools directory
/templates/config.json Template for QuickStatements’ config.json (substituted to /var/www/html/quickstatements/public_html/config.json in entrypoint.sh)
/templates/oauth.ini Template for QuickStatements’ oauth.ini (substituted to /quickstatements/data/oauth.ini in entrypoint.sh)
/templates/php.ini PHP config (default provided sets date.timezone to prevent php complaining substituted to /usr/local/etc/php/conf.d/php.ini in entrypoint.sh )

Releases

Official releases of this image can be found on Docker Hub wikibase/quickstatements.

See the image changelog for release notes. Documentation at previous releases is preserved in the repository under the corresponding quickstatements@… tag.

This image uses the shared tag format for WBS Docker Images. See WBS Versions.

Authors & contact

This image is maintained by the Wikibase Suite Team at Wikimedia Germany (WMDE).

If you have questions not listed above or need help, use this bug report form to start a conversation with the engineering team.