5-knowledge-representation
5-knowledge-representation
4. Knowledge Representation
Akhtar Hussain
Representation Representation Representation
Logical Representations
Semantic Networks
Production Rules
Frames
4.1 Logical Representations
What is a Logic?
Lay down some concrete communication rules
– In order to give information to agents, and get info
Without errors in communication (or at least, fewer)
Think of a logic as a language
– Many ways to translate from one language to another
Expressiveness
– How much of natural language (e.g., English)
We are able to translate into the logical language
Not to be confused with logical reasoning
– “Sherlock Holmes used pure logic to solve that…”
– This is a process, not a language
Syntax and Semantics of Logics
Syntax
– How we can construct legal sentences in the logic
– Which symbols we can use (English: letters, punctuation)
– How we are allowed to write down those symbols
Semantics
– How we interpret (read) sentences in the logic
– i.e., what the meaning of a sentence is
Example: “All lecturers are six foot tall”
– Perfectly valid sentence (syntax)
– And we can understand the meaning (semantics)
– This sentence happens to be false (there is a counterexample)
Propositional Logic
Syntax
– Propositions such as P meaning “it is wet”
– Connectives: and, or, not, implies, equivalent
In English:
– “Every Monday and Wednesday I go to John’s
house for dinner”
In first order predicate logic:
X ((day_of_week(X, monday) day_of_week(X, weds))
(go_to(me, house_of(john) eat(me, dinner))).
Fuzzy logic
– Use probabilities, rather than truth values
Multi-valued logics
– Assertions other than true and false allowed
E.g., “unknown”
Modal logics
– Include beliefs about the world
Temporal logics
– Incorporate considerations of time
Why Logic is a Good
Representation
Logic
is not the only fruit
Humans draw diagrams all the time, e.g.,
– E.g. causal relationships:
John Sowa
Each graph represents a single proposition
Concept nodes can be:
– Concrete (visualisable) such as restaurant, my dog spot
– Abstract (not easily visualisable) such as anger
Edges do not have labels
– Instead, we introduce conceptual relation nodes
Many other considerations in the formalism
– See Russell and Norvig for details
Example Conceptual Graph
Advantage:
– Single relationship between multiple concepts is
easily representable
Production Rule Representations
Consists of <condition,action> pairs
Agent checks if a condition holds
– If so, the production rule “fires” and the action is carried out
– This is a recognize-act cycle
Given a new situation (state)
– Multiple production rules will fire at once
– Call this the conflict set
– Agent must choose from this set
Call this conflict resolution
Production system is any agent
– Which performs using recognize-act cycles
Example Production Rule