That structure is called はが文. は indicates the subject, and the rest, for instance, 専攻が化学です is an explanation about the subject. There is another version in this structure, e.g., 学生は勉強が本分です. In this case, it can be rephrased to 学生の本分は勉強です, not 学生の勉強は本分です.