Here is the best solution:
git clone https://github.com/lindenb/jvarkit.git
cd jvarkit
./gradlew mapuniprot
wget ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.xml.gz
wget ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.xml.gz
java -jar ~/hpc/tools/jvarkit/dist/mapuniprot.jar -R ~/hpc/db/hg19/hg19.fa -u ~/hpc/uniprot_sprot.xml.gz -k knownGene.txt.gz -o uniprot_sprot.bed