query-4a43af60d58fe6719bbc91fcf41208e6
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#mappa dei Cartigli di Bologna
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?itemcoord WHERE {
{?item wdt:P31/wdt:P279* wd:Q811979} UNION {?item wdt:P31 wd:Q1437299 .}
?item p:P9327 ?statement0.
?statement0 (ps:P9327) _:anyValueP9327.
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
?item wdt:P625 ?itemcoord .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?comune")
v4("?comunecoord")
v1("?item"):::projected
v5("?itemcoord"):::projected
v2("?statement0")
a2((" "))
a1((" "))
c10(["bd:serviceParam"]):::iri
c3(["wd:Q811979"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en, it, fr, es, de"]):::literal
c4(["wd:Q1437299"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P31"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
end
union0r <== or ==> union0l
end
v1 --"p:P9327"--> v2
v2 --"p:statement/P9327"--> a2
v1 --"p:direct/P131"--> v3
v3 --"p:direct/P625"--> v4
v1 --"p:direct/P625"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end