query-b93dce9fd5cf31f56f99f9a9f4c827c1
Décès des 7 derniers jours tinyurl.com/h6vt2ca
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?human ?humanLabel ?date
WHERE
{
?human wdt:P31 wd:Q5 .
?human wdt:P570 ?date .
FILTER(BOUND(?date) && DATATYPE(?date) = xsd:dateTime).
BIND(NOW() - ?date AS ?distance).
FILTER(0 <= ?distance && ?distance < 7).
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY DESC (?date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v4("?distance")
v3("?human"):::projected
c8(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c10(["en"]):::literal
f0[["'0^^xsd:integer' <= ?distance?distance < '7^^xsd:integer'"]]
f0 --> v4
f1[["bound(?date)?date = 'xsd:dateTime'"]]
f1 --> v1
v3 --"wdt:P31"--> c5
v3 --"wdt:P570"--> v1
bind2[/"NOW() - ?date"/]
v1 --o bind2
bind2 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end