This paper demonstrates the uses of techniques of artificial intelligence, logic programming in particular, to model revealed preference theory. An expert system for economic data analysis based on the logic representation of the consumer rational choice is proposed.