Difference between revisions of "Template:SPARQL"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<!-- | |||
-->{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}} | -->{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}} | ||
[{{{endpoint|https://sportsdamkg.slis.ua.edu/}}}#{{urlencode: {{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|PATH}}{{#if:{{{namespace|}}}|%20#namespace={{{namespace}}}|}} Try it!<!-- | [{{{endpoint|https://sportsdamkg.slis.ua.edu/}}}#{{urlencode: {{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|PATH}}{{#if:{{{namespace|}}}|%20#namespace={{{namespace}}}|}} Try it!<!-- |
Revision as of 16:48, 23 September 2021
{{{query}}}
[https://sportsdamkg.slis.ua.edu/#%7B%7B%7Bquery%7D%7D%7D Try it!
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:}}]]