@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#> .
@prefix spex:<https://purl.expasy.org/sparql-examples/ontology#> .

ex:92_uniprot_bioregistry_iri_translation a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Translate the global unique identifier for a UniProtKB record into other options using the bioregistry translating endpoint."@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX uniprotkb: <http://purl.uniprot.org/uniprot/>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT 
    ?protein 
    ?otherIdentifier
WHERE {
    BIND(uniprotkb:P00750 AS ?protein)
    ?protein a up:Protein .
    SERVICE <https://bioregistry.io/sparql> {
        ?protein owl:sameAs ?otherIdentifier .
    }
}""" ;
    schema:keywords "mapping" , "identifier" ;
    schema:target <https://sparql.uniprot.org/sparql/> ;
    spex:federatesWith <https://bioregistry.io/sparql> .

