Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

* Properly truncate sortkeys in TableFieldUpdater.php

The old code had two issues: it used mb_substr which counts characters and not bytes, and it was called before asking the collator to create the sortkey, which may be longer than the input.

* Update TableFieldUpdater.php

Both sortkey and sort need truncating. Using mb-safe mb_strcut for sortkey.


Failed to load latest commit information.
Latest commit message
Commit time
March 25, 2023 10:28
November 17, 2023 20:27
September 6, 2023 14:54
September 23, 2023 15:06
March 23, 2022 16:39
September 6, 2015 05:13
May 25, 2013 11:10
October 11, 2018 23:29
March 25, 2023 19:57
November 21, 2021 20:15
March 20, 2015 17:54
February 21, 2015 01:30
January 9, 2022 23:01

Semantic MediaWiki

CI Latest Stable Version Packagist download count

Semantic MediaWiki (a.k.a. SMW) is a free, open-source extension to MediaWiki – the wiki software that powers Wikipedia – that lets you store and query data within the wiki's pages.

Semantic MediaWiki is also a full-fledged framework, in conjunction with many spinoff extensions, that can turn a wiki into a powerful and flexible knowledge management system. All data created within SMW can easily be published via the Semantic Web, allowing other systems to use this data seamlessly.

For a better understanding of how Semantic MediaWiki works, have a look at deployed in 5 min and the Sesame, Fuseki triplestore video, or browse the wiki for a more comprehensive introduction.


Semantic MediaWiki requires MediaWiki and its dependencies, such as PHP.

Supported MediaWiki, PHP and database versions depend on the version of Semantic MediaWiki. See the compatibility matrix for details.


The recommended way to install Semantic MediaWiki is by using Composer. See the detailed installation guide as well as the information on compatibility.


Most of the documentation can be found on the Semantic MediaWiki wiki. A small core of documentation also comes bundled with the software itself. This documentation is minimalistic and less explanatory than what can be found on the SMW wiki. It is however always kept up to date, and applies to the version of the code it comes bundled with. The most important files are linked below.


Chatroom Twitter Facebook LinkedIn YouTube Mailing lists

Primary support channels:


Many people have contributed to SMW. A list of people who have made contributions in the past can be found here or on the wiki for Semantic MediaWiki. The overview on how to contribute provides information on the different ways available to do so.

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guidelines.


This extension provides unit and integration tests and are normally run by a continuous integration platform but can also be executed locally using the shortcut command composer phpunit from the extension base directory. A more comprehensive introduction can be found under the test section.


GNU General Public License, version 2 or later. The COPYING file explains SMW's copyright and license.