Template:SPARQL

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
{{{query}}}

Try it!

This template displays SPARQL query with syntax highlighting, prefixes and link to WDQS beta site to run the query.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
queryquery

SPARQL query

Default
empty
Example
SELECT * WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1
Auto value
empty
Stringrequired
Extraprefixextraprefix

Extra prefixes to be added

Default
empty
Example
PREFIX wikibase: <http://wikiba.se/ontology#>
Auto value
empty
Stringoptional