Pig UDFs for the data2semantic project