A set of SPARQL examples that are used in different SIB resources
protein that are enzymes
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
WHERE {
{
?protein ( up:enzyme | up:domain/up:enzyme | up:component/up:enzyme ) ?enzyme .
}
UNION
{
?protein up:annotation/up:catalyticActivity/up:catalyzedReaction ?rhea .}
UNION
{ ?protein up:annotation/rdf:type up:Catalytic_Activity_Annotation. }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?enzyme")
v1("?protein"):::projected
v3("?rhea")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c8(["up:Catalytic_Activity_Annotation"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"up:annotation"--> a5
a5 --"a"--> c8
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:annotation"--> a3
a3 --"up:catalyticActivity"--> a4
a4 --"up:catalyzedReaction"--> v3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v1 --"up:component"--> a2
a2 --"up:enzyme"--> v2
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:domain"--> a1
a1 --"up:enzyme"--> v2
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:enzyme"--> v2
end
union2r <== or ==> union2l
end
end
union0r <== or ==> union0l
end