sparql-examples

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

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

101_uniprot_potential_isoforms

List all human UniProtKB entries and their computationaly mapped potential isoforms.

Use at

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

SELECT ?entry ?sequence ?isCanonical
WHERE {
  # We don't want to look into the UniParc graph which will 
  # confuse matters
  GRAPH <http://sparql.uniprot.org/uniprot> {
      # we need the UniProt entries that are human
      ?entry a up:Protein ;
        up:organism taxon:9606 ;
      # and we select the computationally mapped sequences
        up:potentialSequence ?sequence .
  }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v2("?sequence"):::projected 
  c2(["up:Protein"]):::iri 
  c5(["taxon:9606"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:organism"-->  c5
  v1 --"up:potentialSequence"-->  v2