Belief revision by examples