sparql-examples

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

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

80_obsolete_mnemonic_also_known_as_id

List all UniProtKB protein ID (mnemonic) that where used in the past for current UniProtKB entries.

Use at

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

SELECT
  ?uniprot ?obsoleteMnemonic 
WHERE
{
  GRAPH <http://sparql.uniprot.org/uniprot> {
        ?uniprot a up:Protein ;
            up:oldMnemonic ?obsoleteMnemonic .
    }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?obsoleteMnemonic"):::projected 
  v1("?uniprot"):::projected 
  c2(["up:Protein"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:oldMnemonic"-->  v2