query-f913e24df6c4b9c2342118fdf9eff0e4
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?earliestDate ?latestDate
WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P31 wd:Q87167 .
{
SELECT ?item (MIN(?date) AS ?earliestDate) (MAX(?date) AS ?latestDate)
WHERE {
VALUES ?lifeDates { wdt:P569 wdt:P570 wdt:P1317 wdt:P2031 wdt:P2032 }
?item wdt:P6819 ?calligrapher .
?calligrapher ?lifeDates ?date .
}
GROUP BY ?item
}
FILTER ((YEAR(?latestDate) - YEAR(?earliestDate)) > 500)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?calligrapher")
v6("?date")
v7("?earliestDate"):::projected
v3("?item"):::projected
v7("?latestDate"):::projected
v4("?lifeDates")
c3(["bd:serviceParam"]):::iri
c7(["wd:Q87167"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?latestDate) - year-from-dateTime(?earliestDate) > '500^^xsd:integer'"]]
f0 --> v7
f0 --> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v3 --"wdt:P31"--> c7
bind1[/VALUES ?lifeDates/]
bind1-->v4
bind10(["wdt:P569"])
bind10 --> bind1
bind11(["wdt:P570"])
bind11 --> bind1
bind12(["wdt:P1317"])
bind12 --> bind1
bind13(["wdt:P2031"])
bind13 --> bind1
bind14(["wdt:P2032"])
bind14 --> bind1
v3 --"wdt:P6819"--> v5
v5 -->v4--> v6
bind4[/"min(?date)"/]
v6 --o bind4
bind4 --as--o v7
bind5[/"max(?date)"/]
v6 --o bind5
bind5 --as--o v7