query-fea8071ef9443655f4f51a1fd0c93360

rq turtle/ttl

Propertiespublished in (P1433)publication date (P577)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?qid ?Den WHERE {
  ?item wdt:P1433 wd:Q55953029.
  ?item wdt:P577 ?pubdate.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  FILTER NOT EXISTS {
    ?item schema:description ?itemDesc.
    FILTER(LANG(?itemDesc) = "en")
  }
  BIND (ENCODE_FOR_URI(REPLACE(STR(?item), ".*Q", "Q")) AS ?qid)
  BIND (YEAR(?pubdate) AS ?pubyear)
  BIND (CONCAT("scientific article published in ", STR(?pubyear)) AS ?Den)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?Den"):::projected v2("?item") v1("?itemDesc") v3("?pubdate") v5("?pubyear") v4("?qid"):::projected c7(["bd:serviceParam"]):::iri c4(["wd:Q55953029"]):::iri c1(["en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?itemDesc = 'en'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v1 e0v2("?item"):::projected e0v1("?itemDesc"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f1[["?itemDesc = 'en'"]] f1 --> v1 v2 --"schema:description"--> v1 v2 --"wdt:P1433"--> c4 v2 --"wdt:P577"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c1 end bind2[/"encode-for-uri(replace(str(?item),'.*Q','Q'))"/] v2 --o bind2 bind2 --as--o v4 bind3[/"year-from-dateTime(?pubdate)"/] v3 --o bind3 bind3 --as--o v5 bind4[/"concat('scientific article published in ',str(?pubyear))"/] v5 --o bind4 bind4 --as--o v6