Querying: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Declare these namespaces at the start of every query: ``` PREFIX wd: <https://ottgaz.org/entity/> PREFIX wdt: <https://ottgaz.org/prop/direct/> ```") |
(formatting) |
||
Line 1: | Line 1: | ||
== Namespace == | |||
Declare these namespaces at the start of every query: | Declare these namespaces at the start of every query: | ||
PREFIX wd: <https://ottgaz.org/entity/> | |||
PREFIX wd: <https://ottgaz.org/entity/> | PREFIX wdt: <https://ottgaz.org/prop/direct/> | ||
PREFIX wdt: <https://ottgaz.org/prop/direct/> | |||
== Sample queries == | |||
=== Label === | |||
SELECT ?vilayet ?vilayetLabel | |||
WHERE | |||
{ | |||
?vilayet wdt:P6 wd:Q5 . | |||
?vilayet rdfs:label ?vilayetLabel . | |||
} |
Revision as of 14:07, 30 September 2022
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
SELECT ?vilayet ?vilayetLabel WHERE { ?vilayet wdt:P6 wd:Q5 . ?vilayet rdfs:label ?vilayetLabel . }