commit | 5e834e427bcea91c3e4867fad70c2f4968063a96 | [log] [tgz] |
---|---|---|
author | Jakob Warkotsch <jakob.warkotsch@wikimedia.de> | Mon Jul 08 17:30:47 2024 +0200 |
committer | Jakob Warkotsch <jakob.warkotsch@wikimedia.de> | Mon Jul 08 17:36:04 2024 +0200 |
tree | afcfcb181783dc6812f284729df133db2e89dad3 | |
parent | c80aab7c7bd42bee88e2cda736543eb83623b226 [diff] |
REST: Replace invalid-alias error with invalid-value Bug: T369036 Change-Id: I1af19ae426d85af5509c66cd83eaa04ee0f4702d
The Wikibase.git package is part of the Wikibase software and consists of multiple MediaWiki extensions and other components.
The package allows for the creation, maintenance, dissemination, and usage of structured data in MediaWiki.
High level documentation can be found on wikiba.se and mediawiki.org. Lower level documentation can be found on doc.wikimedia.org here.
Wikibase depends on various composer libraries.
Once you have Wikibase in your MediaWiki extensions directory, go to the root of your MediaWiki folder, and if composer.local.json
does not yet exist there, copy composer.local.json-sample
to composer.local.json
(see MediaWiki's Composer documentation).
Then run:
composer install
If you already ran composer install
during the installation of MediaWiki, run instead:
composer update
When using ways to combine MediaWiki with the extension folders (e.g. symlinks or docker volumes) please make sure that the folders are available to composer in the same structure they are available to the webserver, too.
This will install both Wikibase Client and Repo together on the same wiki.
If you want to only have one or the other, then set $wgEnableWikibaseRepo = false
or $wgEnableWikibaseClient
to false for the one you don't want to enable.
Wikibase also depends on several JavaScript libraries. They are included in this repository as submodules. To fetch files of these libraries, you might need to run, in the Wikibase extension folder, the following command:
git submodule update --init
Wikibase uses tools to ensure the quality of software developed. To invoke these tools, inside the Wikibase folder, run:
composer install composer run-script test
As this uses development dependencies and custom configuration, executing it from the MediaWiki root folder (via
composer run-script test extensions/Wikibase
) will not work satisfactorily
Wikibase makes use of frontend software from various eras - resulting in a heterogenous technological landscape.
Some notable (not a comprehensive list) mentions are
mw.hook
in EntityInitializerrepo/tests/qunit
, available via a special pageTo add support for a new language code (for labels or monolingual text) please refer to the detailed documentation.