For example , a legate is similar to an admiral , but with considerably more political sway .
Cardassian military ranks are similar to those used by the United Federation of Planets , but with some key differences .