Template:SPARQL

From sportsdamkg
Revision as of 17:02, 23 September 2021 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{{query}}}

Try it!

Template documentation

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
namespacenamespace

Namespace for query

Example
categories
Unknownoptional
endpointendpoint

Endpoint for query, if different from the default wikidata one

Example
https://dcatap.wmflabs.org/
URLoptional

[[Category:Template documentation pages{{#translation:}}]]