2017 © Pedro Peláez
 

mediawiki-extension wikibase

Structured data repository for MediaWiki

image

wikibase/wikibase

Structured data repository for MediaWiki

  • PHP
  • 2 Dependents
  • 1 Suggesters
  • 22 Forks
  • 0 Open issues
  • 100 Versions
  • 0 % Grown

The README.md


Introduction to Wikibase

Wikibase Secondary CI Scrutinizer Code Quality, (*1)

The Wikibase.git package is part of the Wikibase software and consists of multiple MediaWiki extensions and other components., (*2)

The package allows for the creation, maintenance, dissemination, and usage of structured data in MediaWiki., (*3)

High level documentation can be found on wikiba.se and mediawiki.org. Lower level documentation can be found on doc.wikimedia.org here., (*4)

Install

Wikibase depends on various composer libraries., (*5)

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)., (*6)

Then run:, (*7)

composer install

If you already ran composer install during the installation of MediaWiki, run instead:, (*8)

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., (*9)

This will install both Wikibase Client and Repo together on the same wiki., (*10)

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., (*11)

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:, (*12)

git submodule update --init

Development

Wikibase uses tools to ensure the quality of software developed. To invoke these tools, inside the Wikibase folder, run:, (*13)

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, (*14)

JavaScript

Wikibase makes use of frontend software from various eras - resulting in a heterogenous technological landscape., (*15)

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, (*16)

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., (*17)

The Versions

28/01 2014

dev-mw1.23-wmf6

dev-mw1.23-wmf6 https://www.mediawiki.org/wiki/Wikibase

Structured data repository for MediaWiki

  Sources   Download

GNU GPL v2+

The Requires

 

by The Wikidata team

wikibase wikidata wikibaselib wikibaseclient wikibaserepo

06/12 2013

dev-mw1.23-wmf5

dev-mw1.23-wmf5 https://www.mediawiki.org/wiki/Wikibase

Structured data repository for MediaWiki

  Sources   Download

GNU GPL v2+

The Requires

 

by The Wikidata team

wikibase wikidata wikibaselib wikibaseclient wikibaserepo