query-219074b27bf26e0be052ab0765626600
TODO
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?datum ?ObecLabel ?GPS ?USOP ?obvod ?obrazek
WHERE
{
?item wdt:P31 wd:Q811534 .
?item wdt:P17 wd:Q213 .
?item wdt:P131 ?Obec .
?Obec wdt:P131 ?Okres .
?Obec wdt:P131 wd:Q579648 .
OPTIONAL{?item wdt:P625 ?GPS } .
OPTIONAL{?item wdt:P677 ?USOP } .
OPTIONAL{?item wdt:P2547 ?obvod } .
OPTIONAL{?item wdt:P18 ?obrazek } .
OPTIONAL{?item p:P31/pq:P580 ?datum } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "cs" }
}
ORDER BY DESC (?datum)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?GPS"):::projected
v3("?Obec")
v4("?Okres")
v6("?USOP"):::projected
v1("?datum"):::projected
v2("?item"):::projected
v8("?obrazek"):::projected
v7("?obvod"):::projected
a1((" "))
c2(["wd:Q811534"]):::iri
c6(["wd:Q579648"]):::iri
c16(["cs"]):::literal
c4(["wd:Q213"]):::iri
c14(["bd:serviceParam"]):::iri
v2 --"p:direct/P31"--> c2
v2 --"p:direct/P17"--> c4
v2 --"p:direct/P131"--> v3
v3 --"p:direct/P131"--> v4
v3 --"p:direct/P131"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P625".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P677".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P2547".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P18".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P31".-> a1
a1 --"p:qualifier/P580"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end