query-e6394153ec0f4fdf11c52e4fe0274597

rq turtle/ttl

TODO

Use at

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 ?item ?dod ?stct ?slct ?itemLabel ?itemDescription
{
    ?item wdt:P570 ?dod
    FILTER ( ?dod > "2016-07-30T00:00:00Z"^^xsd:dateTime)
    FILTER ( ?dod > (now()-"P32D"^^xsd:duration) && ?dod < now() )
    ?item wdt:P31 wd:Q5 .
    OPTIONAL { ?item wikibase:statements ?stct }
    OPTIONAL { ?item wikibase:sitelinks ?slct }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?dod) ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dod"):::projected v2("?item"):::projected v4("?slct"):::projected v3("?stct"):::projected c9(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c11(["en"]):::literal f0[["?dod > NOW() - 'P32D^^xsd:duration'?dod < NOW()"]] f0 --> v1 f1[["?dod > '2016-07-30T00:00:00Z^^xsd:dateTime'"]] f1 --> v1 v2 --"wdt:P570"--> v1 v2 --"wdt:P31"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wikibase:statements".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wikibase:sitelinks".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end