sparql-examples

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

View the Project on GitHub ytirlet/sparql-examples

M58_module

rq turtle/ttl

annotation, catalytic activity and enzyme class

Use at

PREFIX up: <http://purl.uniprot.org/core/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?protein ?rhea ?enzymeClass
WHERE {
        ?protein up:annotation ?annotation.
        ?annotation up:catalyticActivity ?ca.
        ?ca up:catalyzedReaction ?rhea.
        OPTIONAL {
        ?ca up:enzymeClass ?enzymeClass.
        }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?annotation")
  v3("?ca")
  v5("?enzymeClass"):::projected 
  v1("?protein"):::projected 
  v4("?rhea"):::projected 
  v1 --"up:annotation"-->  v2
  v2 --"up:catalyticActivity"-->  v3
  v3 --"up:catalyzedReaction"-->  v4
  subgraph optional0["(optional)"]
  style optional0 fill:#bbf,stroke-dasharray: 5 5;
    v3 -."up:enzymeClass".->  v5
  end