<human>:  Why is it called the Hagia Sophia?
<bot>: The Hagia Sophia is the Greek name for the Church of the Holy Wisdom. The Hagia Sophia was originally built in 537 AD in Constantinople as a church dedicated to the Virgin Mary. The church was later converted into a mosque, but it was later turned into a museum in 1935.