SPARQL example query
3: Select all hamap rules that deal with Catalytic Activity
xxxxxxxxxx
6
1
SELECT ?rule ?query
2
WHERE
3
{
4
?rule sh:construct ?query .
5
FILTER (CONTAINS(?query, 'Catalytic_Activity_Annotation'))
6
}
4: Select all hamap rules that annotate a Rhea reaction with an EC enzyme class
xxxxxxxxxx
8
1
SELECT ?rule ?enzymeClass
2
WHERE
3
{
4
?rule a sp:Construct ;
5
sp:templates/rdf:rest*/rdf:first ?annotationsToAdd .
6
?annotationsToAdd sp:predicate up:enzymeClass ;
7
sp:object ?enzymeClass .
8
}