From NYC Resistor Wiki
Jump to navigation Jump to search

Semantic MediaWiki Docu


Semantic templates

Custom units

Browsing and searching

Service links

Semantic search

Inline queries

External tools

Semantic Web

RDF export

Importing vocabulary

Ontology import

SPARQL endpoint


This article provides a short guide for installing Semantic MediaWiki, also beyond the obvious task of getting it to run on your server.

Basic installation[edit]

To install Semantic MediaWiki, you first need a current release of MediaWiki, which can be obtained in various ways as described on the MediaWiki homepage. Install this software and make sure that it works as expected before installing SMW.

Semantic MediaWiki can be installed as an extension to MediaWiki, and requires only very little modifications of the basic system for optimal performance. Note, however, that Semantic MediaWiki has a different release cycle than MediaWiki, so that it might happen that the latest versions of both tools are not compatible. Details are provided within the installation notes of SMW.

Semantic MediaWiki is released more or less regularly as a tarball on SourceForge. Those stable releases are recommended for production use. The current developer version can be obtained from Wikimedia SVN. If you have Subversion installed, you can also retrieve the current developers versions with the following command:

svn co

Every release contains a file named INSTALL that provides further details. Check the exact requirements and follow the instructions carefully. The installation does no irreversible changes to your MediaWiki database (it just adds some tables that can be deleted again). However, there is currently no automated process to remove annotations from articles texts in the case that Semantic MediaWiki is to be uninstalled again, but one could achieve this with some script that eliminates annotations on editing.

Note: Advanced customizations of SMW behaviour need modifications of the file \extensions\SemanticMediaWiki\includes\SMW_Settings.php, all parameters for this file can be found at Semantic MediaWiki settings.

Suggested extensions[edit]

SMW needs only MediaWiki to run properly, but there are various extensions that are very useful in combination with the semantic features.

Simplifying usage[edit]

The Halo Extension provides means to enhance the ease of use of SMW features for a large community of technically non-savvy users and advertise the immediate benefits of semantic content. Tools like autocompletion, an ontology browser and a graphical user interface for intuitive inline query construction lower the entry barriers for using SMW.

Conditionals in templates[edit]

Semantic templates are a method for further simplifying the use of semantic annotations. However, since omitted template parameters cannot be annotated, it is useful to have some support for conditionals within the wiki. This is supplied by the ParserFunctions extension. The given page gives further details on installation.

Enabling ontology import[edit]

Help:Ontology import requires some toolkit for reading RDF documents for import. Currently we use RAP, the RDF API for PHP, which can be downloaded at Notes on using this toolkit with SMW are given in the INSTALL instructions (it boils down to extracting the files into the right directory).

Further extensions[edit] uses a number of further extensions, e.g. to prevent spam and to create inline forms. All installed extensions should be listed at Special:Version. A list of requested features can be found at Feature requests.