@prefix ex: <https://sparql.rhea-db.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh:<http://www.w3.org/ns/shacl#> .

ex:97_Get_structural_data_of_a_given_ChEBI_compound a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
  rdfs:comment """Get structural data of a given ChEBI compound (CHEBI:29985 L-glutamate)"""@en ;
  sh:select """

#
# get structural data of a given ChEBI compound
#
PREFIX rh:<http://rdf.rhea-db.org/>
PREFIX CHEBI:<http://purl.obolibrary.org/obo/CHEBI_>
PREFIX chebihash:<http://purl.obolibrary.org/obo/chebi/>
SELECT
  ?chebi
  ?formula
  ?charge
  ?mass
  ?monoisotopicmass
  ?inchikey
  ?smiles
  ?inchi
WHERE {
  BIND (CHEBI:29985 AS ?chebi)
  ?chebi chebihash:inchi ?inchi ;
    chebihash:smiles ?smiles ;
    chebihash:formula ?formula ;
    chebihash:mass ?mass ;
    chebihash:charge ?charge ;
    chebihash:inchikey ?inchikey ;
    chebihash:monoisotopicmass ?monoisotopicmass .
}""";
 schema:target <https://sparql.rhea-db.org/sparql> .
