query-eee302f5a72c9614da8aa34d47f3819f
Montagnes des Collines de l'Oka
SELECT DISTINCT ?item ?itemLabel ?typeLabel ?massifLabel ?altitude ?localisationLabel ?coord
WHERE { ?item (wdt:P4552) wd:Q9195483 .
?item wdt:P31 ?type .
?item wdt:P4552 ?massif .
OPTIONAL {?item p:P2044 ?alt_statement .
?alt_statement psv:P2044 ?alt_node .
?alt_node wikibase:quantityAmount ?alt .
?alt_node wikibase:quantityUnit ?unit .
?unit wdt:P2370 ?conversionSI .
BIND(ROUND(?alt?conversionSI) AS ?altitude)}
OPTIONAL { ?item wdt:P131 ?localisation }
OPTIONAL { ?item wdt:P625 ?coord } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . } # français sinon anglais
}
ORDER BY (?massifLabel)
LIMIT 1000
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Montagnes des Collines de l'Oka
SELECT DISTINCT ?item ?itemLabel ?typeLabel ?massifLabel ?altitude ?localisationLabel ?coord
WHERE { ?item (wdt:P4552)* wd:Q9195483 .
?item wdt:P31 ?type .
?item wdt:P4552 ?massif .
OPTIONAL {?item p:P2044 ?alt_statement .
?alt_statement psv:P2044 ?alt_node .
?alt_node wikibase:quantityAmount ?alt .
?alt_node wikibase:quantityUnit ?unit .
?unit wdt:P2370 ?conversionSI .
BIND(ROUND(?alt*?conversionSI) AS ?altitude)}
OPTIONAL { ?item wdt:P131 ?localisation }
OPTIONAL { ?item wdt:P625 ?coord } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . } # français sinon anglais
}
ORDER BY (?massifLabel)
LIMIT 1000