query-aa344fa1e7c8c1d8b20ab85daf63db9b

rq turtle/ttl

title: DOIs of works that are citing or cited by works published in a given venue PREFIX target: http://www.wikidata.org/entity/Q15758330

SELECT DISTINCT (ENCODE_FOR_URI(?doi_) AS ?doi) WITH { SELECT ?cite_work WHERE { ?cite_work wdt:P1433 target: . {?cite_work wdt:P2860 target: .} UNION {?cite_work ^wdt:P2860 target: .} } GROUP BY ?cite_work } AS %result WHERE { INCLUDE %result ?cite_work wdt:P356 ?doi_ . }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: DOIs of works that are citing or cited by works published in a given venue
PREFIX target: <http://www.wikidata.org/entity/Q15758330>

SELECT DISTINCT (ENCODE_FOR_URI(?doi_) AS ?doi)
WHERE {
   {
  SELECT  ?cite_work 
  WHERE {
    ?cite_work wdt:P1433 target: .
    {?cite_work wdt:P2860 target: .}
    UNION
    {?cite_work ^wdt:P2860 target: .}
  }
  GROUP BY ?cite_work
}  ?cite_work wdt:P356 ?doi_ .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?cite_work") v3("?doi") v2("?doi_"):::projected c2([http://www.wikidata.org/entity/Q15758330]):::iri v1 --"wdt:P1433"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; c2 --"wdt:P2860"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P2860"--> c2 end union0r <== or ==> union0l end v1 --"wdt:P356"--> v2 bind0[/"encode-for-uri(?doi_)"/] v2 --o bind0 bind0 --as--o v3