If you are running a copy of Wikibase, we have split out data model code from WikibaseLib into a separate extension. (which can be used independent of MediaWiki)

You need to have the WikibaseDataModel extension in the extensions directory. It will automatically be loaded by Wikibase.


If you are missing WikibaseDataModel, then you may see an error:

Fatal error: Class 'Wikibase\EntityId' not found

Additionally, the WikibaseQuery, WikibaseQueryEngine and WikibaseDatabase components have been split into separate extensions. These are only needed for the newest experimental query stuff.


To make things easier, Wikibase has a composer.json file to manage the dependencies and you can use that, if you like.

Katie Filbert
Wikidata Developer

Wikimedia Germany e.V. | NEW: Obentrautstr. 72 | 10963 Berlin
Phone (030) 219 158 26-0


Wikimedia Germany - Society for the Promotion of free knowledge eV Entered in the register of Amtsgericht Berlin-Charlottenburg under the number 23 855 as recognized as charitable by the Inland Revenue for corporations I Berlin, tax number 27/681/51985.