Semantic MediaWiki

Revision as of 02:22, August 27, 2012 by Daniel Robbins (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

(Just notes for now)

# from http://www.mediawiki.org/wiki/Extension:Validator#Git_downloads
$ cd extensions
$ git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Validator.git
$ git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticMediaWiki.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Maps.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticMaps.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticForms.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticInternalObjects.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/DataTransfer.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/CategoryTree.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Widgets.git
svn export http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SyntaxHighlight_GeSHi 

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



localsettings:
require_once( "$IP/extensions/Validator/Validator.php" );
include_once( "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php" );
enableSemantics('zenoss.org');
$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" );
include_once("$IP/extensions/DataTransfer/DataTransfer.php");
$wgUseAjax = true;
require_once("$IP/extensions/CategoryTree/CategoryTree.php");
$wgEnableMWSuggest = true;
require_once("$IP/extensions/Variables/Variables.php");
require_once("$IP/extensions/Widgets/Widgets.php");
$wgGroupPermissions['sysop']['editwidgets'] = true;


go to: http 10.0.1.128/Special:SMWAdmin

videolectures.net/eswc08_vrandecic_sw/

http://semantic-mediawiki.org/wiki/Help:Properties_and_types http://semantic-mediawiki.org/w/images/f/f1/SMW_quick_reference.png https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Quick_start_guide

http://comments.gmane.org/gmane.comp.web.wiki.semediawiki.user/12162 biowikifarm.net/meta/Help:SMWAddExtensions

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:

https://bugzilla.wikimedia.org/show_bug.cgi?format=multiple&id=33560


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

jmresearchgroup.wordpress.com/2011/08/20/using-semantic-internal-objects-to-build-dynamic-book-gallery/ rwbookclub.com/wiki/The_Master_Switch