query-9e54514c1c85282763a335d5aa7d0e60

rq turtle/ttl

Chemical compound with InChIKey but without PubChem CID and inverse

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?compound WHERE {
  ?compound wdt:P31 wd:Q11173 ;
            wdt:P235 ?inchikey
  OPTIONAL {?compound wdt:P662 ?d }
  FILTER (!bound(?d))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?compound"):::projected v1("?d") v3("?inchikey") c2(["wd:Q11173"]):::iri f0[["not bound(?d)"]] f0 --> v1 v2 --"wdt:P31"--> c2 v2 --"wdt:P235"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P662".-> v1 end