Support for targets in HDF5 datasets