Semantic Wikibase
Make Wikibase items and properties available in Semantic MediaWiki
On this page
External links
Semantic Wikibase for Wikibase
Use Wikibase data in your Semantic MediaWiki.
Allows you to get the best of both worlds. Data added in the form of Wikibase items and properties is automatically made available in Semantic Mediawiki (SMW). This means you can use it with all SMW functionality, such as embedded visualizations, autocompletion in forms, export in RDF/JSON/CSV/etc and more.
Professional Wiki created Semantic Wikibase. We are Wikibase developers that provide professional Wikibase software development and Wikibase hosting.
We thank Frans AL van der Horst for funding initial development.
Usage documentation
Data part of Wikibase Items and properties gets translated to Semantic MediaWiki property value pairs.
Labels, descriptions, IDs, etc
Translated data in the form Wikibase datamodel element => SMW property name (SMW property type)
- EntityId => Wikibase ID (Text)
- Labels => Wikibase label (Monolingual text)
- Descriptions => Wikibase description (Monolingual text)
- Aliases => Wikibase alias (Monolingual text)
Statements
When a statement is translated, only the value of the "main snak" is stored in SMW.
The SMW property name is the ID of the Wikibase property, for instance P42
.
The label of the Wikibase property gets added as alias.
This means both [[P42::+]]
and [[Capital city::+]]
are valid in SMW queries.
Deprecated statements are never translated. Normal statements are not translated if there are preferred statements. The SMW property type is based on the Wikibase property type. Only statements with a supported property type are translated.
Supported property types
Wikibase name (en) | SMW name (en) | Wikibase id | SMW id |
---|---|---|---|
Commons media file | Text | commonsMedia |
_txt |
External identifier | External identifier | external-id |
_eid |
Geographic coordinates | Geographic coordinates | globe-coordinate |
_geo |
Item | Page | wikibase-item |
_wpg |
Monolingual text | Monolingual text | monolingualtext |
_mlt_rec |
Point in time | Date | time |
_dat |
Property | Page | wikibase-property |
_wpg |
Quantity | Subobject (Page + Record) | quantity |
_wpg + _rec |
String | Text | string |
_txt |
URL | URL | url |
_uri |
Currently not supported types:
- Entity Schema (
entity-schema
) - Geographic shape (
geo-shape
) - Tabular Data (
tabular-data
)
Installation
Requirements
- PHP 7.4 or later
- MediaWiki 1.35 or later
- Semantic MediaWiki
- Wikibase Repository
Load and enable
Load the extension using Composer:
COMPOSER=composer.local.json composer require --no-update professional-wiki/semantic-wikibase:*
Enable the extension by adding the following to your LocalSettings.php:
wfLoadExtension( 'SemanticWikibase' );
You can verify the installation by checking your wiki's Special:Version page.
Wikibase Hosting
Check out our
tailored Wikibase hosting
and
Wikibase cloud hosting
services.
Both include Semantic Wikibase and many other MediaWiki extensions.

More MediaWiki Extensions
Professional MediaWiki Services
MediaWiki services by the authors of Semantic Wikibase

Get superior results from the best MediaWiki developers with a proven track record of creating MediaWiki extensions & integrations.

Make your wiki look great! Use a time-tested responsive MediaWiki theme, or have us create a custom MediaWiki skin for you.

Let us take care of your wiki. We are MediaWiki hosting experts and provide cloud hosting, dedicated hosting, and on-premise hosting.

Bring your wiki to the next level by leveraging our MediaWiki expertise. From strategic planning to wikitext, we have you covered.

Migrate your wiki with confidence. We move your MediaWiki to a new home, or we help you migrate from another system to MediaWiki.

Keep your MediaWiki up-to-date and secure. We offer MediaWiki maintenance services to keep your wiki running smoothly.