query-10f33dc5c45ad594f2db00789a88541b
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 bd: <http://www.bigdata.com/rdf#>
#title: Berlin outdoor gyms on a map
#defaultView:Map{"hide":["?coord"], "layer": "?adminLabel"}
SELECT ?id ?item ?itemLabel ?itemDescription ?img ?coord ?www ?adminLabel WHERE {
?item wdt:P6104 wd:Q107186275;
wdt:P17 wd:Q183.
?item wdt:P131* wd:Q64.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
OPTIONAL { ?item wdt:P18 ?img. }
OPTIONAL { ?item wdt:P131 ?admin. }
OPTIONAL { ?item wdt:P856 ?www. }
OPTIONAL { ?item wdt:P625 ?coord. }
OPTIONAL { ?item wdt:P217 ?id. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?admin")
v5("?coord"):::projected
v6("?id"):::projected
v2("?img"):::projected
v1("?item"):::projected
v4("?www"):::projected
c6(["wd:Q64"]):::iri
c8(["bd:serviceParam"]):::iri
c2(["wd:Q107186275"]):::iri
c4(["wd:Q183"]):::iri
c10(["de,en"]):::literal
v1 --"wdt:P6104"--> c2
v1 --"wdt:P17"--> c4
v1 --"wdt:P131"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P217".-> v6
end