Template:SPARQL2

From SCDB
Revision as of 20:51, 18 July 2020 by Myst (talk | contribs)
PREFIX wd: <https://scdb.app/entity/>
PREFIX wdt: <https://scdb.app/prop/direct/>
PREFIX p: <https://scdb.app/prop/>
PREFIX ps: <https://scdb.app/prop/statement/>

{{{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

[Edit template data]

Template parameters

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