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 prefers block formatting of parameters.

ParameterDescriptionTypeStatus
queryquery

SPARQL query

Example
SELECT * WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1
Stringrequired
extraprefixextraprefix

Extra prefixes to be added

Example
PREFIX wikibase: <http://wikiba.se/ontology#>
Stringoptional
projectproject

project name: '''wd''' for Wikidata and '''sdc''' for Structured Data on Commons

Stringoptional