Status: | effective |
Progress: | 100% |
Version: | 1.9.0+ |
Result formats
Table of Contents | |
---|---|
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 "Ask"Provides an interface that assists users with creating and executing semantic queries 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 with result format "plainlist"Outputs results in a comma separated list, with additional outputs shown in parentheses. The output does not provide class attributes to HTML elements (default for queries without printout statements). since Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. (in SMW < 3.0 as tables (result format "table"Outputs the results in a table (default for queries with printout statements).), unless there would be only one column, in which case the results are displayed as a comma-separated list (result format "list"Outputs results in a comma separated list, with additional outputs shown in parentheses. The output introduces class attributes to HTML elements to facilitate easy individual styling.)).
In addition to the formats provided by SMW itself, extensions can provide additional formats; see extension "Semantic Result Formats"Provides additional formats for semantic queries and extension "Maps"Allows embedding of dynamic maps, geocoding and geospatial operations as examples for two such extensions.
Click here to do an advanced research among available results formats.
By Semantic MediaWiki itself[edit]
The following 16 formats are available in Semantic MediaWiki by default:
Page | Format | Description | Since | Categories |
---|---|---|---|---|
Broadtable format | broadtable | Outputs the results in a broad table. | 0.4 | misc |
Table format | table | Outputs the results in a table (default for queries with printout statements). | 0.4 | misc |
Count format | count | Returns just the number of results, instead of the results themselves. | 0.7 | misc, math |
Debug format | debug | Outputs debugging information for analyzing problems in query answering. | 0.7 | misc |
Embedded format | embedded | Embeds selected articles. | 0.7 | misc |
List format | list | Outputs results in a comma separated list, with additional outputs shown in parentheses. The output introduces class attributes to HTML elements to facilitate easy individual styling. | 0.7 | misc |
Ol format | ol | Outputs results as a numbered list, with additional outputs shown in parentheses. | 0.7 | misc |
Ul format | ul | Outputs results as a bulleted list, with additional outputs shown in parentheses. | 0.7 | misc |
CSV format | csv | Outputs results in Windows-style Comma Separated Value format. | 1.2.1 | export, plaintext |
JSON format | json | Outputs results in JSON-based serialisations. | 1.4.2 | export, plaintext |
Category format | category | Outputs the results in columns, with first letters as section headers, in the style of MediaWiki category pages. | 1.4.3 | misc |
RDF format | rdf | Exports results in RDF-based serialisations. | 1.5.5 | export |
DSV format | dsv | Outputs results in *NIX-style Delimiter Separated Value format. | 1.6.0 | export, plaintext |
Feed format | feed | Exports results as RSS and Atom feeds. | 1.8.0 | export, feed, xml |
Plainlist format | plainlist | Outputs results in a comma separated list, with additional outputs shown in parentheses. The output does not provide class attributes to HTML elements (default for queries without printout statements). | 3.0.0 | misc |
Templatefile format | templatefile | Outputs results in arbitrary file formats defined via templates. | 3.0.0 | export, plaintext |
By extensions to Semantic MediaWiki[edit]
The following 62 formats are available in Semantic MediaWiki through additional semantic extensions:
Page | Format | Description | Provided by | Since | Categories | Enabled |
---|---|---|---|---|---|---|
Jqplotchart format | jqplotchart | Displays aggregated numerical data as a bar, line, pie, or donut chart | Semantic Result Formats | 1.8.0 | charts | true |
Gantt format | gantt | Outputs the result as Gantt charts. | Semantic Result Formats | 3.1.0 | charts | false |
Google pie format | googlepie | Produces a pie chart using the Google Charts API | Semantic Result Formats | 1.4.0 | charts | false |
Sparkline format | sparkline | generates small inline charts (also known as sparklines) | Semantic Result Formats | 1.8.0 | charts | true |
D3 chart format | d3chart | Various charts using the d3.js as visualization library | Semantic Result Formats | 1.8.0 | charts | true |
Timeseries format | timeseries | aggregated values assigned to a date (property type date) are plotted as a line/bar chart | Semantic Result Formats | 1.8.0 | charts | true |
Google bar format | googlebar | Produces a bar chart using the Google Charts API | Semantic Result Formats | 1.4.0 | charts | false |
Dygraphs format | dygraphs | high performance series charting using the dygraphs Javascript library | Semantic Result Formats | 1.8.0 | charts | true |
Jqplotseries format | jqplotseries | enable sets of numerical data to be displayed as a chart series using the jqPlot Javascript library | Semantic Result Formats | 1.8.0 | charts | true |
KML format | kml | Exports geographical data into KML format | Maps | 1.0.0 | geo, export | true |
BibTeX format | bibtex | Produces a link to a file for downloading data in BibTeX format. | Semantic Result Formats | 1.4.3 | export | true |
Spreadsheet format | spreadsheet | Outputs the result in spreadsheet file formats (xlsx, xls, ods and csv). | Semantic Result Formats | 3.1.0 | export | true |
ICalendar format | icalendar | Exports data in iCalendar format. | Semantic Result Formats | 1.4.2 | export | true |
VCard format | vcard | Exports data in vCard format. | Semantic Result Formats | 1.4.2 | export | true |
Map format | map | Displays queried geographical data onto an interactive map | Maps | 0.1 | geo | true |
Leaflet format | leaflet | Displays queried geographical data onto an Leaflet map | Maps | 3.0.0 | geo | true |
Google Maps format | googlemaps | Displays queried geographical data onto an Google Maps map | Maps | 0.1 | geo | true |
Process format | process | Displays process graphs | Semantic Result Formats | 1.4.2 | graph | false |
Graph format | graph | Displays the relation between pages | Semantic Result Formats | 1.4.2 | graph | false |
Range format | range | Calculates the range in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Interquartilerange format | interquartilerange | Calculates the interquartile range in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Quartilupper format | quartilupper | Calculates the upper quartile in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Mode format | mode | Displays the value appearing most often in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Interquartilemean format | interquartilemean | Calculates the interquartile mean in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Max format | max | Displays the maximum of all queried numerical data | Semantic Result Formats | 1.4.2 | math | true |
Quartilupper.exc format | quartilupper.exc | Calculates the upper quartile in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Variance format | variance | Displays the variance in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Product format | product | Displays the product of all queried numerical data | Semantic Result Formats | 1.6.0 | math | true |
Sum format | sum | Displays the sum of all queried numerical data | Semantic Result Formats | 1.4.2 | math | true |
Quartillower format | quartillower | Calculates the lower quartile in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Average format | average | Displays the average of all queried numerical data | Semantic Result Formats | 1.4.2 | math | true |
Samplevariance format | samplevariance | Displays the sample variance in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Min format | min | Displays the minimum of all queried numerical data | Semantic Result Formats | 1.4.2 | math | true |
Quartillower.exc format | quartillower.exc | Calculates the lower quartile in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Median format | median | Displays the median of all queried numerical data | Semantic Result Formats | 1.6.0 | math | true |
Standarddeviation format | standarddeviation | Calculates the standarddeviation in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Interquartilerange.exc format | interquartilerange.exc | Calculates the interquartile range in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Samplestandarddeviation format | samplestandarddeviation | Calculates the samplestandarddeviation in queried numerical data | Semantic Result Formats | 3.2.0 | math | true |
Slideshow format | slideshow | Displays query results as a slideshow | Semantic Result Formats | 1.8.0 | media | true |
Gallery format | gallery | Display images as a gallery | Semantic Result Formats | 1.5.0 | media | true |
Media format | media | HTML5 Audio / Video media result printer | Semantic Result Formats | 1.9.0 | media | true |
Tree format | tree | Displays query results as a tree (nested HTML bulleted lists) | Semantic Result Formats | 1.7.1 | misc | true |
Outline format | outline | Lists pages in a hierarchical outline, based on property values | Semantic Result Formats | 1.4.3 | misc | true |
Oltree format | oltree | Displays query results as a tree (nested HTML ordered lists) | Semantic Result Formats | 1.7.1 | misc | true |
Array format | array | Comma-separated list, with additional outputs shown in parentheses and extra formatting options | Semantic Result Formats | 1.6.1 | misc | true |
Filtered format | filtered | Displays query results as switchable views, offers to filter | Semantic Result Formats | 1.8.0 | misc | true |
Pagewidget format | pagewidget | Widget for embedded page content | Semantic Result Formats | 1.8.0 | misc | true |
Hash format | hash | Comma-separated list, with additional outputs shown in parentheses and extra formatting options | Semantic Result Formats | 1.6.1 | misc | true |
Listwidget format | listwidget | Outputs results with a navigation or pagination widget for lists (ordered and unordered) | Semantic Result Formats | 1.8.0 | misc | true |
Tagcloud format | tagcloud | Displays queried data in a tagcloud | Semantic Result Formats | 1.5.3 | misc | true |
Valuerank format | valuerank | Lists values based on their occurrence | Semantic Result Formats | 1.7.0 | misc | true |
Incoming format | incoming | Displays incoming properties to a page or property/value pair | Semantic Result Formats | 1.8.0 | misc | false |
Carousel format | carousel | Display results as a carousel | Semantic Result Formats | 4.1.0 | other | true |
Datatables format (legacy) | datatables-legacy | A progressive table result printer that integrates the DataTables JavaScript library | Semantic Result Formats | 1.9.0 | table | true |
Datatables format | datatables | Provides a complete porting of DataTables JavaScript library into Semantic MediaWiki | Semantic Result Formats | 4.1.0 | table | true |
Timeline format | timeline | Displays query results in interactive timelines | Semantic Result Formats | 1.4.0 | time | true |
Eventcalendar format | eventcalendar | An event calendar with different views of displaying days and events | Semantic Result Formats | 1.8.0 | time | true |
Calendar format | calendar | Displays time-associated pages on a calendar | Semantic Result Formats | 1.4.0 | time | true |
Eventline format | eventline | Displays query results in interactive eventlines | Semantic Result Formats | 1.4.0 | time | false |
Earliest format | earliest | Displays the earliest of all queried date/time data | Semantic Result Formats | 1.8.0 | time | true |
Moderntimeline format | moderntimeline | Displays query results in modern interactive timelines | Modern Timeline | 3.0.0 | time | true |
Latest format | latest | Displays the latest of all queried date/time data | Semantic Result Formats | 1.8.0 | time | true |
See also[edit]
- Help page on using templates in various result formats
- Help page on result formats supporting the the
@deferred
query marker