Template:Quickquery
Uses Lua: |
Usage
edit{{Quickquery|?cat wdt:P31 wd:Q146}}
→ ?cat wdt:instance of (P31) wd:house cat (Q146){{Quickquery|?cat wdt:P31 wd:Q146|some label}}
→ some label{{Quickquery|?cat wdt:P31 wd:Q146|limit=10}}
→ ?cat wdt:instance of (P31) wd:house cat (Q146){{Quickquery|?child wdt:P25 ?mother . ?child wdt:P22 ?father|limit=10|defaultView=Graph}}
→ ?child wdt:mother (P25) ?mother . ?child wdt:father (P22) ?father
Parameters
editTemplate to quickly write and link SPARQL queries. The SELECT clause is automatically generated by simply selecting every variable (along with a label for every variable).
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | content of the WHERE block of the SPARQL query
| String | required |
2 | 2 | optional label for the query link | Content | optional |
limit | limit | how many results the query should return at most | Number | optional |
description | description | Set description=yes to also include descriptions of entities.
| Line | optional |
defaultView | defaultView | default view that WDQS should display (WDQS defaults to Table)
| Line | optional |
See also
editThe above documentation is transcluded from Template:Quickquery/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |