BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages

These are the installation and configuration instructions for Semantic Result Formats (SRF).


Status Release date Git branch
SRF 3.0.x Development version - master
SRF 2.5.0 Stabel version 2017-06-13 2.5.x
SRF 2.4.2 Obsolete version 2017-02-25 2.4.0
SRF 2.3.0 Obsolete version 2015-09-24 2.3
SRF 2.2.0 Obsolete version 2015-07-30 2.2
SRF 2.1.2 Obsolete version 2015-02-26 2.1.2
SRF 2.0.0 Obsolete version 2014-08-06 2.0
SRF 1.9.1 Obsolete version 2014-04-25 1.9.1
SRF 1.9.0 Obsolete version 2014-01-10 1.9
SRF 1.8.0 Obsolete version 2012-12-02 1.8

Platform compatibility

The PHP and MediaWiki version ranges listed are those in which SRF is known to work. It might also work with more recent versions of PHP and MediaWiki, though this is not guaranteed. Increases of minimum requirements are indicated in bold.

PHP MediaWiki Semantic MediaWiki
SRF 3.0.x 5.6.x - latest 1.27 - latest 2.x

SRF 2.5.x

5.5.x - 7.0.x

1.23 - 1.29


SRF 2.4.x

5.3.2 - 7.0.x

1.19 - 1.28


SRF 2.3.x

5.3.2 - 5.6.x

1.19 - 1.25


SRF 2.2.x

5.3.2 - 5.6.x

1.19 - 1.25


SRF 2.1.x

5.3.2 - 5.6.x

1.19 - 1.24


SRF 2.0.x

5.3.2 - 5.5.x

1.19 - 1.23


SRF 1.9.x

5.3.2 - 5.5.x

1.19 - 1.23


SRF 1.8.x

5.2.0 - 5.5.x

1.17 - 1.22


SRF 1.7.x

5.2.0 - 5.4.x

1.16 - 1.19


Download and installation

Composer Installation

The recommended way to install Semantic Result Formats is with Composer using MediaWiki's built-in support for Composer.

Step 1

Change to the root directory of your MediaWiki installation. This is where the "LocalSettings.php" file is located.

Step 2

If you already have Composer installed continue to step 3. If not install Composer now: ``` bash wget ```

Step 3

Add the following line to the end of the "require" section in your "composer.local.json" file: ``` json "mediawiki/semantic-result-formats": "~2.5" ```

  • Remark 1: Remember to add a comma to the end of the preceding line in this section.
  • Remark 2: If you do not have a composer.local.json file (MediaWiki <1.25), use composer.json instead.
  • Remark 3: If you do not have a composer.json file (MediaWiki <1.24), copy composer.json.example to composer.json first.

Step 4

When this is done run in your shell: ``` bash php composer.phar update –no-dev –prefer-source "mediawiki/semantic-result-formats" ```

Verify installation success

As final step, you can verify SRF got installed by looking at the "Special:Version" page on your wiki and verifying the Semantic Result Formats section is listed.


A default set of formats is enabled. These are the formats that satisfy the following criteria:

  • they do not require further software to be installed (besides Semantic MediaWiki),
  • they do not transmit any data to external websites, not even by making client browsers request any static external resources (such as an externally hosted image file),
  • they are considered reasonably stable and secure.

Currently, these default formats thus are: 'icalendar', 'vcard', 'bibtex', 'calendar', 'eventcalendar', 'eventline', 'timeline', 'outline', 'gallery', 'jqplotchart', 'jqplotseries', 'sum', 'average', 'min', 'max', 'median', 'product', 'tagcloud', 'valuerank', 'array', 'tree', 'ultree', 'oltree', 'd3chart', 'latest', 'earliest', 'filtered', 'slideshow', 'timeseries', 'sparkline', 'listwidget', 'pagewidget', 'dygraphs', 'media', 'datatables'

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 = [ '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.

Notes on specific formats:

  • array: requires the MediaWiki Arrays extension to work.
  • excel: requires the phpexcel library from phpoffice to work.
  • googlebar: sends data to Google for rendering. It also requires access to the Google servers in order to render.
  • googlepie: sends data to Google for rendering. It also requires access to the Google servers in order to render.
  • graph: requires the MediaWiki GraphViz extension to work.
  • hash: requires the MediaWiki HashTables extensions to work.
  • process: requires the MediaWiki GraphViz extension to work.