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