sparql-examples

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

View the Project on GitHub sib-swiss/sparql-examples

19_draft_human_metabolome

rq turtle/ttl

Generate a draft human metabolome

Use at

PREFIX chebislash: <http://purl.obolibrary.org/obo/chebi/>
PREFIX rh: <http://rdf.rhea-db.org/>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT
  ?uniprot ?mnemonic ?rhea ?chebi ?smiles ?inchiKey
WHERE
{
  ?rhea rh:side/rh:contains/rh:compound ?compound .
  ?compound (rh:chebi|(rh:reactivePart/rh:chebi)|(rh:underlyingChebi/rh:chebi)) ?chebi .
  ?chebi chebislash:smiles ?smiles ;
          chebislash:inchikey ?inchiKey .
  SERVICE <https://sparql.uniprot.org/sparql> {
     ?uniprot up:annotation/up:catalyticActivity/up:catalyzedReaction ?rhea ;
                                             up:organism taxon:9606 ;
                                             up:mnemonic ?mnemonic .

   }
}
https://sparql.uniprot.org/sparql
Union
Union
rh:side
rh:contains
rh:compound
rh:underlyingChebi
rh:chebi
rh:reactivePart
rh:chebi
rh:chebi
chebislash:smiles
chebislash:inchikey
up:annotation
up:catalyticActivity
up:catalyzedReaction
up:organism
up:mnemonic
or
or
?uniprot
?rhea
taxon:9606
?mnemonic
?compound
?chebi
?inchiKey
?smiles