@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:uniprot_encoding_gene_name_alternative_name a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "List UniProtKB proteins with their associated gene and the gene's names that are used in the field, but not recommended for use by UniProtKB"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT ?protein
  ?gene ?altGeneName
WHERE {
  ?protein a up:Protein ;
           up:encodedBy ?gene .
  ?gene skos:altLabel ?altGeneName .
}""" ;
    schema:keywords "list" , "gene name" ;
    schema:target <https://sparql.uniprot.org/sparql/> .

