Contents

This help page explains how to installextension "Semantic MediaWiki"Semantic MediaWiki (SMW) is a free, open-source extension to MediaWiki 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..

The recommended way for installing Semantic MediaWiki is by using Composer. If you for some reason cannot use Composer for installation and upgrading, you have the option to install the file release as described on this help page.

The instructions on this page to install, upgrade and update Semantic MediaWiki do not apply to the now abandoned Extension:Semantic Bundle which also uses Semantic MediaWiki. See the help page on the Semantic Bundle for how to do this.

Extension "Semantic MediaWiki"Semantic MediaWiki (SMW) is a free, open-source extension to MediaWiki 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. has dependencies that will be made available during the installation.

Individual extensions to Semantic MediaWiki may not be compatible with the "~3.0" release (yet). Please see those extensions' documentation pages, or contact the respective developers, for further information.

To upgrade a wiki running an older version of Semantic MediaWiki, be sure to read the relevant sectionbefore starting the upgrade.

If you are using MediaWiki 1.23.x and higher and/or PHP 5.4.x and higher you are strongly encouraged to install or to update to Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x. or higher. Semantic MediaWiki 2.4.6Released on 15 February 2017 and compatible with MW 1.19.0 - 1.28.x. and lower is discouraged for production use with these versions.

The ConfirmEdit2 extension is known to cause limitations in the functioning of Semantic MediaWiki when used on MediaWiki 1.26.x. You are advised to upgrade MediaWiki to version 1.27.0 or later.

Please always check the exact requirements and follow the instructions carefully. Make sure you understand the legal disclaimer in the file COPYING before proceeding.

It is required that the PHP mbstring extension is enabled (provides PHP mb_*() multibyte functions such as mb_strpos in the php_mbstring.dll). This is standard but not enabled by default on some distributions of PHP.

When using a SPARQL backend, Semantic MediaWiki and onoi/http-request requires access to the cURL functions of PHP. These functions may have to be enabled/installed to be available.

While not required (yet), it is suggested to have the PHP intl (ICU) extension enabled especially when Semantic MediaWiki is used in a UTF-8 (non-Latin) environment.

For users that require symbolic links, some information can be found here.

For installation and upgrade, Semantic MediaWiki needs the rights to create new tables (CREATE) and to alter tables (ALTER). You can remove both rights after Semantic MediaWiki is set up. The maintenance script "setupStore.php"Allows to set up the data backend/store can use the DB credentials from "LocalSettings.php" for this purpose, avoiding the need of extra rights for the wiki DB user.

When using the configuration parameter $smwgDefaultStoreSets the storage backend to be used for the semantic data set to a SQL data backend (default), Semantic MediaWiki creates and alters temporary tables for certain semantic queries. To do this, the wiki's database user account must have privileges for CREATE TEMPORARY TABLES and DROP. If you do not wish to allow such privileges, please read how to disable the use of temporary tables in "LocalSettings.php".

Compatibility information and minimum requirements for Semantic MediaWiki are listed on the information page on compatibility. Please make sure that you meet them prior to installing Semantic MediaWiki.

It is good practice that after a successful installation (together with all necessary maintenance tasks) it is tested by running automated tests in order to verify that a system works as intended but it is recommended that tests are not run on a production server.