Riemannian geometry from a noncommutative point of view