Help:Result formats
This page describes the result formats available for Semantic MediaWiki (SMW). The result format determines how the results of a query are displayed. On special page Special:Ask they are selected via the dropdown menu „Format as:“ while they get specified with the parameter format in inline queries. If omitted, all queries are displayed as tables (format table), unless there would be only one column, in which case the results are displayed as a comma-separated list (format list).
In addition to the formats provided by SMW itself, extensions can provide additional formats; see Semantic Result Formats and Semantic Maps as examples for two such extensions.
There is also another overview page of all result formats available for SMW.
By Semantic MediaWiki itself
The following formats are available in SMW by default:
| Page | Format | Description | Added in | Categories | Authors |
|---|---|---|---|---|---|
| Broadtable format | broadtable | Outputs the result in a broad table. | 0.4 | misc | Markus Krötzsch |
| CSV format | csv | Outputs semantic data in Windows-style Comma Separated Value format | 1.2.1 | export plaintext |
Nathan Yergler Markus Krötzsch |
| Calendar format | calendar | Displays the product of all queried numerical data | 1.4.0 | time | Yaron Koren |
| Category format | category | List in columns, with first letters as section headers, in the style of MediaWiki category pages | 1.4.3 | misc | David Loomer Yaron Koren |
| Count format | count | Returns just the number of results (a count of the number of matching pages), instead of the results themselves | 0.7 | misc | Markus Krötzsch |
| DSV format | dsv | Outputs semantic data in UNIX-style Delimiter Separated Value format | 1.6.0 | export plaintext |
Jeroen De Dauw |
| Debug format | debug | Debugging information for analysing problems in query answering. | 0.7 | misc | Markus Krötzsch |
| Embedded format | embedded | Embed selected articles. | 0.7 | misc | Markus Krötzsch |
| JSON format | json | Outputs semantic data in JSON format | 1.4.2 | export plaintext |
Fabian Howahl Jeroen De Dauw |
| List format | list | Comma-separated list, with additional outputs shown in parentheses | 0.7 | misc | Markus Krötzsch |
| Ol format | ol | Numbered list, with additional outputs shown in parentheses | 0.7 | misc | Markus Krötzsch |
| RDF format | rdf | Export result table as RDF | 1.5.5 | export | Markus Krötzsch |
| RSS format | rss | Print links to RSS feeds for query results. | 1.1.0 | export xml |
Denny Vrandecic Markus Krötzsch |
| Table format | table | Outputs the result in a table. | 0.4 | misc | Markus Krötzsch |
| Template format | template | Uses a specified template to format and display the results | 0.7 | misc | Markus Krötzsch |
| Ul format | ul | Bulleted list, with additional outputs shown in parentheses | 0.7 | misc | Markus Krötzsch |
By extensions to Semantic MediaWiki
The following formats are available in SMW through additional semantic extensions:
| Page | Format | Description | Provided by | Added in | Categories | Authors |
|---|---|---|---|---|---|---|
| Array format | array | Comma-separated list, with additional outputs shown in parentheses and extra formatting options | Semantic Result Formats | 1.6.1 | misc | Daniel Werner |
| BibTeX format | bibtex | Produces a link to a file for downloading data in BibTeX format. | Semantic Result Formats | 1.4.3 | export | Steren Giannini Frank Dengler |
| Eventline format | timeline | Displas query results in interactive eventlines | Semantic Result Formats | 1.4.0 | misc | Markus Krötzsch Jeroen De Dauw |
| Exhibit format | exhibit | Uses Exhibit to print query results | Semantic Result Formats | 1.4.0 | misc | Fabian Howahl |
| Gallery format | gallery | displays query results as dynamic galleries with output which is the same as when using MediaWiki's built-in gallery tag. | Semantic Result Formats | 1.5.0 | misc | Rowan Rodrik van der Molen Jeroen De Dauw |
| Google Maps format | googlemaps | Displays queried geographical data onto an Google Maps map | Semantic Maps | 0.1 | geo | Jeroen De Dauw |
| Google pie format | googlepie | Produces a pie chart using the Google Charts API | Semantic Result Formats | 1.4 | charts | Denny Vrandecic |
| Google bar format | googlebar | Produces a bar chart using the Google Charts API | Semantic Result Formats | 1.4 | charts | Denny Vrandecic |
| Hash format | hash | Comma-separated list, with additional outputs shown in parentheses and extra formatting options | Semantic Result Formats | 1.6.1 | misc | Daniel Werner |
| KML format | kml | Export of geographical data in KML format | Semantic Maps | 1.0 | geo | Jeroen De Dauw |
| Map format | map | Displays queried geographical data onto an interactive map | Semantic Maps | 0.1 | geo | Jeroen De Dauw |
| Max format | max | Displays the maximum of all queried numerical data | Semantic Result Formats | 1.4.2 | math | Jeroen De Dauw Yaron Koren Nathan Yergler |
| Median format | median | Displays the median of all queried numerical data | Semantic Result Formats | 1.6.0 | math | Jeroen De Dauw |
| Min format | min | Displays the minimum of all queried numerical data | Semantic Result Formats | 1.4.2 | math | Jeroen De Dauw Yaron Koren Nathan Yergler |
| OpenLayers format | openlayers | Displays queried geographical data onto an OpenLayers map | Semantic Maps | 0.1 | geo | Jeroen De Dauw |
| Product format | product | Displays the product of all queried numerical data | Semantic Result Formats | 1.6.0 | math | Jeroen De Dauw |
| Tagcloud format | tagcloud | Displays queried data in a tagcloud | Semantic Result Formats | 1.5.3 | misc | Jeroen De Dauw |
| Timeline format | timeline | Displas query results in interactive timelines | Semantic Result Formats | 1.4.0 | misc | Markus Krötzsch Jeroen De Dauw |
| Yahoo! Maps format | yahoomaps | Displays queried geographical data onto an Yahoo! Maps map | Semantic Maps | 0.1 | geo | Jeroen De Dauw |
| ICalendar format | icalendar | Exports data in iCalendar format. | Semantic Result Formats | 1.4.2 | export | Markus Krötzsch Denny Vrandecic Jeroen De Dauw |
| Jqplotbar format | jqplotbar | Produces a bar chart using the jqPlot Javascript library | Semantic Result Formats | 1.5.1 | charts | Sanyam Goyal Yaron Koren |
| Jqplotpie format | jqplotpie | Produces a pie chart using the jqPlot Javascript library | Semantic Result Formats | 1.5.1 | charts | Sanyam Goyal Yaron Koren |
| VCard format | vcard | Exports data in vCard format. | Semantic Result Formats | 1.4.2 | export | Markus Krötzsch Denny Vrandecic Frank Dengler |