sparql-examples

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

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

28

Get the list of UniProtKB entries for the chromosome of proteome UP000000625

Use at

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

SELECT 
  ?protein
  ?proteome 
WHERE
{
  ?protein a up:Protein ;
           up:reviewed true ;
           up:proteome ?proteome .
  VALUES (?proteome) {(<http://purl.uniprot.org/proteomes/UP000000625#Chromosome>)}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?protein"):::projected 
  v3("?proteome"):::projected 
  c4(["true^^xsd:boolean"]):::literal 
  c2(["up:Protein"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:reviewed"-->  c4
  v1 --"up:proteome"-->  v3
  bind0[/VALUES ?proteome/]
  bind0-->v3
  bind00([http://purl.uniprot.org/proteomes/UP000000625#Chromosome])
  bind00 --> bind0