We want to TELL things to the KB, e.g.
TELL (KB, ∀x,King(x) ⇒Person(x)
TELL(KB, King(John)
These sentence are assertions
We also want to ASK things to the KB,
ASK(KB, ∃x,Person(x))
these are quires or goals
The KB should return the list of x's for which person(x) is true {x/John,x/Richard,...}
FOL Version of Wumpus World
Turn (Right), Turn(Left), Forward, Shoot, Grab, Release, ClimbTELL (KB, ∀x,King(x) ⇒Person(x)
TELL(KB, King(John)
These sentence are assertions
We also want to ASK things to the KB,
ASK(KB, ∃x,Person(x))
these are quires or goals
The KB should return the list of x's for which person(x) is true {x/John,x/Richard,...}
FOL Version of Wumpus World
- Typical percept sentence:
- Actions:
- To determine best action, construct query:
- ASK solves this and returns {a/Grab}
Knowledge Base for Wumpus World
- Perception
➝ ∀s,b,t Percept([s,b,Glitter],t) ⇒Glitter(t)
- Reflex
Knowledge engineering in FOL
- Identify the task
- Assemble the relevant knowledge
- Decide on a vocabulary of predicates,functions,and constants
- Encode general knowledge about the domain
- Encode a description of the specific problem instance
- Pose queries to the inference procedure and get answers
- Debug the knowledge base
No comments:
Post a Comment