query-f7d60af314cf74fa46fa597abaabf846
Schools in Italy with Commune where this exists or a subclass of Q3914, and so will not appear in the report. (Q3914)school This is the skeleton for a report on IT schools ... can be expanded to include other properties. I've not checked, but there's every possibility that some of the schools you found do not have a P17 of Italy, or a P31 which is
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#>
SELECT ?item ?itemLabel ?commune ?communeLabel WHERE {
?item wdt:P31/wdt:P279* wd:Q3914.
?item wdt:P17 wd:Q38.
OPTIONAL {?item wdt:P131 ?commune}.
SERVICE wikibase:label { bd:serviceParam wikibase:language 'it' }
}
order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?commune"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
c5(["wd:Q38"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q3914"]):::iri
c10(["it"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end