lotus-sparql-examples

A set of SPARQL examples that are used in LOTUS

View the Project on GitHub lotusnprod/lotus-sparql-examples

wd_chemicals_stereoisomers_smiles_canonical

rq turtle/ttl

Stereoisomers with canonical SMILES.

Use at


PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Stereoisomers with canonical SMILES
SELECT ?structure ?smiles WHERE {
    ?structure wdt:P31 wd:Q59199015.
    ?structure wdt:P233 ?smiles.
}

graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?smiles"):::projected 
  v1("?structure"):::projected 
  c2(["wd:Q59199015"]):::iri 
  v1 --"wdt:P31"-->  c2
  v1 --"wdt:P233"-->  v2