sparql clustering training data and prediction of validation and test data