Reconstruction and quantization of Riemannian structures