query-72f48fc106dc7e39c4d5b29bfe581fdd

rq turtle/ttl

Recently published works

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 bd: <http://www.bigdata.com/rdf#>
PREFIX target1: <http://www.wikidata.org/entity/Q4744266>
PREFIX target2: <http://www.wikidata.org/entity/Q1492760>

SELECT DISTINCT
  (xsd:date(?publication_datetime) AS ?publication_date)

  ?work ?workLabel 
  (CONCAT("#work/", SUBSTR(STR(?work), 32)) AS ?workUrl)
  ?workDescription
WHERE {
  ?work wdt:P1433 target1: ;
        wdt:P921 # This is pretty expensive: / (wdt:P31| wdt:P279 | wdt:P361 | wdt:P1269)*
            target2: ;
        wdt:P577 ?publication_datetime .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?publication_datetime)
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?publication_date") v1("?publication_datetime"):::projected v2("?work"):::projected v4("?workUrl") c7(["bd:serviceParam"]):::iri c4([http://www.wikidata.org/entity/Q1492760]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2([http://www.wikidata.org/entity/Q4744266]):::iri v2 --"wdt:P1433"--> c2 v2 --"wdt:P921"--> c4 v2 --"wdt:P577"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind0[/"http://www.w3.org/2001/XMLSchema#date(?publication_datetime)"/] v1 --o bind0 bind0 --as--o v3 bind1[/"concat('#work/',substring(str(?work),'32^^xsd:integer'))"/] v2 --o bind1 bind1 --as--o v4