Template:SPARQL2: Difference between revisions
From SCDB
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Clear}}{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|PREFIX wd: <https://scdb.app/entity/>}}} }}|highlight="{{{highlight|}}}"|start="{{{start|1}}}"|line=line|lang="sparql"|style="margin:.5em; max-width: -moz-max-content; | <onlyinclude>{{Clear}}{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|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/> | |||
}}} }}|highlight="{{{highlight|}}}"|start="{{{start|1}}}"|line=line|lang="sparql"|style="margin:.5em; max-width: -moz-max-content; | |||
min-width: 20em;"}} | min-width: 20em;"}} | ||
<!-- | <!-- |
Revision as of 20:55, 18 July 2020
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
query | query sparql | SPARQL query
| String | required |
extraprefix | extraprefix | Extra prefixes to be added
| String | optional |