Given the task definition and input, reply with output. Generate a correct and concise answer for the question based on the words in the context.

Context : Ernani is an operatic dramma lirico in four acts by Giuseppe Verdi to an Italian libretto by Francesco Maria Piave, based on the play Hernani by Victor Hugo.
Question : Which is the basis of Ernani?
Hernani