Wikibase RDF

Define RDF mappings for Wikibase Entities.

Mapping RDF to Wikibase

On this page

External links

RDF for Wikibase

Define custom RDF mappings for Wikibase entities to better integrate with the Semantic Web

Professional Wiki created Wikibase RDF. We are Wikibase developers that provide professional Wikibase software development and Wikibase hosting.

We thank die Wikibase Stakeholder Group for funding initial development.

Nutzungsdokumentation

When the extension is enabled, Item and Property pages show a "Mapping to other ontologies" section. This section is located in between the "In more languages" and "Statements" sections.

Mapping RDF to Wikibase

Users with editing permissions can add, edit or remove mappings.

A mapping consists of a predicate and a URL. The predicate can only be one out of a preconfigured set of values. The URL has to be a valid URL.

Edit mapping

Mapping predicates can be configured via the MediaWiki:MappingPredicates page by anyone with interface-admin permissions. You can also configure mapping predicates via PHP Configuration.

Configuration page Edit configuration page

REST API

This extension provides REST API endpoints for getting and setting the RDF mappings for a Wikibase entity.

For more information, refer to the REST API documentation.

Installation

Requirements

Load and enable

Load the extension using Composer:

COMPOSER=composer.local.json composer require --no-update professional-wiki/wikibase-rdf:~1.0

Enable the extension by adding the following to your LocalSettings.php:

wfLoadExtension( 'WikibaseRDF' );

You can verify the installation by checking your wiki's Special:Version page.

Konfiguration

Configuration can be changed via LocalSettings.php.

Allowed predicates

List of allowed predicates.

Variable: $wgWikibaseRdfPredicates

Default: []

Example:

$wgWikibaseRdfPredicates = [
    'owl:sameAs',
    'owl:SymmetricProperty',
    'rdfs:subClassOf',
    'rdfs:subPropertyOf',
];

You can also configure what predicates are allowed via the MediaWiki:MappingPredicates page.

Wikibase Hosting

Get started quickly with Wikibase via tailored Wikibase hosting or Wikibase cloud hosting.
Both include Wikibase RDF and many other MediaWiki extensions.

Wikibase configuration section on the ProWiki Admin Panel

Weitere MediaWiki-Erweiterungen

View all our extensions

Professionelle MediaWiki-Dienstleistungen

MediaWiki services by the authors of Wikibase RDF