Skip to content

Instantly share code, notes, and snippets.

@zaltoprofen
Created August 13, 2018 00:01
Show Gist options
  • Save zaltoprofen/5c1fb0641c5b32ea8a7e5a8ca2ca72e6 to your computer and use it in GitHub Desktop.
Save zaltoprofen/5c1fb0641c5b32ea8a7e5a8ca2ca72e6 to your computer and use it in GitHub Desktop.
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX vocab: <http://bio2rdf.org/drugbank_vocabulary:>
select distinct ?drug ?name ?SMILES where {
?drug rdf:type vocab:Small-molecule;
dcterms:title ?name;
vocab:calculated-properties ?props
filter regex(?name, 'profen$').
?props rdf:type vocab:SMILES;
vocab:value ?SMILES.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment