query-3fb55e4dd4d59671de9bca4aeb4311fc

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Monuments inventariats
SELECT ?item ?name ?coord ?lat ?lon
WHERE {
?item wdt:P1435 wd:Q28034408.
?item wdt:P131* wd:Q5705 .
  OPTIONAL {
?item wdt:P625 ?coord .
?item p:P625 ?coordinate .
?coordinate psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?lat .
?coordinate_node wikibase:geoLongitude ?lon .
  }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,an,eu,pl,sv,ceb" .
?item rdfs:label ?name
}
}
#defaultView:Map

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?coord"):::projected v3("?coordinate") v4("?coordinate_node") v1("?item"):::projected v5("?lat"):::projected v6("?lon"):::projected v7("?name"):::projected c13(["#91;AUTO_LANGUAGE#93;,ca,en,es,an,eu,pl,sv,ceb"]):::literal c4(["wd:Q5705"]):::iri c11(["bd:serviceParam"]):::iri c2(["wd:Q28034408"]):::iri v1 --"p:direct/P1435"--> c2 v1 --"p:direct/P131"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P625".-> v2 v1 --"p:P625"--> v3 v3 --"p:statement/value/P625"--> v4 v4 --"wikibase:geoLatitude"--> v5 v4 --"wikibase:geoLongitude"--> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 v1 --"rdfs:label"--> v7 end