query-280972b2eb80b91f33c2f9494890310b
idem per parchi regionali Lazio SELECT DISTINCT ?item ?itemLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". } { SELECT DISTINCT ?item WHERE { ?item p:P31 ?statement0. ?statement0 (ps:P31/(wdt:P279)) wd:Q6063204. ?item p:P131 ?statement4. ?statement4 (ps:P131/(wdt:P131)) wd:Q1282. ?item p:P4800 ?statement3. ?statement3 (ps:P4800) :anyValueP4800. } } MINUS { ?item p:P402 ?statement2. ?statement2 (ps:P402) :anyValueP402. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". } FILTER EXISTS { ?sitelink_it schema:about ?item; schema:isPartOf https://it.wikipedia.org/ . } } LIMIT 100
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#idem per parchi regionali Lazio
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q6063204.
?item p:P131 ?statement4.
?statement4 (ps:P131/(wdt:P131*)) wd:Q1282.
?item p:P4800 ?statement3.
?statement3 (ps:P4800) _:anyValueP4800.
}
}
MINUS {
?item p:P402 ?statement2.
?statement2 (ps:P402) _:anyValueP402.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
FILTER EXISTS { ?sitelink_it schema:about ?item;
schema:isPartOf <https://it.wikipedia.org/> .
}
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?sitelink_it")
v3("?statement0")
v6("?statement2")
v5("?statement3")
v4("?statement4")
a3((" "))
a4((" "))
a1((" "))
a2((" "))
c3([https://it.wikipedia.org/]):::iri
c11(["wd:Q6063204"]):::iri
c5(["bd:serviceParam"]):::iri
c15(["wd:Q1282"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,it"]):::literal
f0[[" "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v2("?item"):::projected
e0v1("?sitelink_it"):::projected
e0c3([https://it.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
v2 --"p:P31"--> v3
v3 --"p:statement/P31"--> a1
a1 --"p:direct/P279"--> c11
v2 --"p:P131"--> v4
v4 --"p:statement/P131"--> a2
a2 --"p:direct/P131"--> c15
v2 --"p:P4800"--> v5
v5 --"p:statement/P4800"--> a3
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:P402"--> v6
v6 --"p:statement/P402"--> a4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end