query-b8259365f223cdc40a9f496105b04818
Queryâ–¶You need to run the query. First click on "Try it" and then click on All Gurdwaras in the world (Map view)
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 ?gurdwara ?gurdwaraLabel ?gurdwaraDescription ?image ?coordinate_location ?located_in_the_administrative_territorial_entity ?located_in_the_administrative_territorial_entityLabel WHERE {
?gurdwara wdt:P31 wd:Q337986.
SERVICE wikibase:label { bd:serviceParam wikibase:language "pa". }
OPTIONAL { ?gurdwara wdt:P18 ?image. }
OPTIONAL { ?gurdwara wdt:P625 ?coordinate_location. }
OPTIONAL { ?gurdwara wdt:P131 ?located_in_the_administrative_territorial_entity.}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coordinate_location"):::projected
v1("?gurdwara"):::projected
v2("?image"):::projected
v4("?located_in_the_administrative_territorial_entity"):::projected
c6(["pa"]):::literal
c4(["bd:serviceParam"]):::iri
c2(["wd:Q337986"]):::iri
v1 --"wdt:P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
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:P625".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v4
end