sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

91_uniprot_alternative_protein_full_name

Alternative protein full names for UniProtKB entries

Use at

PREFIX up: <http://purl.uniprot.org/core/>

SELECT ?protein 
  ?fullName
WHERE {
  ?protein a up:Protein ;
           up:alternativeName ?recommendedName .
  ?recommendedName up:fullName ?fullName .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?fullName"):::projected 
  v1("?protein"):::projected 
  v2("?recommendedName")
  c2(["up:Protein"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:alternativeName"-->  v2
  v2 --"up:fullName"-->  v3