sparql-examples

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

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

96_uniprot_encoding_gene_name

rq turtle/ttl

List UniProtKB proteins with their associated gene and the gene's preffered name

Use at

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT ?protein
  ?gene 
WHERE {
  ?protein a up:Protein ;
           up:encodedBy ?gene .
  ?gene skos:prefLabel ?recommendedGeneName .
}
a
up:encodedBy
skos:prefLabel
?gene
?protein
?recommendedGeneName
up:Protein