Who was Capricorn named for?

Capricorn was named after the Goat-fish Oannes (in persian). Basically Capricorn was a mythic creature, a water-god of the ancients.