query-cbd6f6b6b423de02a1e0ec4970fa4ede

rq turtle/ttl

Theses

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#>
PREFIX target: <http://www.wikidata.org/entity/Q52>

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

  ?work ?workLabel 
  (CONCAT("#work/", SUBSTR(STR(?work), 32)) AS ?workUrl)
  ?workDescription
WHERE {
  ?work wdt:P31 / wdt:P279* wd:Q1266946 ;
        wdt:P921 / (wdt:P31| wdt:P279 | wdt:P361 | wdt:P1269)?  # Expensive: *
            target: .
  OPTIONAL { ?work 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") a1((" ")) a2((" ")) c10(["bd:serviceParam"]):::iri c3(["wd:Q1266946"]):::iri c5(["wd:Q52"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P921"--> a2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P1269"--> c5 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P361"--> c5 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P279"--> c5 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P31"--> c5 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P577".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 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