query-ff95c1bd481a85d9d9ec61f1cd3152e7
Objekte mit Verlinkung zu Openstreetmap
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#>
#---------------------------------------------------------------------------------------
# Objekte mit Verlinkung zu Openstreetmap
#---------------------------------------------------------------------------------------
PREFIX schema: <http://schema.org/>
#defaultView:Map;Table
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?way ?relation ?knoten ?coordinate ?layer
WHERE {
{
?item (wdt:P131/wdt:P279*) wd:Q1731. # in Dresden
?item wdt:P10689 ?way. # way
BIND("way" AS ?layer ) .
}
union
{
?item (wdt:P131/wdt:P279*) wd:Q1731. # in Dresden
?item wdt:P402 ?relation. # relation
BIND("relation" AS ?layer ) .
}
union
{
?item (wdt:P131/wdt:P279*) wd:Q1731. # in Dresden
?item wdt:P11693 ?knoten. # knoten
BIND("Knoten" AS ?layer ) .
}
OPTIONAL { ?item wdt:P625 ?coordinate. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?coordinate"):::projected
v1("?item"):::projected
v5("?knoten"):::projected
v6("?layer"):::projected
v4("?relation"):::projected
v2("?way"):::projected
a1((" "))
a2((" "))
a3((" "))
c9(["bd:serviceParam"]):::iri
c3(["wd:Q1731"]):::iri
c11(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal
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;
v1 --"wdt:P131"--> a3
a3 --"wdt:P279"--> c3
v1 --"wdt:P11693"--> v5
bind0[/"'Knoten'"/]
bind0 --as--o v6
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> a2
a2 --"wdt:P279"--> c3
v1 --"wdt:P402"--> v4
bind1[/"'relation'"/]
bind1 --as--o v6
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P10689"--> v2
bind2[/"'way'"/]
bind2 --as--o v6
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end