The Wayback Machine - https://web.archive.org/web/20110604160712/http://www.mediawiki.org/wiki/Extension:Semantic_Result_Formats

Extension:Semantic Result Formats

From MediaWiki.org
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
Semantic Result Formats

Release status: stable

SemanticMediaWiki Logo.png
Description Adds further formats to render inline query results.
Author(s) Frank Dengler, Steren Giannini, Fabian Howahl, Yaron Koren, Markus Krötzsch, David Loomer, Joel Natividad, Denny Vrandecic, Nathan Yergler, Jeroen De Dauw and others.
Last Version 1.5.3 (2011-02-09)
MediaWiki 1.11.0 or greater
License GPLv2
Download See here
latest README in SVN
Example North America page on semanticweb.org
Hooks used
AdminLinks

check usage (experimental)

Semantic Result Formats (SRF) is a MediaWiki extension, used in conjunction with the Semantic MediaWiki extension, that bundles a number of further result formats for SMW's inline queries. The individual formats can be added to the installation independently.

You can see an explanation of Semantic Result Formats (and some related extensions, like Semantic Maps), including screenshots and example code, at the slides for the Semantic Result Formats Wikimania 2010 talk.

Contents

[edit] Formats

Semantic Result Formats defines the following formats, listed here by type:

[edit] Graphing

[edit] Plotting

[edit] Time-based

[edit] Math

Each of the mathematical formats simply display a number, and take no additional parameters. It is important to ensure that the number of pages queried is not less than the complete set, for accurate results; you can set the "limit=" parameter to a high number to try to guarantee this.

[edit] Export

[edit] Other

There is also an overview page of all result formats available for SMW.

[edit] Version

Semantic Result Formats is at version 1.5.3, released on February 9, 2011. You can see the version history here.

[edit] Download

Semantic Result Formats can be obtained in several ways:

[edit] Installation

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

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

If nothing else is added, the following formats will be enabled: 'timeline', 'eventline', 'calendar', 'outline', 'jqplotbar', 'jqplotpie, 'average', 'sum', 'min' 'max', 'bibtex', 'icalendar', 'vcard' and 'tagcloud'. 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', 'exhibit');

... using one or more of the following values: average, bibtex, calendar, eventline, exhibit, googlebar, googlepie, graph, icalendar, jqplotbar, jqplotpie, max, min, outline, sum, timeline, vcard.

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.

In the event you want to use features that are taking advantage of Google Maps (such as the map view created by the Exhibit result printer), please assign a valid Google Maps key to the $wgGoogleMapsKey variable in LocalSettings.php. Otherwise, these features will not be available. If you don't yet have a Google Maps key for your wiki, you can get one at http://code.google.com/intl/en-en/apis/maps/signup.html.

[edit] Mailing list

You should use the Semantic MediaWiki mailing list, semediawiki-user, for any questions, suggestions or bug reports about Semantic Result Formats. If possible, please add "[SRF]" at the beginning of the subject line, to clarify the subject matter.

[edit] Contributing to the project

[edit] Bugs and feature requests

You can submit bug reports and requests for new features at MediaWiki's Bugzilla, here.

The current list of known bugs and requested features for Semantic Result Formats can be found here.

[edit] Contributing patches

If you found some bug and fixed it, or if you wrote code for a new feature, please create a patch by going to the main "SemanticResultFormats" directory, and typing:

svn diff >descriptivename.patch

Then go to the relevant bug report in Bugzilla, or create one if one doesn't exist (note, again, that Bugzilla is used for both bugs and feature requests), and attach this patch file to it.

If, for any reason, you don't wish to use Bugzilla, feel free to simply send this patch, with a description, to the semediawiki-devel mailing list.

[edit] Translating

Translation of Semantic Result Formats is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox