Re: Storing data and code in a Db with LISP-like interface
Date: 22 Apr 2006 18:33:41 -0700
Message-ID: <1145756021.449200.299370_at_i40g2000cwc.googlegroups.com>
>> Suppose we start with:
>> subtype(doctor, human).
>> subtype(engineer, human).
>> named_instance(john, doctor).
>> named_instance(mary, doctor).
>>
>> And now comes along an alien named bob, who has all the major
>> characteristics of a doctor, but he is not a human. How do I handle
>> this situation?
>
> By not being dumb, and by modelizing correctly the universe! doctor is a role, not a human being.
Now I am really dumbfounded. What is the definition of a class vs subType vs a role? And what exact steps can I take to determine which type of thing it is? What general questions can I ask, what general answers should I expect in order to determine if a thing is a class, subType or role? (my dictionary say a doctor is a person and nothing about a role).
Also if doctor is a role, would there be a statement such as: named_instance(doctor, role).
And what is a role? An atom? Received on Sun Apr 23 2006 - 03:33:41 CEST