Band-gaps and electronic-structure of transition-metal compounds