GO:0006807:   nitrogen compound metabolic process
The chemical reactions and pathways involving organic or inorganic compounds that contain nitrogen.