sparql-examples

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

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

105_uniprot_recomended_protein_short_name

The recommended protein short names for UniProtKB entries

Use at

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

SELECT ?protein 
  ?fullName
WHERE {
  ?protein a up:Protein ;
           up:recommendedName ?recommendedName .
  ?recommendedName up:shortName ?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:recommendedName"-->  v2
  v2 --"up:shortName"-->  v3