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

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.

Wikibase configuration section on the ProWiki Admin Panel

More MediaWiki Extensions

View all our extensions

Professional MediaWiki Services

MediaWiki services by the authors of Semantic Wikibase

Software Development icon
Software Development

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

Theme Development icon
Theme Development

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

MediaWiki Hosting icon
MediaWiki Hosting

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

MediaWiki Consulting icon
MediaWiki Consulting

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

MediaWiki Migration icon
MediaWiki Migration

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

MediaWiki Upgrades icon
MediaWiki Upgrades

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