query-e493d04bb60f095dd13b3228b4bfa107

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 amb IPAC per protecció
SELECT ?item ?name ?coord ?lat ?lon ?layer
WHERE {
  ?item wdt:P1600 [].
  OPTIONAL {
  ?item wdt:P1435 ?prot.
?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.
  ?prot rdfs:label ?layer
}
}
#defaultView:Map

Query found at

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