sparql-examples

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

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

88_uniparc_linked_to_active_uniprot

Show for a given UniParc accessions which active UniProtKB entries have the same amino acid sequence

Use at

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

SELECT 
  ?uniparc
  ?uniprot
WHERE {
  GRAPH <http://sparql.uniprot.org/uniparc>{
    BIND(<http://purl.uniprot.org/uniparc/UPI000002DB1C> AS ?uniparc) 
    ?uniparc up:sequenceFor ?uniprot .
  }
  GRAPH <http://sparql.uniprot.org/uniprot> {
    ?uniprot a up:Protein .
  }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?uniparc"):::projected 
  v2("?uniprot"):::projected 
  c4(["up:Protein"]):::iri 
  bind0[/"http://purl.uniprot.org/uniparc/UPI000002DB1C"/]
  bind0 --as--o v1
  v1 --"up:sequenceFor"-->  v2
  v2 --"a"-->  c4