Template:SPARQL2

From Wikidata
Jump to navigation Jump to search

{{SPARQL2|start=3|highlight=1|query=3}}

The following query uses these:

3

{{SPARQL2|highlight=2|query=1 2}}

The following query uses these:

1
2

{{SPARQL2|nohints=test|query=...}}

SELECT ?pop WHERE {
   wd:Q2807 wdt:P1082 ?pop
}

{{SPARQL2|query=...}}

The following query uses these:

See also[edit]

The following query uses these:

{{{query}}}

This template displays SPARQL query with syntax highlighting, used items and link to WDQS query site to run the query. TODO: used items labels are not localized

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
queryquery sparql

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