Difference between revisions of "Template:SPARQL"
Jump to navigation
Jump to search
(use translation aware transclusion) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | |||
-->{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}} | -->{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}} | ||
[{{{endpoint| | [{{{endpoint|https://sportsdamkg.slis.ua.edu/sparql}}}#{{urlencode: {{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|PATH}}{{#if:{{{namespace|}}}|%20#namespace={{{namespace}}}|}} Try it!]<!-- | ||
--><noinclude> | --><noinclude> | ||
{{documentation|content= | {{documentation|content= |
Latest revision as of 17:02, 23 September 2021
{{{query}}}
Template documentation
This template displays SPARQL query with syntax highlighting, prefixes and link to WDQS beta site to run the query.
Parameter | Description | Type | Status | |
---|---|---|---|---|
query | query | SPARQL query
| String | required |
extraprefix | extraprefix | Extra prefixes to be added
| String | optional |
namespace | namespace | Namespace for query
| Unknown | optional |
endpoint | endpoint | Endpoint for query, if different from the default wikidata one
| URL | optional |
[[Category:Template documentation pages{{#translation:}}]]