Help:RDF format

RDF format
Exports results in RDF-based serialisations.
Further Information
Provided by: Semantic MediaWiki
Added: 1.5.5
Removed: still supported
Requirements: none
Format name: rdf
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Markus Krötzsch
Categories: export
Table of Contents

The result format rdf is used to produce links to OWL files in RDF-based serialisations.


The RDF format introduces one additional optional parameter:

  • syntax: either rdfxml (default) or turtle

Parameter Type Default Description
syntax text rdfxml The RDF syntax to be used


The default syntax is RDF/XML:

{{#ask: [[Category:City]] [[located in::Germany]] 
| ?population
| format=rdf

Result: RDF

The same query, but this time in Turtle syntax:

{{#ask: [[Category:City]] [[located in::Germany]] 
| ?population
| format=rdf
| syntax=turtle

Result: RDF


RDF files are not usually read by desktop tools. To view their content, you can use any text editor.

This documentation page applies to all SMW versions from 1.5.5 to the most current version.
      Other languages: defrzh-hans

Help:RDF format en 1.5.5