added few code snippets from FOAF Profile app