Template:Query link/doc
Appearance
This is a documentation subpage for Template:Query link. It contains usage information, categories and other content that is not part of the original template page. |
Usage
[edit]Produce a link to the Wikidata Query Service with a given SPARQL query
- query the query SPARQL
- label optional link label
Example
{{query link | link = All subclasses of "Written Work" |query= #All subclasses of "Written Work" SELECT ?subclass ?desc WHERE { ?subclass (wdt:P279+) wd:Q47461344. OPTIONAL { ?subclass rdfs:label ?desc. FILTER((LANG(?desc)) = "en") } } }}
See also
[edit]- {{SPARQL}}