Transposition of chirality from diphosphonate metal-organic framework precursors onto porous lanthanide pyrophosphates.