Porous magnesium carboxylate framework: synthesis, X-ray crystal structure, gas adsorption property and heterogeneous catalytic aldol condensation reaction.