This wiki is being moved to a new server and cannot be edited. Please sit tight. Thank you.

Help:RDF format

From semantic-mediawiki.org
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.

Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. introduced a set of predefined classes supporting a datatable output12 which also allows for RDF export via result format "Table"Outputs the results in a table (default for queries with printout statements)..

Parameters[edit]

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

Available values for parameters:

  • syntax: rdfxml (default) and turtle

Examples[edit]

rdfxml[edit]

The default syntax is RDF/XML:

Syntax
{{#ask:
 [[Category:City]]
 [[Located in::Germany]] 
 |?Population
 |format=rdf
}}
Result

RDF

turtle[edit]

The same query, but this time in [httsp://www.w3.org/TeamSubmission/turtle/ Turtle syntax]:

Syntax
{{#ask:
 [[Category:City]]
 [[Located in::Germany]] 
 |?Population
 |format=rdf
 |syntax=turtle
}}
Result

RDF

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


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2420
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:2718