query-26effbdb9a4d5c034bded4407b4c29e7
TODO
Use at
- https://query.wikidata.org/sparql
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#>
#title:Mappa degli IRIS
#defaultView:Map{ "markercluster": true}
SELECT ?iris ?irisLabel ?uni ?uniLabel ?sigla ?luogo ?luogoLabel ?coord ?layer
WHERE {
?iris wdt:P408 wd:Q107492957 .
?iris wdt:P126 ?uni .
OPTIONAL { ?uni wdt:P1813 ?sigla . }
OPTIONAL { ?iris wdt:P1687 ?p . }
OPTIONAL { ?uni wdt:P131 ?luogo . ?luogo wdt:P625 ?coord . }
BIND(IF(BOUND(?p),'P','no P') AS ?layer)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?layer)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?coord"):::projected
v2("?iris"):::projected
v8("?layer"):::projected
v6("?luogo"):::projected
v5("?p")
v4("?sigla"):::projected
v3("?uni"):::projected
c9(["bd:serviceParam"]):::iri
c2(["wd:Q107492957"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P408"--> c2
v2 --"wdt:P126"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1813".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1687".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v6
v6 --"wdt:P625"--> v7
end
bind0[/"if(bound(?p),'P','no P')"/]
v5 --o bind0
bind0 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end