query-12a4d9bc1c0e102290d337c03573de6b
TODO
Use at
- https://query.wikidata.org/sparql
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#>
#Località italiane con nomi che finiscono in "-acco"
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?coord
WHERE
{
{ ?item wdt:P31/wdt:P279* wd:Q1134686 . } UNION { ?item wdt:P31/wdt:P279* wd:Q15284 . }
?item wdt:P17 wd:Q38;
rdfs:label ?itemLabel;
wdt:P625 ?coord;
FILTER (lang(?itemLabel) = "it").
FILTER regex (?itemLabel, "acco$").
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
a2((" "))
c8(["wd:Q38"]):::iri
c5(["wd:Q1134686"]):::iri
c6(["wd:Q15284"]):::iri
f0[["regex(?itemLabel,'acco$')"]]
f0 --> v1
f1[["?itemLabel = 'it'"]]
f1 --> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
end
union0r <== or ==> union0l
end
v2 --"wdt:P17"--> c8
v2 --"rdfs:label"--> v1
v2 --"wdt:P625"--> v3