Professional Documents
Culture Documents
• Wisdom
IF I have money to keep my wife happy THEN I can retire and enjoy life.
Knowledge representation
• There are a number of advised knowledge representations
1. Rules.
2. Semantic nets.
3. Frames
4. Logic
rules
• Uses grammar to describe
Semantic nets
• Semantic net is a labelled, directed graph.
• A semantic net also called propositional net.
• Semantic net are also called associative nets.
• A proposition is a statement that either true or false.
• Semantic nets consists of
- Nodes(objects, concepts, situations).
- Ares connecting them (expressing relations).
Semantic net
Semantic nets relations types
• ISA “is-a” relates an instantaneous or individual to a class
• KO “kind of”. Relates a generic class to a more general class.
Semantic nets example
Semantic net limitations
• One problem is lack of standardization for link names. Consider for
example a node named chair. Definitive knowledge?
Semantic nets in Prolog
Parsing in language processing
Prolog revision
• Family tree Prolog example
Facts for family tree program
Questions asked to Prolog program(yes/no)
Questions that can be asked to Prolog
program(find X?)
Questions that can be asked to Prolog
program (find X and Y)
Grandparent role
Grandparent question
Extending the Prolog program
Defining a sister
Sister rule
Defining a rule using previous rules
Defining a rule using
Recursion in Prolog
Recursive rules
Recursive rules