sparql-examples

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

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

4

rq turtle/ttl

Select all hamap rules that annotate a Rhea reaction with an EC enzyme class

Use at

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sp: <http://spinrdf.org/sp#>
PREFIX up: <http://purl.uniprot.org/core/>


SELECT ?rule ?enzymeClass
WHERE
{
 ?rule a sp:Construct ;
     sp:templates/rdf:rest*/rdf:first ?annotationsToAdd .
 ?annotationsToAdd sp:predicate up:enzymeClass ;
                   sp:object ?enzymeClass .
}