query-0d0c3d38cfbbb0b675140cb202c1a825

rq turtle/ttl

Scientific articles published in Nucleic Acid Reasearch and RNA this year

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#>
SELECT ?item ?itemLabel ?pub_date WHERE {
  ?item wdt:P31 wd:Q13442814.
  {?item wdt:P1433 wd:Q135122} UNION {?item wdt:P1433 wd:Q7277164 } 
  ?item wdt:P577 ?pub_date.
  BIND(year(?pub_date) AS ?year).
  BIND(year(NOW()) - 1 AS ?prev_year).
  FILTER(?year > ?prev_year)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v5("?prev_year") v4("?pub_date"):::projected v5("?year") c2(["wd:Q13442814"]):::iri c8(["bd:serviceParam"]):::iri c5(["wd:Q7277164"]):::iri c10(["#91;AUTO_LANGUAGE#93;, en"]):::literal c4(["wd:Q135122"]):::iri f0[["?year > ?prev_year"]] f0 --> v5 f0 --> v5 v3 --"wdt:P31"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P1433"--> c5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P1433"--> c4 end union0r <== or ==> union0l end v3 --"wdt:P577"--> v4 bind1[/"year-from-dateTime(?pub_date)"/] v4 --o bind1 bind1 --as--o v5 bind2[/"year-from-dateTime(NOW()) - '1^^xsd:integer'"/] bind2 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end