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 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:

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 separated list, with additional outputs shown in parentheses. The output introduces 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 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.0misc
Templatefile formattemplatefileOutputs results in arbitrary file formats defined via templates.3.0.0export,
plaintext

By extensions to Semantic MediaWiki[edit]

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

PageFormatDescriptionProvided bySinceCategoriesEnabled
Gantt formatganttOutputs the result as Gantt charts.Semantic Result Formats3.1.0chartsfalse
Google pie formatgooglepieProduces a pie chart using the Google Charts APISemantic Result Formats1.4.0chartsfalse
Sparkline formatsparklinegenerates small inline charts (also known as sparklines)Semantic Result Formats1.8.0chartstrue
D3 chart formatd3chartVarious charts using the d3.js as visualization librarySemantic Result Formats1.8.0chartstrue
Dygraphs formatdygraphshigh performance series charting using the dygraphs Javascript librarySemantic 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
Google bar formatgooglebarProduces a bar chart using the Google Charts APISemantic Result Formats1.4.0chartsfalse
Jqplotseries formatjqplotseriesenable sets of numerical data to be displayed as a chart series using the jqPlot Javascript librarySemantic Result Formats1.8.0chartstrue
Jqplotchart formatjqplotchartDisplays aggregated numerical data as a bar, line, pie, or donut chartSemantic Result Formats1.8.0chartstrue
KML formatkmlExports geographical data into KML formatMaps1.0.0geo,
export
true
BibTeX formatbibtexProduces a link to a file for downloading data in BibTeX format.Semantic Result Formats1.4.3exporttrue
Spreadsheet formatspreadsheetOutputs the result in spreadsheet file formats (xlsx, xls, ods and csv).Semantic Result Formats3.1.0exporttrue
VCard formatvcardExports data in vCard format.Semantic Result Formats1.4.2exporttrue
ICalendar formaticalendarExports data in iCalendar format.Semantic Result Formats1.4.2exporttrue
Leaflet formatleafletDisplays queried geographical data onto an Leaflet mapMaps3.0.0geotrue
Map formatmapDisplays queried geographical data onto an interactive mapMaps0.1geotrue
Google Maps formatgooglemapsDisplays queried geographical data onto an Google Maps mapMaps0.1geotrue
Graph formatgraphDisplays the relation between pagesSemantic Result Formats1.4.2graphfalse
Process formatprocessDisplays process graphsSemantic Result Formats1.4.2graphfalse
Interquartilerange formatinterquartilerangeCalculates the interquartile range in queried numerical dataSemantic Result Formats3.2.0mathtrue
Quartilupper formatquartilupperCalculates the upper quartile in queried numerical dataSemantic Result Formats3.2.0mathtrue
Mode formatmodeDisplays the value appearing most often in queried numerical dataSemantic Result Formats3.2.0mathtrue
Interquartilemean formatinterquartilemeanCalculates the interquartile mean in queried numerical dataSemantic Result Formats3.2.0mathtrue
Quartilupper.exc formatquartilupper.excCalculates the upper quartile in queried numerical dataSemantic Result Formats3.2.0mathtrue
Max formatmaxDisplays the maximum of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Variance formatvarianceDisplays the variance in queried numerical dataSemantic Result Formats3.2.0mathtrue
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
Quartillower formatquartillowerCalculates the lower quartile in queried numerical dataSemantic Result Formats3.2.0mathtrue
Average formataverageDisplays the average of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Samplevariance formatsamplevarianceDisplays the sample variance in queried numerical dataSemantic Result Formats3.2.0mathtrue
Min formatminDisplays the minimum of all queried numerical dataSemantic Result Formats1.4.2mathtrue
Quartillower.exc formatquartillower.excCalculates the lower quartile in queried numerical dataSemantic Result Formats3.2.0mathtrue
Median formatmedianDisplays the median of all queried numerical dataSemantic Result Formats1.6.0mathtrue
Standarddeviation formatstandarddeviationCalculates the standarddeviation in queried numerical dataSemantic Result Formats3.2.0mathtrue
Interquartilerange.exc formatinterquartilerange.excCalculates the interquartile range in queried numerical dataSemantic Result Formats3.2.0mathtrue
Samplestandarddeviation formatsamplestandarddeviationCalculates the samplestandarddeviation in queried numerical dataSemantic Result Formats3.2.0mathtrue
Slideshow formatslideshowDisplays query results as a slideshowSemantic Result Formats1.8.0mediatrue
Media formatmediaHTML5 Audio / Video media result printerSemantic Result Formats1.9.0mediatrue
Gallery formatgalleryDisplay images as a gallerySemantic Result Formats1.5.0mediatrue
Array formatarrayComma-separated list, with additional outputs shown in parentheses and extra formatting optionsSemantic Result Formats1.6.1misctrue
Tree formattreeDisplays query results as a tree (nested HTML bulleted lists)Semantic Result Formats1.7.1misctrue
Oltree formatoltreeDisplays query results as a tree (nested HTML ordered lists)Semantic Result Formats1.7.1misctrue
Pagewidget formatpagewidgetWidget for embedded page contentSemantic Result Formats1.8.0misctrue
Outline formatoutlineLists pages in a hierarchical outline, based on property valuesSemantic Result Formats1.4.3misctrue
Hash formathashComma-separated list, with additional outputs shown in parentheses and extra formatting optionsSemantic Result Formats1.6.1misctrue
Filtered formatfilteredDisplays query results as switchable views, offers to filterSemantic Result Formats1.8.0misctrue
Listwidget formatlistwidgetOutputs results with a navigation or pagination widget for lists (ordered and unordered)Semantic Result Formats1.8.0misctrue
Tagcloud formattagcloudDisplays queried data in a tagcloudSemantic Result Formats1.5.3misctrue
Valuerank formatvaluerankLists values based on their occurrenceSemantic Result Formats1.7.0misctrue
Incoming formatincomingDisplays incoming properties to a page or property/value pairSemantic Result Formats1.8.0miscfalse
Carousel formatcarouselDisplay results as a carouselSemantic Result Formats4.1.0othertrue
Datatables format (legacy)datatables-legacyA progressive table result printer that integrates the DataTables JavaScript librarySemantic Result Formats1.9.0tabletrue
Datatables formatdatatablesProvides a complete porting of DataTables JavaScript library into Semantic MediaWikiSemantic Result Formats4.1.0tabletrue
Calendar formatcalendarDisplays time-associated pages on a calendarSemantic Result Formats1.4.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
Earliest formatearliestDisplays the earliest of all queried date/time dataSemantic Result Formats1.8.0timetrue
Eventline formateventlineDisplays query results in interactive eventlinesSemantic Result Formats1.4.0timefalse
Moderntimeline formatmoderntimelineDisplays query results in modern interactive timelinesModern Timeline3.0.0timetrue
Latest formatlatestDisplays the latest of all queried date/time dataSemantic Result Formats1.8.0timetrue

See also[edit]