A set of SPARQL examples that are used in different SIB resources
List UniProtKB proteins with their associated named gene
PREFIX up: <http://purl.uniprot.org/core/>
SELECT ?protein
?gene
WHERE {
?protein a up:Protein ;
up:encodedBy ?gene .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?gene"):::projected
v1("?protein"):::projected
c2(["up:Protein"]):::iri
v1 --"a"--> c2
v1 --"up:encodedBy"--> v2