Curvature and Weitzenböck formula for spectral triples