Template:SPARQL2

From Bonkipedia
Revision as of 10:55, 28 February 2021 by [[mw:]]>Shirayuki (use translation aware transclusion)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


  • Items used: no mw.wikibase
  • Properties used: no mw.wikibase
{{{query}}}

Try it!

Template documentation

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

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