Semantic MediaWiki under Debian
Installing Semantic MediaWiki (SMW) under Debian
Installation consists of these simple steps:
1) Use Aptitude to install package mediawiki-semediawiki (under Lenny that's version 1.2-1)
2) Add the following lines to your LocalSettings.php (conveniently located at /etc/mediawiki:
include_once("$IP/extensions/SemanticMediaWiki/includes/SMW_Settings.php"); enableSemantics('dworkin.saruman.biz');
Actually, the string for enableSemantics is an identifier, needed to identify any exported data. The Semantic MediaWiki website suggests using the server's host name for this purpose (if you have multiple hostnames, just pick any one of them).
3) Adjust your namespaces - since we haven't modified the MediaWiki namespaces relative to the original Debian installation, we don't need that.
4) Setup the SMW tables in the MySQL database. To this end, we simply go to