A natural extension of Riemannian geometry to a much wider context is presented on the basis of the iterated differential form formalism developed in math.DG/0605113 and an application to general relativity is given.Comment: 12 pages, extended version of the published note Dokl. Math. 73, n. 2 (2006) 18