Two novel POM-based inorganic-organic hybrid compounds: synthesis, structures, magnetic properties, photodegradation and selective absorption of organic dyes.