A proof of Sobolev inequalities on spaces of homogeneous type, for measure-valued Lagrangians that - as in the fractal case - may not have pointwise defined densities. We use an approach based on Riesz potential estimates.