query-c42cdd04a2ee83154a2b4ebfa4b85516

rq turtle/ttl

Missing literature query

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?ref ?refLabel ?taxonLabel
{
  VALUES ?topic1 { wd:Q908902 wd:Q7202 } 
  ?item p:P921 [ ps:P921 ?topic1; pq:P642 ?taxon ].
  ?taxon wdt:P171 wd:Q278567.
  ?item wdt:P2860 ?ref.
  MINUS { ?ref wdt:P921 wd:Q908902 }
  MINUS { ?ref wdt:P921 wd:Q7202 }
  OPTIONAL {
    ?ref wdt:P921 ?subj.
    ?subj wdt:P31 wd:Q16521
    }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item") v4("?ref"):::projected v5("?subj") v2("?taxon") v1("?topic1") a1((" ")) c15(["en"]):::literal c5(["wd:Q278567"]):::iri c8(["wd:Q908902"]):::iri c13(["bd:serviceParam"]):::iri c9(["wd:Q7202"]):::iri c11(["wd:Q16521"]):::iri bind0[/VALUES ?topic1/] bind0-->v1 bind00(["wd:Q908902"]) bind00 --> bind0 bind01(["wd:Q7202"]) bind01 --> bind0 a1 --"p:statement/P921"--> v1 a1 --"p:qualifier/P642"--> v2 v3 --"p:P921"--> a1 v2 --"p:direct/P171"--> c5 v3 --"p:direct/P2860"--> v4 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v4 --"p:direct/P921"--> c8 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v4 --"p:direct/P921"--> c9 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P921".-> v5 v5 --"p:direct/P31"--> c11 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end