A set of SPARQL examples that are used in different SIB resources
Find the Rhea and InterPro combinations in UniProtKB entries.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT
?interpro
?rhea
FROM <http://sparql.uniprot.org/uniprot>
WHERE
{
?protein up:reviewed true .
?protein up:annotation ?annotation .
?annotation up:catalyticActivity ?rhea .
?protein rdfs:seeAlso ?interpro .
?interpro up:database <http://purl.uniprot.org/database/InterPro> .
} ORDER BY ?rhea
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?annotation")
v4("?interpro"):::projected
v2("?protein")
v1("?rhea"):::projected
c2(["true^^xsd:boolean"]):::literal
c7([http://purl.uniprot.org/database/InterPro]):::iri
v2 --"up:reviewed"--> c2
v2 --"up:annotation"--> v3
v3 --"up:catalyticActivity"--> v1
v2 --"rdfs:seeAlso"--> v4
v4 --"up:database"--> c7