sparql-examples

A set of SPARQL examples that are used in different TGX resources

View the Project on GitHub BiGCAT-UM/sparql-examples

056

rq turtle/ttl

Retrieves SMILES chemical structure notations for metabolites via their Wikidata links.

Use at

PREFIX wp: <http://vocabularies.wikipathways.org/wp#>
PREFIX cheminf: <http://semanticscience.org/resource/>

SELECT ?mol ?smilesDepict WHERE {
 ?mol wp:bdbWikidata/cheminf:CHEMINF_000018 ?smilesDepict .
} LIMIT 25
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?mol"):::projected 
  v2("?smilesDepict"):::projected 
  a1((" "))
  v1 --"wp:bdbWikidata"-->  a1
  a1 --"cheminf:000018"-->  v2