Protein by organism ID

Documentation: 
This query access official Uniprot SPARQL Endpoint to retrieve all those UniProt entries that are associated with a given organism (using as input their organism identifier). The results shown is a sequence variant that leads to an aminoacid to another aminoacid substitution.
Statement: 

Select UniProt entries, given a taxon ID $taxon$ (e.g. 83333). The result is the proteins and their amino acid sequences. You should introduce a maximun number of results to be retrieved $number$ (e.g.10).

Query: 
PREFIX up:<http://purl.uniprot.org/core/> PREFIX taxon:<http://purl.uniprot.org/taxonomy/> PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> SELECT ?protein ?aa WHERE { ?protein a up:Protein . ?protein up:organism ?organism . { ?protein up:organism taxon:??taxon. } UNION { ?protein up:organism ?organism . ?organism rdfs:subClassOf+ taxon:??taxon. } ?protein up:sequence ?s . ?s rdf:value ?aa } limit ??number