Difference between revisions of "Template:Wdquery"
Jump to navigation
Jump to search
(Created page with "<noinclude>{{doc}}</noinclude>{{Plain link|//query.personaldata.io/#{{urlencode:{{{query|{{{1|}}}}}}|PATH}}|{{#if:{{{query|}}}|{{{1|}}}|{{{2|}}}}}}}") |
(No difference)
|
Revision as of 01:17, 10 May 2019
Usage
Parameter 1 is the Sparql query, and parameter 2 is the text to display.
{{wdquery|query= SELECT ?property ?alias ?occurences WHERE { hint:Query hint:optimizer "None" . { SELECT ?alias (COUNT (?alias) as ?occurences) WHERE { ?tmp a wikibase:Property . ?tmp skos:altLabel ?alias FILTER (LANG (?alias) = "en") } GROUP BY ?alias } ?property a wikibase:Property . ?property skos:altLabel ?alias FILTER (?occurences > 1) . } ORDER BY ?alias|an example query}}
See also
The above documentation is transcluded from Template:Wdquery/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |