Bayesian nonparametric prediction with multi-sample data