Result formats

From semantic-mediawiki.org
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 separates 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 separates list, with additional outputs shown in parentheses. The output induces 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 (formerly extension "Semantic Maps"Provides the ability to view and edit coordinate data stored with the Semantic MediaWiki extension) as examples for two such extensions.

Click here to do an advanced research among available results formats.

By Semantic MediaWiki itself[edit]

The following formats are available in Semantic MediaWiki by default:

PageFormatDescriptionSinceCategories
Broadtable formatbroadtableOutputs the results in a broad table.0.4misc
Table formattableOutputs the results in a table (default for queries with printout statements).0.4misc
Count formatcountReturns just the number of results, instead of the results themselves.0.7misc,
math
Debug formatdebugOutputs debugging information for analyzing problems in query answering.0.7misc
Embedded formatembeddedEmbeds selected articles.0.7misc
List formatlistOutputs results in a comma separates list, with additional outputs shown in parentheses. The output induces class attributes to HTML elements to facilitate easy individual styling.0.7misc
Ol formatolOutputs results as a numbered list, with additional outputs shown in parentheses.0.7misc
Ul formatulOutputs results as a bulleted list, with additional outputs shown in parentheses.0.7misc
CSV formatcsvOutputs results in Windows-style Comma Separated Value format.1.2.1export,
plaintext
JSON formatjsonOutputs results in JSON-based serialisations.1.4.2export,
plaintext
Category formatcategoryOutputs the results in columns, with first letters as section headers, in the style of MediaWiki category pages.1.4.3misc
RDF formatrdfExports results in RDF-based serialisations.1.5.5export
DSV formatdsvOutputs results in *NIX-style Delimiter Separated Value format.1.6.0export,
plaintext
Feed formatfeedExports results as RSS and Atom feeds.1.8.0export,
feed,
xml
Plainlist formatplainlistOutputs results in a comma separates 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.0misc
Templatefile formattemplatefileOutputs results in arbitrary file formats defined via templates.3.0.0export,
plaintext

By extensions to Semantic MediaWiki[edit]

The following formats are available in Semantic MediaWiki through additional semantic extensions:

PageFormatDescriptionProvided bySinceCategoriesEnabled
Jqplotseries formatjqplotseriesenable sets of numerical data to be displayed as a chart series using the jqPlot Javascript librarySemantic Result Formats1.8.0chartstrue
Sparkline formatsparklinegenerates small inline charts (also known as sparklines)Semantic Result Formats1.8.0chartstrue
Jqplotchart formatjqplotchartDisplays aggregated numerical data as a bar, line, pie, or donut chartSemantic Result Formats1.8.0chartstrue
Timeseries formattimeseriesaggregated values assigned to a date (property type date) are plotted as a line/bar chartSemantic Result Formats1.8.0chartstrue
Dygraphs formatdygraphshigh performance series charting using the dygraphs Javascript librarySemantic Result Formats1.8.0chartstrue
Google pie formatgooglepieProduces a pie chart using the Google Charts APISemantic Result Formats1.4.0chartsfalse
Google bar formatgooglebarProduces a bar chart using the Google Charts APISemantic Result Formats1.4.0chartsfalse
D3 chart formatd3chartVarious charts using the d3.js as visualization librarySemantic Result Formats1.8.0chartstrue
KML formatkmlExports geographical data into KML formatSemantic Maps1.0geo,
export
true
VCard formatvcardExports data in vCard format.Semantic Result Formats1.4.2exporttrue
BibTeX formatbibtexProduces a link to a file for downloading data in BibTeX format.Semantic Result Formats1.4.3exporttrue
Excel formatexcelOutputs the result in Microsoft Office Excel file format (xls).Semantic Result Formats1.9.0exporttrue
ICalendar formaticalendarExports data in iCalendar format.Semantic Result Formats1.4.2exporttrue
OpenLayers formatopenlayersDisplays queried geographical data onto an OpenLayers mapSemantic Maps0.1geotrue
Map formatmapDisplays queried geographical data onto an interactive mapMaps0.1geotrue
Leaflet formatleafletDisplays queried geographical data onto an Leaflet mapSemantic Maps3.0geotrue
Google Maps formatgooglemapsDisplays queried geographical data onto an Google Maps mapSemantic Maps0.1geotrue
Process formatprocessDisplays process graphsSemantic Result Formats1.4.2graphfalse
Graph formatgraphDisplays the relation between pagesSemantic Result Formats1.4.2graphfalse
Product formatproductDisplays the product of all queried numerical dataSemantic Result Formats1.6.0mathtrue
Sum formatsumDisplays the sum of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Median formatmedianDisplays the median of all queried numerical dataSemantic Result Formats1.6.0mathtrue
Max formatmaxDisplays the maximum of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Min formatminDisplays the minimum of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Average formataverageDisplays the average of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Slideshow formatslideshowDisplays query results as a slideshowSemantic Result Formats1.8.0mediatrue
Gallery formatgalleryDisplay images as a gallerySemantic Result Formats1.5.0mediatrue
Media formatmediaHTML5 Audio / Video media result printerSemantic Result Formats1.9.0mediatrue
Outline formatoutlineLists pages in a hierarchical outline, based on property valuesSemantic Result Formats1.4.3misctrue
Incoming formatincomingDisplays incoming properties to a page or property/value pairSemantic Result Formats1.8.0miscfalse
Valuerank formatvaluerankLists values based on their occurrenceSemantic Result Formats1.7.0misctrue
Pagewidget formatpagewidgetWidget for embedded page contentSemantic Result Formats1.8.0misctrue
Tree formattreeDisplays query results as a tree (nested HTML bulleted lists)Semantic Result Formats1.7.1misctrue
Listwidget formatlistwidgetNavigation widget for listsSemantic Result Formats1.8.0misctrue
Array formatarrayComma-separated list, with additional outputs shown in parentheses and extra formatting optionsSemantic Result Formats1.6.1misctrue
Tagcloud formattagcloudDisplays queried data in a tagcloudSemantic Result Formats1.5.3misctrue
Hash formathashComma-separated list, with additional outputs shown in parentheses and extra formatting optionsSemantic Result Formats1.6.1misctrue
Oltree formatoltreeDisplays query results as a tree (nested HTML ordered lists)Semantic Result Formats1.7.1misctrue
Filtered formatfilteredDisplays query results as switchable views, offers filteringSemantic Result Formats1.8.0miscfalse
Datatables formatdatatablesA progressive table result printer that integrates the DataTables JavaScript librarySemantic Result Formats1.9.0tabletrue
Calendar formatcalendarDisplays time-associated pages on a calendarSemantic Result Formats1.4.0timetrue
Eventline formateventlineDisplays query results in interactive eventlinesSemantic Result Formats1.4.0timefalse
Latest formatlatestDisplays the latest of all queried date/time dataSemantic Result Formats1.8.0timetrue
Earliest formatearliestDisplays the earliest of all queried date/time dataSemantic Result Formats1.8.0timetrue
Eventcalendar formateventcalendarAn event calendar with different views of displaying days and eventsSemantic Result Formats1.8.0timetrue
Timeline formattimelineDisplays query results in interactive timelinesSemantic Result Formats1.4.0timetrue

See also[edit]

Related documentation
Related tips