query-4d07a2324fc47974cf27ea05902b7b25
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?itemLabel ?date (COUNT(distinct ?sitelink) as ?count)
WHERE
{
?item wdt:P21 wd:Q6581072 .
?item wdt:P569 ?date .
?item wdt:P31 wd:Q5 .
?item wdt:P106 [] .
?sitelink schema:about ?item .
FILTER (?date >= "1950-01-01T00:00:00Z"^^xsd:dateTime)
FILTER (?date < "1960-01-01T00:00:00Z"^^xsd:dateTime)
FILTER NOT EXISTS { ?wfr schema:about ?item . ?wfr schema:inLanguage "it" }
FILTER( ?item NOT IN (wd:Q4617, wd:Q15397819, wd:Q13406268, wd:Q4115189) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" }
}
GROUP BY ?item ?itemLabel ?date
HAVING (?count > 9)
ORDER BY ?date
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v1("?date"):::projected
v3("?item"):::projected
v5("?sitelink"):::projected
v4("?wfr")
a1((" "))
c8(["it"]):::literal
c12(["wd:Q6581072"]):::iri
c18(["bd:serviceParam"]):::iri
c20(["it,en"]):::literal
c15(["wd:Q5"]):::iri
f0[["?count > '9^^xsd:integer'"]]
f0 --> v6
f1[["?item != 'wd:Q4617'?item != 'wd:Q15397819'?item != 'wd:Q13406268'?item != 'wd:Q4115189'"]]
f1 --> v3
f2[["not "]]
subgraph f2e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v2("?item"):::projected
e0v1("?wfr"):::projected
e0c3(["it"]):::literal
end
f2--EXISTS--> f2e0
f2 --> v4
f2 --> c6
f2 --> v3
f2 --> c7
f2 --> c8
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> c8
f3[["?date < '1960-01-01T00:00:00Z^^xsd:dateTime'"]]
f3 --> v1
f4[["?date >= '1950-01-01T00:00:00Z^^xsd:dateTime'"]]
f4 --> v1
v3 --"wdt:P21"--> c12
v3 --"wdt:P569"--> v1
v3 --"wdt:P31"--> c15
v3 --"wdt:P106"--> a1
v5 --"schema:about"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c18 --"wikibase:language"--> c20
end
bind6[/"count(?sitelink)"/]
v5 --o bind6
bind6 --as--o v6