query-e071e32572a0526b5cdee05cfb2a1b5f

rq turtle/ttl

TODO

Use at

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#>
#coordenades de muntanyes dels Pirineus Orientals
SELECT DISTINCT ?muntanya ?muntanyaLabel ?lat ?lon ?altitud ?coord
WHERE {
  ?muntanya wdt:P31 wd:Q8502.
  ?muntanya wdt:P131* wd:Q12709.
  ?muntanya p:P625 ?coordinate .
  ?muntanya wdt:P625 ?coord.
?coordinate psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?lat .
?coordinate_node wikibase:geoLongitude ?lon .
OPTIONAL {?muntanya wdt:P2044 ?altitud.}
  SERVICE wikibase:label {
bd:serviceParam wikibase:language 'ca' . } 
}
#defaultView:Map

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?altitud"):::projected v3("?coord"):::projected v2("?coordinate") v4("?coordinate_node") v5("?lat"):::projected v6("?lon"):::projected v1("?muntanya"):::projected c4(["wd:Q12709"]):::iri c12(["bd:serviceParam"]):::iri c2(["wd:Q8502"]):::iri c14(["ca"]):::literal v1 --"p:direct/P31"--> c2 v1 --"p:direct/P131"--> c4 v1 --"p:P625"--> v2 v1 --"p:direct/P625"--> v3 v2 --"p:statement/value/P625"--> v4 v4 --"wikibase:geoLatitude"--> v5 v4 --"wikibase:geoLongitude"--> v6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P2044".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end