query-50bbc442ae456d6ad431a5f05b71018c
Outdoor Gyms in Wikidata
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: Outdoor Gyms in Wikidata
#defaultView:Map{"hide":["?coord","?layer"], "layer": "?countryLabel"}
SELECT ?id ?item ?itemLabel ?itemDescription ?img ?coord ?www ?countryLabel WHERE {
{{?item wdt:P31/wdt:P279* wd:Q692630}
UNION
{ ?item wdt:P912 wd:Q692630.
}}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en,sv,de" .
}
OPTIONAL { ?item wdt:P18 ?img }
OPTIONAL { ?item wdt:P17 ?country }
OPTIONAL { ?item wdt:P856 ?www }
OPTIONAL { ?item wdt:P625 ?coord }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coord"):::projected
v3("?country")
v2("?img"):::projected
v1("?item"):::projected
v4("?www"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["en,sv,de"]):::literal
c3(["wd:Q692630"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P912"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
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:P17".-> 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