query-215a312961e5b0e0e1431a891ecaa2d8
Query #5: List National Parks in Ukraine, with Ukrainian labels, and imagesList information useful for building a page about Ukraine National Parks
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?np ?npLabelEN ?npLabelUK ?coord ?pic ?ccat
WHERE
{
?np wdt:P31/wdt:P279* wd:Q1296040 . # <-- CHANGE HERE for different predicate
OPTIONAL { ?np wdt:P625 ?coord .}
OPTIONAL { ?np wdt:P18 ?pic .}
OPTIONAL { ?np wdt:P373 ?ccat .}
?np rdfs:label ?npLabelUK filter (lang(?npLabelUK) = "uk") .
OPTIONAL {
?np rdfs:label ?npLabelEN filter (lang(?npLabelEN) = "en")
}
}
ORDER BY ?npLabelEN
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?ccat"):::projected
v4("?coord"):::projected
v3("?np"):::projected
v1("?npLabelEN"):::projected
v2("?npLabelUK"):::projected
v5("?pic"):::projected
a1((" "))
c5(["wd:Q1296040"]):::iri
f0[["?npLabelUK = 'uk'"]]
f0 --> v2
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P625".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P373".-> v6
end
v3 --"rdfs:label"--> v2
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end