A set of SPARQL examples that are used in LOTUS
Type of chemical entities with an InChI.
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Type of chemical entities with InChI
SELECT * WHERE {
    ?structure wdt:P31 wd:Q113145171.
    ?structure wdt:P234 ?inchi.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?inchi"):::projected 
  v1("?structure"):::projected 
  c2(["wd:Q113145171"]):::iri 
  v1 --"wdt:P31"-->  c2
  v1 --"wdt:P234"-->  v2