Learning Ordinal Preferences on Multiattribute Domains: the Case of CP-nets