A set of SPARQL examples that are used in different SIB resources
List all UniProtKB proteins and if they are reviewed (Swiss-Prot) or unreviewed (TrEMBL)
PREFIX up: <http://purl.uniprot.org/core/>
SELECT
?protein
?reviewed
WHERE {
?protein a up:Protein .
?protein up:reviewed ?reviewed .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?protein"):::projected
v2("?reviewed"):::projected
c2(["up:Protein"]):::iri
v1 --"a"--> c2
v1 --"up:reviewed"--> v2