@prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:80_obsolete_mnemonic_also_known_as_id a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "List all UniProtKB protein ID (mnemonic) that where used in the past for current UniProtKB entries."@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX up: <http://purl.uniprot.org/core/>

SELECT
  ?uniprot ?obsoleteMnemonic 
WHERE
{
  GRAPH <http://sparql.uniprot.org/uniprot> {
        ?uniprot a up:Protein ;
            up:oldMnemonic ?obsoleteMnemonic .
    }
}""" ;
    schema:keywords "identifier" , "list" , "entry history" ; 
    schema:target <https://sparql.uniprot.org/sparql/> .

