Semantic MediaWiki (SMW) is an extension which allows to store and query structured data in MediaWiki. While SMW provides core functionality to render results of such queries (e.g. as tables and lists) extensions may hook in to support further output formats. These so-called "result formats" are thus powerful tools to leverage semantic wiki data for user-friendly visualization such as timelines and graphs or exporting structured data into standardized data exchange formats. A set of popular formats has been bundled as the Semantic Result Formats extension.
The power of Semantic Result Formats (SRF) is caused by the fact that it allows for many different ways of reusing data stored in SMW. Examples are visualizations (which can even use libraries and tools such as GraphViz or SIMILE Timeline) and data exports like vCard and iCalendar. Furthermore, both of these options can include responses from external web services like the Google charts API into a wiki page.
In this tutorial we want to explain the general design and implementation of the query result processing in order to enable users to improve existing and develop novel result formats. We will therefore start with a brief overview of existing result formats to explain the overall concept. Afterwards we introduce some implementation details and guide participants to write a simple "Hello World" result format implementation.