Help:RDF format
From semantic-mediawiki.org
| RDF format | ||
|---|---|---|
| Export result table as RDF | ||
| Available languages | ||
| de, en, zh-hans | ||
| Further Information | ||
| Provided by: | Semantic MediaWiki | |
| Added: | 1.5.5 | |
| Removed: | still supported | |
| Requirements: | none | |
| Format name: | rdf | |
| Enabled by default: Indicates whether the result format is enabled by default upon installation of the respective extension. | yes | |
| Authors: | Markus Krötzsch | |
| Categories: | export | |
| Group: | ||
| Table of Contents | ||
| ||
INFO
The result format rdf is used to produce links to OWL files in RDF-based serialisations.
Parameters
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 |
Examples
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
Remarks
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.