Somalia ( Somali : Soomaaliya ; ) , officially the Republic of Somalia ( Somali : Jamhuuriyadda Soomaaliya ; ) and formerly known as the Somali Democratic Republic , is a country located in the Horn of Africa . Somalia , officially the Somali Republic and formerly known as the Somali Democratic Republic under communist rule , is a country located in the Horn of Africa .