Semantic MediaWiki

From Funtoo
Jump to: navigation, search

(Just notes for now)

# from
$ cd extensions
$ git clone
$ git clone
git clone
git clone
git clone
git clone
git clone
git clone
git clone
svn export 

cd Widgets
chmod ug+w compiled_templates
wget get http: //
tar xf Smarty-3.1.11.tar.gz
install -d smarty
cp -a Smarty-3.1.11/libs/* smarty

require_once( "$IP/extensions/Validator/Validator.php" );
include_once( "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php" );
$smwgNamespacesWithSemanticLinks[NS_ZENPACK] = true;

include_once( "$IP/extensions/SemanticForms/SemanticForms.php" );
include_once( "$IP/extensions/Maps/Maps.php" );
include_once( "$IP/extensions/SemanticMaps/SemanticMaps.php" );
include_once( "$IP/extensions/SemanticInternalObjects/SemanticInternalObjects.php" );
$wgUseAjax = true;
$wgEnableMWSuggest = true;
$wgGroupPermissions['sysop']['editwidgets'] = true;

go to: http

For installation and upgrade, SMW needs the rights to create new tables (CREATE) and to alter tables (ALTER TABLE). You can remove both rights after SMW is set up. The script SMW_setup.php can use the DB credentials from AdminSettings.php for this purpose, avoiding the need of extra rights for the wiki DB user. When using SMWSQLStore2 (the default data store for SMW), SMW creates and alters temporary tables for certain semantic queries. To do this, your wikidb user must have privileges for CREATE TEMPORARY TABLES. The according features can be disabled by adding the following to Localsettings.php:

Internal SubObjects Steps

  1. enable extension
  2. Create template for a subobject, like you normally would (CreateTemplate)
  3. Now you can add subobjects to pages with set_internal
  4. Use ask queries to display subobjects