What is originally, one appointed to the command of a burg (fortress or castle); but the title afterward became hereditary, with a domain attached called?

burggrave — Originally, one appointed to the command of a burg (fortress or castle); but the title afterward became hereditary, with a domain attached. (Webster's 1913.)

Sources