query-da98441f85a5f7f5f64eaac88bad37dc
Палесьсе — славутасьці
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
#Да вандроўкі на Палесьсе
SELECT ?item ?itemLabel ?image ?coord ?катLabel WHERE {
?item wdt:P1435 ?кат # славутасьці
{ ?item wdt:P131 wd:Q367015. } # у Жыткавіцкім раёне
UNION
{
?item wdt:P131 ?loc.
?loc wdt:P131* wd:Q367015.
} # або ў населеным пункце Жыткавіцкага раёну
UNION
{ ?item wdt:P131 wd:Q1885628. } # у Лунінецкім раёне
UNION
{
?item wdt:P131 ?loc.
?loc wdt:P131* wd:Q367015.
} # або ў населеным пункце Лунінецкага раёну
UNION
{ ?item wdt:P131 wd:Q1885570. } # у Столінскім раёне
UNION
{
?item wdt:P131 ?loc.
?loc wdt:P131* wd:Q1885570.
} # або ў населеным пункце Столінскага раёну
OPTIONAL { ?item wdt:P625 ?coord. }
OPTIONAL { ?item wdt:P18 ?image. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
}
GROUP BY ?item ?itemLabel ?image ?coord ?катLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coord"):::projected
v5("?image"):::projected
v1("?item"):::projected
v3("?loc")
v2("?кат")
c9(["bd:serviceParam"]):::iri
c3(["wd:Q367015"]):::iri
c4(["wd:Q1885628"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,be-tarask"]):::literal
c5(["wd:Q1885570"]):::iri
v1 --"wdt:P1435"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> v3
v3 --"wdt:P131"--> c5
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c5
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> v3
v3 --"wdt:P131"--> c3
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c4
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> v3
v3 --"wdt:P131"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c3
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end