Representation of user profiles using optimised ontology