query-47c9f9a28897a39e2f5ec3fc93447e75
: ValterVB@ Removing the label calls (listeria bot will handle the labels), and replacing the count of the sitelinks with the hardcoded sitelink count in the RDF export, this query works :
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 DISTINCT ?item ?itemLabel ?date ?sl
WHERE
{
{
?item wdt:P21 wd:Q6581072 .
?item wikibase:sitelinks ?sl .
FILTER ( ?sl > 9)
?item wdt:P569 ?date .
FILTER (?date >= "1950-01-01T00:00:00Z"^^xsd:dateTime && ?date <= "1960-01-01T00:00:00Z"^^xsd:dateTime)
MINUS { ?item ^schema:about / schema:isPartOf <https://it.wikipedia.org/> }
}
?item wdt:P106 [] .
?item wdt:P31 wd:Q5 .
FILTER( ?item NOT IN (wd:Q4617, wd:Q15397819, wd:Q13406268, wd:Q4115189) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" }
}
ORDER BY ?date
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v2("?item"):::projected
v3("?sl"):::projected
a2((" "))
a1((" "))
c9(["wd:Q6581072"]):::iri
c14([https://it.wikipedia.org/]):::iri
c19(["bd:serviceParam"]):::iri
c21(["it,en"]):::literal
c17(["wd:Q5"]):::iri
f0[["?item != 'wd:Q4617'?item != 'wd:Q15397819'?item != 'wd:Q13406268'?item != 'wd:Q4115189'"]]
f0 --> v2
f1[["?date >= '1950-01-01T00:00:00Z^^xsd:dateTime'?date <= '1960-01-01T00:00:00Z^^xsd:dateTime'"]]
f1 --> v1
f2[["?sl > '9^^xsd:integer'"]]
f2 --> v3
v2 --"wdt:P21"--> c9
v2 --"wikibase:sitelinks"--> v3
v2 --"wdt:P569"--> v1
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
a1 --"schema:about"--> v2
a1 --"schema:isPartOf"--> c14
end
v2 --"wdt:P106"--> a2
v2 --"wdt:P31"--> c17
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c19 --"wikibase:language"--> c21
end