Geometry and Analysis of Dirichlet forms