query-c749b91bbd03ab8515da3a9cb08b1975

rq turtle/ttl

Chemical compound with InChI but without InChIKey

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:P234 ?inchi
  OPTIONAL {?compound wdt:P235 ?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("?inchi") c2(["wd:Q11173"]):::iri f0[["not bound(?d)"]] f0 --> v1 v2 --"wdt:P31"--> c2 v2 --"wdt:P234"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P235".-> v1 end