query-cd81f8d73d91767aad523592609d63e0

rq turtle/ttl

my fancy checkscheck elevation of Slovenian settlements. There where some errors on it:WP resulting in wrong elevation on wikidata. This gives the highest settlements by descending elevation.

Use at

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#>
SELECT DISTINCT ?_s ?_sLabel ?_sDescription ?elevation WHERE {
 SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?_s wdt:P17 wd:Q215.
?_s wdt:P31 wd:Q486972.
?_s wdt:P2044 ?elevation.
FILTER ( ?elevation > 1000 )
}

ORDER BY DESC(?elevation)
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?_s"):::projected v1("?elevation"):::projected c7(["wd:Q215"]):::iri c9(["wd:Q486972"]):::iri c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?elevation > '1000^^xsd:integer'"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end v2 --"wdt:P17"--> c7 v2 --"wdt:P31"--> c9 v2 --"wdt:P2044"--> v1