This was after Voltaire 's Semiramis .
The libretto by Gaetano Rossi is based on Voltaire 's tragedy Semiramis , which in turn was based on the legend of Semiramis of Babylon .