query-2ac48c371461cf3508ba68523788cbb9
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#>
#defaultView:Map
SELECT DISTINCT ?ville ?villeLabel ?pop ?localisation_administrativeLabel ?coordonn_es_g_ographiques WHERE {
?ville (wdt:P31/wdt:P279*) wd:Q515.
?ville wdt:P17 wd:Q16.
?ville wdt:P1082 ?pop.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
OPTIONAL { ?ville wdt:P131 ?localisation_administrative. }
OPTIONAL { ?ville wdt:P625 ?coordonn_es_g_ographiques. }
}
ORDER BY ?pop
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coordonn_es_g_ographiques"):::projected
v3("?localisation_administrative")
v1("?pop"):::projected
v2("?ville"):::projected
a1((" "))
c5(["wd:Q16"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q515"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
v2 --"wdt:P1082"--> v1
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;
v2 -."wdt:P131".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v4
end