Help:Semantic Result Formats

From semantic-mediawiki.org

Jump to: navigation, search

Semantic Result Formats is an extension to Semantic MediaWiki that bundles a number of further result formats for inline queries. The individual formats can be added to the installation independently.

Currently, the following formats are included:

Download

Semantic Result Formats can be obtained in two ways:

  • download via the MediaWiki Extensions downloader: choose SemanticResultFormats
  • directly from the SVN using the following command inside your extensions folder:
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticResultFormats/

Installation

In order to include all available result formats, simply add the following line to your LocalSettings.php:

require_once("$IP/extensions/SemanticResultFormats/SRF_Settings.php");

If nothing else is added, the following formats will be enabled: 'calendar', 'timeline', 'eventline', 'sum', 'average', 'min' and 'max'. To add more formats to this list, you can add lines like:

$srfgFormats[] = 'googlebar';

...or you can override the set of formats entirely, with a call like:

$srfgFormats = array('calendar', 'timeline');

There are some formats that you may not want to include because they may not follow certain policies within your wiki; the formats 'googlebar' and 'googlepie', for instance, send data to external web services for rendering, which may be considered a data leak.

This documentation page applies to all SMW versions from 1.4 to the most current version.
     

Help:Semantic Result Formats en 1.4

Personal tools