In property inheritance, elements inherit values from being members of a class.
- Data must be organized into a hierarchy of classes.
- This is shown in the figure below –
Here, the BOXED NODES represent objects and values of attributes of the objects.
- The VALUES can be objects with attributes, and so on.
- ARROWS point from object to its value.
- This structure is known as Slot and Filler structure, Semantic network, or a collection of frames.
Algorithm:
1. Find the object in the knowledge base.
2. If there is a value for the attribute, report it.
3. Otherwise, look for a value of instance, if none fail.
4. Otherwise, go to that node and find a value for the attribute, and then report it.
5. Otherwise, search through using isa until a value for the attribute is found.
No comments:
Post a Comment