A Riemannian Geometric Framework for Manifold Learning of Non-Euclidean Data