SPARQL examples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
== <!--T:9--> Simple queries == | == <!--T:9--> Simple queries == | ||
=== <translate><!--T:541--> Cats</translate> === | |||
{{SPARQL|query=SELECT ?item ?itemLabel | |||
WHERE | |||
{ | |||
?item wdt:P31 wd:Q146. # <translate><!--T:680--> Must be of a cat</translate> | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # <translate><!--T:681--> Helps get the label in your language, if not, then en language</translate> | |||
} | |||
}} | |||
=== <!--T:541--> Institutions === | === <!--T:541--> Institutions === | ||
Revision as of 08:21, 11 May 2022
This page is parsed by the web interface of the query service to fill the query example dialog.
Simple queries
<translate> Cats</translate>
Institutions
SELECT ?institution ?institutionLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?institution wdt:P47 wd:Q467.
}