Wikibase RDF
Define RDF mappings for Wikibase Entities.

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 the Wikibase Stakeholder Group for funding initial development.
Usage documentation
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.

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.

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.


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
- PHP 8.1 or later
- MediaWiki 1.39 or later
- Wikibase Repository
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.
Configuration
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
Check out our
tailored Wikibase hosting
and
Wikibase cloud hosting
services.
Both include Wikibase RDF and many other MediaWiki extensions.

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

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.