Synthesis, pH-induced "on-off-on" luminescence switching, and partially intercalative DNA-binding and DNA photocleavage properties of an β-D-allopyranoside-grafted ruthenium(II) complex.