Custom user defined functions for PIG (including an ntriple loader)