Querying: Difference between revisions
Jump to navigation
Jump to search
(→Label) |
|||
Line 13: | Line 13: | ||
=== Label === | === Label === | ||
All items that are vilayets, as well as their English language label. | All items that are vilayets, as well as their English language label. [https://tinyurl.com/2n3vmss7 run] | ||
SELECT ?vilayet ?vilayetLabel | SELECT ?vilayet ?vilayetLabel |
Revision as of 02:11, 1 October 2022
Run SPARQL queries via the Ottgaz Query Service.
Remember: SPARQL is currently case sensitive, as elastic search is disabled in wikibase.cloud.
Namespace
Declare these namespaces at the start of every query:
PREFIX wd: <https://ottgaz.org/entity/> PREFIX wdt: <https://ottgaz.org/prop/direct/>
Sample queries
Label
All items that are vilayets, as well as their English language label. run
SELECT ?vilayet ?vilayetLabel WHERE { ?vilayet wdt:P6 wd:Q5 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } }