Help:Semantic Result Formats

From semantic-mediawiki.org

(Redirected from Semantic Result Formats)
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 three ways:

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( '/extensions/SemanticResultFormats/SRF_Settings.php' );

If nothing else is added, no format will be included. In order to include a format, add the following line to your local settings after the line above:

srfInit( array('formatname', 'formatname', ...) );

with formatname being one of the following values (you can use as many formatnames as you like):

calendar, eventline, googlebar, googlepie, graph, timeline

So for example to enable graph, timeline and calendar you would write:

srfInit( array('graph', 'timeline', 'calendar') );

You can also just use the following command to include all available formats:

srfInit('all');

but this is not recommended since it may expand your system with formats that do not follow certain policies within the wiki without you making that explicit decision (consider that result formats may send data to external web services for rendering which may be considered a data leak. For example, googlebar and googlepie do this).

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