query-db08977b1221cf85bd9d56f72fe2327d

rq turtle/ttl

Pmt

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?mountain ?mountainLabel ?height ?coords
WHERE
{
#  ?mountain wdt:P31 / wdt:P279 * wd:Q8502 . # Mountain
  ?mountain wdt:P31 wd:Q8502 . # Mountain
  ?mountain wdt:P17 wd:Q20 . # in Norway
  ?mountain wdt:P131 + wd:Q50627 . # in Møre og Romsdal county
  OPTIONAL { ?mountain p:P2044 / psn:P2044 / wikibase:quantityAmount ?height . }
  OPTIONAL { ?mountain wdt:P625 ?coords . }
#  FILTER (?height > 500) # Uncomment this line to show mountains over 500 m only
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,no,nb,nn" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coords"):::projected v2("?height"):::projected v1("?mountain"):::projected a1((" ")) a2((" ")) c4(["wd:Q20"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en,no,nb,nn"]):::literal c12(["bd:serviceParam"]):::iri c6(["wd:Q50627"]):::iri c2(["wd:Q8502"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:direct/P17"--> c4 v1 --"p:direct/P131"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:P2044".-> a1 a1 --"p:statement/value-normalized/P2044"--> a2 a2 --"wikibase:quantityAmount"--> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P625".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end