Extension:WikibaseStatementUpdater

Category:Extensions without an imageCategory:GPL licensed extensions
MediaWiki extensions manual
WikibaseStatementUpdater
Release status: betaCategory:Beta status extensions
Implementation Special page Category:Special page extensions
Description Lets you update and add Wikibase statements using the QuickStatements V1 format
Author(s) Niklas Laxström (Nikerabbittalk)
Latest version 1.0.0 (20201212)
Compatibility policy Master maintains backward compatibility.Category:Extensions with master compatibility policy
MediaWiki 1.35Category:Extensions with manual MediaWiki version
PHP 7.3
Database changes Yes
Tables wsu_batch
wsu_batchlist
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgWSUClientConfig
Quarterly downloads 0
Translate the WikibaseStatementUpdater extension if it is available at translatewiki.net
Category:All extensions

Tool for both updating and adding Wikibase statements using QuickStatements V1 format. As of version 1.0.0, only properties are supported. To update an existing statement, there must only be one statement for that property. If there are multiple, no change will be done. If there is none, a new statement will be added.

Installation

  • Download and move the extracted WikibaseStatementUpdater folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseStatementUpdater
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See T173141 for potential complications.)Category:Extensions requiring Composer with git
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'WikibaseStatementUpdater' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

You need to create a consumer for this tool using Special:OAuthConsumerRegistration/propose with the following details:

  • Name (you can choose)
  • Description (up to you)
  • OAuth protocol version: 1.0a
  • Callback URL: Full path to your Special:WikibaseStatementUpdater page
  • Use as a prefix: no
  • Grants are the same as for QuickStatements and OpenRefine, basically:
    • High-volume editing
    • Edit existing pages
    • Create, edit, and move pages
$wgWSUClientConfig
Set this to an array with keys key and secret for the consumer key and secret respectively.

User rights

The extension itself does not require any user rights. It works through OAuth so the user must have permissions to update Wikibase items.

Category:Wikibase extensions
Category:All extensions Category:Beta status extensions Category:Extensions in Wikimedia version control Category:Extensions requiring Composer with git Category:Extensions with manual MediaWiki version Category:Extensions with master compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:LoadExtensionSchemaUpdates extensions Category:Special page extensions Category:Wikibase extensions