query-db47bc422625226643320b9d4215701c

rq turtle/ttl

Display of focus list papers from 2020, with subjects where they have been added. SELECT ?item ?itemLabel ?date ?subjectLabel WHERE {?item wdt:P5008 wd:Q55439927; wdt:P577 ?date. OPTIONAL {?item wdt:P921 ?subject.} FILTER(year(?date) >= 2020)

     SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

     }

ORDER BY DESC(?date)

Use at

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#>
#Display of focus list papers from 2020, with subjects where they have been added.
SELECT ?item ?itemLabel ?date ?subjectLabel
  WHERE {?item wdt:P5008 wd:Q55439927;
               wdt:P577 ?date.
         OPTIONAL {?item wdt:P921 ?subject.}
         FILTER(year(?date) >= 2020)

         SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_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 v2("?item"):::projected v3("?subject") c7(["bd:serviceParam"]):::iri c3(["wd:Q55439927"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["year-from-dateTime(?date) >= '2020^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P5008"--> c3 v2 --"wdt:P577"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P921".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end