wikibase / wikibase
Structured data repository for MediaWiki
Installs: 10 586
Dependents: 3
Suggesters: 0
Security: 1
Stars: 128
Watchers: 23
Forks: 56
Type:mediawiki-extension
Requires
- php: >=7.4.3
- composer/installers: ^1.0.1
- data-values/common: ^1.1.0
- data-values/data-values: ^3.1.0
- data-values/geo: ^4.4.0
- data-values/interfaces: ^1.0.0
- data-values/number: ^0.12.3
- data-values/serialization: ^1.2.5
- data-values/time: ^1.1.2
- diff/diff: ^3.2.0
- monolog/monolog: ^2.0.0
- onoi/message-reporter: ~1.4
- psr/http-message: ^1.0.1
- psr/log: ^1.1.3
- psr/simple-cache: ^1.0.1
- swaggest/json-diff: ^3.11.0
- wikimedia/at-ease: ^2.0.0
- wikimedia/purtle: ^1.0.7
- wikimedia/timestamp: ^4.1.0
Requires (Dev)
- mediawiki/mediawiki-codesniffer: 44.0.0
- mediawiki/mediawiki-phan-config: 0.14.0
- mediawiki/minus-x: 1.1.3
- php-parallel-lint/php-console-highlighter: 1.0.0
- php-parallel-lint/php-parallel-lint: 1.4.0
- phpat/phpat: ^0.10.14
- phpstan/phpstan: ^1.9
- slevomat/coding-standard: ^6.4
Suggests
- ext-calendar: Needed for dumpRdf script
- dev-master
- dev-wmf/branch_cut_pretest
- dev-REL1_42
- dev-REL1_41
- dev-wmf/1.43.0-wmf.25
- dev-REL1_39
- dev-wmf/1.43.0-wmf.24
- dev-wmf/1.43.0-wmf.23
- dev-wmf/next
- dev-wmf/1.43.0-wmf.22
- dev-wmf/1.43.0-wmf.21
- dev-wmf/1.43.0-wmf.20
- dev-wmf/1.43.0-wmf.19
- dev-wmf/1.43.0-wmf.18
- dev-wmf/1.43.0-wmf.17
- dev-wmf/1.43.0-wmf.16
- dev-wmf/1.43.0-wmf.15
- dev-wmf/1.43.0-wmf.14
- dev-wmf/1.43.0-wmf.13
- dev-wmf/1.43.0-wmf.12
- dev-REL1_40
- dev-wmf/1.43.0-wmf.11
- dev-wmf/1.43.0-wmf.10
- dev-wmf/1.43.0-wmf.9
- dev-wmf/1.43.0-wmf.8
- dev-wmf/1.43.0-wmf.7
- dev-wmf/1.43.0-wmf.6
- dev-wmf/1.43.0-wmf.5
- dev-wmf/1.43.0-wmf.4
- dev-wmf/1.43.0-wmf.3
- dev-wmf/1.43.0-wmf.2
- dev-wmf/1.43.0-wmf.1
- dev-wmf/1.42.0-wmf.26
- dev-wmf/1.42.0-wmf.25
- dev-wmf/1.42.0-wmf.24
- dev-wmf/1.42.0-wmf.23
- dev-wmf/1.42.0-wmf.22
- dev-wmf/1.42.0-wmf.21
- dev-wmf/1.42.0-wmf.20
- dev-wmf/1.42.0-wmf.19
- dev-wmf/1.42.0-wmf.18
- dev-wmf/1.42.0-wmf.17
- dev-wmf/1.42.0-wmf.16
- dev-wmf/1.42.0-wmf.15
- dev-wmf/1.42.0-wmf.14
- dev-wmf/1.42.0-wmf.13
- dev-REL1_35
- dev-wmf/1.42.0-wmf.12
- dev-wmf/1.42.0-wmf.9
- dev-wmf/1.42.0-wmf.10
- dev-wmf/1.42.0-wmf.7
- dev-wmf/1.42.0-wmf.5
- dev-wmf/1.42.0-wmf.4
- dev-wmf/1.42.0-wmf.3
- dev-wmf/1.42.0-wmf.2
- dev-wmf/1.42.0-wmf.1
- dev-wmf/1.41.0-wmf.30
- dev-wmf/1.41.0-wmf.29
- dev-wmf/1.41.0-wmf.28
- dev-wmf/1.41.0-wmf.27
- dev-wmf/1.41.0-wmf.26
- dev-REL1_38
- dev-wmf/1.41.0-wmf.25
- dev-wmf/1.41.0-wmf.24
- dev-wmf/1.41.0-wmf.23
- dev-wmf/1.41.0-wmf.22
- dev-wmf/1.41.0-wmf.20
- dev-wmf/1.41.0-wmf.18
- dev-wmf/1.41.0-wmf.19
- dev-phpunit-entrypoint
- dev-wmf/1.41.0-wmf.17
- dev-wmf/1.41.0-wmf.16
- dev-wmf/1.41.0-wmf.15
- dev-wmf/1.41.0-wmf.13
- dev-wmf/1.41.0-wmf.12
- dev-wmf/1.41.0-wmf.11
- dev-wmf/1.41.0-wmf.10
- dev-wmf/1.41.0-wmf.9
- dev-wmf/1.41.0-wmf.8
- dev-wmf/1.41.0-wmf.6
- dev-wmf/1.41.0-wmf.7
- dev-wmf/1.41.0-wmf.5
- dev-wmf/1.41.0-wmf.4
- dev-wmf/1.41.0-wmf.3
- dev-wmf/1.41.0-wmf.2
- dev-wmf/1.41.0-wmf.1
- dev-wmf/1.40.0-wmf.27
- dev-wmf/1.40.0-wmf.26
- dev-dependabot/npm_and_yarn/wdio/local-runner-8.5.6
- dev-dependabot/npm_and_yarn/wdio/cli-7.30.1
- dev-dependabot/npm_and_yarn/stylelint-config-wikimedia-0.14.0
- dev-dependabot/npm_and_yarn/grunt-eslint-24.0.1
- dev-dependabot/npm_and_yarn/eslint-config-wikimedia-0.24.0
- dev-dependabot/npm_and_yarn/wdio/mocha-framework-8.4.0
- dev-dependabot/npm_and_yarn/wdio/spec-reporter-8.4.0
- dev-dependabot/npm_and_yarn/wdio/sync-7.27.0
- dev-wmf/1.40.0-wmf.25
- dev-use-exceptions-in-replace-item-statement
- dev-wmf/1.40.0-wmf.24
- dev-wmf/1.40.0-wmf.23
- dev-wmf/1.40.0-wmf.22
- dev-wmf/1.40.0-wmf.21
- dev-wmf/1.40.0-wmf.20
- dev-wmf/1.40.0-wmf.19
- dev-wmf/1.40.0-wmf.18
- dev-wmf/1.40.0-wmf.17
- dev-addshore-138-revert-test-002
- dev-wmf/1.40.0-wmf.14
- dev-dependabot/npm_and_yarn/mocha-10.2.0
- dev-wmf/1.40.0-wmf.13
- dev-wmf/1.40.0-wmf.12
- dev-REL1_37
- dev-dependabot/npm_and_yarn/api-testing-1.5.1
- dev-addshore-138-revert-test
- dev-wmf/1.40.0-wmf.10
- dev-wmf/1.40.0-wmf.9
- dev-wmf/1.40.0-wmf.8
- dev-wmf/1.40.0-wmf.7
- dev-wmf/1.40.0-wmf.6
- dev-addshore-137-revert-test
- dev-137-reverts
- dev-wmf/1.40.0-wmf.5
- dev-wmf/1.40.0-wmf.4
- dev-wmf/1.40.0-wmf.3
- dev-wmf/1.40.0-wmf.2
- dev-wmf/1.40.0-wmf.1
- dev-wmf/1.39.0-wmf.27
- dev-wmf/1.39.0-wmf.28
- dev-REL1_36
- dev-wmf/1.39.0-wmf.26
- dev-wmf/1.39.0-wmf.25
- dev-wmf/1.39.0-wmf.24
- dev-wmf/1.39.0-wmf.23
- dev-wmf/1.39.0-wmf.22
- dev-wmf/1.39.0-wmf.21
- dev-wmf/1.39.0-wmf.19
- dev-wmf/1.39.0-wmf.20
- dev-wmf/1.39.0-wmf.18
- dev-wmf/1.39.0-wmf.17
- dev-wmf/1.39.0-wmf.16
- dev-wmf/1.39.0-wmf.15
- dev-wmf/1.39.0-wmf.14
- dev-wmf/1.39.0-wmf.13
- dev-wmf/1.39.0-wmf.12
- dev-wmf/1.39.0-wmf.11
- dev-wmf/1.39.0-wmf.10
- dev-wmf/1.39.0-wmf.9
- dev-wmf/1.39.0-wmf.8
- dev-wmf/1.39.0-wmf.7
- dev-wmf/1.39.0-wmf.6
- dev-wmf/1.39.0-wmf.5
- dev-wmf/1.39.0-wmf.4
- dev-wmf/1.39.0-wmf.2
- dev-wmf/1.39.0-wmf.1
- dev-wmf/1.39.0-wmf.3
- dev-wmf/1.38.0-wmf.26
- dev-wmf/1.38.0-wmf.25
- dev-wmf/1.38.0-wmf.24
- dev-wmf/1.38.0-wmf.23
- dev-wmf/1.38.0-wmf.22
- dev-wmf/1.38.0-wmf.21
- dev-wmf/1.38.0-wmf.20
- dev-wmf/1.38.0-wmf.19
- dev-wmf/1.38.0-wmf.18
- dev-wmf/1.38.0-wmf.17
- dev-wmf/1.38.0-wmf.16
- dev-wmf/1.38.0-wmf.15
- dev-wmf/1.38.0-wmf.14
- dev-wmf/1.38.0-wmf.13
- dev-wmf/1.38.0-wmf.12
- dev-wmf/1.38.0-wmf.11
- dev-wmf/1.38.0-wmf.10
- dev-wmf/1.38.0-wmf.9
- dev-wmf/1.38.0-wmf.8
- dev-wmf/1.38.0-wmf.7
- dev-wmf/1.38.0-wmf.5
- dev-wmf/1.38.0-wmf.6
- dev-wmf/1.38.0-wmf.4
- dev-wmf/1.38.0-wmf.3
- dev-wmf/1.38.0-wmf.2
- dev-wmf/1.38.0-wmf.1
- dev-wmf/1.37.0-wmf.24
- dev-wmf/1.37.0-wmf.23
- dev-wmf/1.37.0-wmf.22
- dev-REL1_31
- dev-wmf/1.37.0-wmf.21
- dev-wmf/1.37.0-wmf.20
- dev-wmf/1.37.0-wmf.19
- dev-wmf/1.37.0-wmf.18
- dev-mergeTest
- dev-mergeDataModelLibs
- dev-wmf/1.37.0-wmf.17
- dev-wmf/1.37.0-wmf.16
- dev-wmf/1.37.0-wmf.15
- dev-wmf/1.37.0-wmf.14
- dev-wmf/1.37.0-wmf.12
- dev-wmf/1.37.0-wmf.13
- dev-wmf/1.37.0-wmf.11
- dev-wmf/1.37.0-wmf.9
- dev-wmf/1.37.0-wmf.10
- dev-wmf/1.37.0-wmf.7
- dev-wmf/1.37.0-wmf.8
- dev-wmf/1.37.0-wmf.6
- dev-wmf/1.37.0-wmf.4
- dev-wmf/1.37.0-wmf.5
- dev-wmf/1.37.0-wmf.3
- dev-wmf/1.37.0-wmf.2
- dev-wmf/1.37.0-wmf.1
- dev-wmf/1.36.0-wmf.39
- dev-wmf/1.36.0-wmf.38
- dev-wmf/1.36.0-wmf.37
- dev-wmf/1.36.0-wmf.36
- dev-wmf/1.36.0-wmf.35
- dev-wmf/1.36.0-wmf.34
- dev-wmf/1.36.0-wmf.33
- dev-wmf/1.36.0-wmf.32
- dev-wmf/1.36.0-wmf.31
- dev-wmf/1.36.0-wmf.30
- dev-wmf/1.36.0-wmf.29
- dev-wmf/1.36.0-wmf.28
- dev-wmf/1.36.0-wmf.27
- dev-wmf/1.36.0-wmf.26
- dev-wmf/1.36.0-wmf.25
- dev-wmf/1.36.0-wmf.24
- dev-wmf/1.36.0-wmf.23
- dev-wmf/1.36.0-wmf.22
- dev-wmf/1.36.0-wmf.21
- dev-wmf/1.36.0-wmf.20
- dev-wmf/1.36.0-wmf.19
- dev-wmf/1.36.0-wmf.18
- dev-wmf/1.36.0-wmf.17
- dev-wmf/1.36.0-wmf.16
- dev-WMDEREL_test
- dev-wmf/1.36.0-wmf.14
- dev-wmf/1.36.0-wmf.15
- dev-wmf/1.36.0-wmf.13
- dev-wmf/1.36.0-wmf.12
- dev-wmf/1.36.0-wmf.11
- dev-wmf/1.36.0-wmf.10
- dev-wmf/1.36.0-wmf.9
- dev-REL1_34
- dev-wmf/1.36.0-wmf.8
- dev-wmf/1.36.0-wmf.7
- dev-wmf/1.36.0-wmf.6
- dev-wmf/1.36.0-wmf.5
- dev-wmf/1.36.0-wmf.4
- dev-wmf/1.36.0-wmf.3
- dev-wmf/1.36.0-wmf.2
- dev-wmf/1.36.0-wmf.1
- dev-wmf/1.35.0-wmf.41
- dev-wmf/1.35.0-wmf.40
- dev-wmf/1.35.0-wmf.39
- dev-wmf/1.35.0-wmf.38
- dev-wmf/1.35.0-wmf.37
- dev-wmf/1.35.0-wmf.36
- dev-wmf/1.35.0-wmf.35
- dev-wmf/1.35.0-wmf.34
- dev-wmf/1.35.0-wmf.32
- dev-wmf/1.35.0-wmf.31
- dev-wmf/1.35.0-wmf.999
- dev-wmf/1.35.0-wmf.30
- dev-wmf/1.35.0-wmf.28
- dev-wmf/1.35.0-wmf.27
- dev-wmf/1.35.0-wmf.26
- dev-wmf/1.35.0-wmf.25
- dev-wmf/1.35.0-wmf.24
- dev-wmf/1.35.0-wmf.23
- dev-wmf/1.35.0-wmf.22
- dev-wmf/1.35.0-wmf.20
- dev-wmf/1.35.0-wmf.21
- dev-wmf/1.35.0-wmf.19
- dev-wmf/1.35.0-wmf.18
- dev-wmf/1.35.0-wmf.16
- dev-wmf/1.34.0-wmf.18
- dev-wmf/1.35.0-wmf.15
- dev-wmf/1.35.0-wmf.14
- dev-wmf/1.35.0-wmf.11
- dev-wmf/1.35.0-wmf.10
- dev-wmf/1.35.0-wmf.8
- dev-REL1_32
- dev-REL1_33
- dev-wmf/1.35.0-wmf.5
- dev-wmf/1.35.0-wmf.4
- dev-wmf/1.35.0-wmf.3
- dev-wmf/1.35.0-wmf.2
- dev-wmf/1.35.0-wmf.1
- dev-wmf/1.34.0-wmf.25
- dev-wmf/1.34.0-wmf.24
- dev-wmf/1.34.0-wmf.23
- dev-wmf/1.34.0-wmf.22
- dev-wmf/1.34.0-wmf.21
- dev-wmf/1.34.0-wmf.20
- dev-wmf/1.34.0-wmf.19
- dev-wmf/1.34.0-wmf.17
- dev-wmf/1.34.0-wmf.16
- dev-wmf/1.34.0-wmf.15
- dev-wmf/1.34.0-wmf.14
- dev-wmf/1.34.0-wmf.13
- dev-REL1_30
- dev-REL1_29
- dev-REL1_28
- dev-EntityIdRdfBuilder
- dev-REL1_27
- dev-REL1_26
- dev-rm-args
- dev-REL1_25
- dev-REL1_24
- dev-ndm
- dev-REL1_23
- dev-jenkinstest
- dev-cloudbees-testing
- dev-REL1_22
- dev-REL1_21
This package is auto-updated.
Last update: 2024-10-03 23:31:05 UTC
README
Introduction to Wikibase
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.
Install
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
Development
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
JavaScript
Wikibase makes use of frontend software from various eras - resulting in a heterogenous technological landscape.
Some notable (not a comprehensive list) mentions are
- the use of ResourceLoader to
- allow for concatenation and minification of code neatly organized in separate files
- translate less to CSS
- model module inter-dependencies
- handle delivery to the client through MediaWiki
- use of the Javascript interfaces exposed by MediaWiki; e.g.
mw.hook
in EntityInitializer - frontend components making heavy use of jQuery; e.g. for so called experts
- the use of qunit to test this code; e.g. in
repo/tests/qunit
, available via a special page - vue.js as a frontend framework; e.g. in data-bridge, the Lexeme extension, and termbox
Adding language code support in Wikibase
To add support for a new language code (for labels or monolingual text) please refer to the detailed documentation.