query-a83a29fede64b539f11f90d7a8faa938
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?locatedLabel ?provinciaLabel WHERE
{
{
SELECT ?item ?located WHERE {
?item wdt:P31 wd:Q486972;
wdt:P17 wd:Q38;
wdt:P131 ?located.
?located wdt:P31 wd:Q747074.
?located wdt:P131 ?provincia
FILTER NOT EXISTS {
?item schema:description ?itemdesc.
FILTER(LANG(?itemdesc) = "it") }
} } SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemdesc")
v3("?located")
v4("?provincia")
c4(["wd:Q486972"]):::iri
c6(["wd:Q38"]):::iri
c10(["bd:serviceParam"]):::iri
c1(["it"]):::literal
c8(["wd:Q747074"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?itemdesc = 'it'"]]
e0f0 --> e0v1
e0v2 --"schema:description"--> e0v1
e0v2("?item"):::projected
e0v1("?itemdesc"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?itemdesc = 'it'"]]
f1 --> v1
v2 --"schema:description"--> v1
v2 --"wdt:P31"--> c4
v2 --"wdt:P17"--> c6
v2 --"wdt:P131"--> v3
v3 --"wdt:P31"--> c8
v3 --"wdt:P131"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c1
end