Knowledge Representation
Knowledge Representation
1
Outline
General ontology
Categories and objects
Events and processes
Reasoning systems
Internet shopping world
Summary
2
Ontologies
Categories of objects
Measures of quantities
Composite objects
Time, space, and change
Events and processes
Physical objects
Substances
Mental objects and beliefs
5
Top-level ontology of the world
Anything
AbstractObjects Events
Humans
6
Upper Ontology
7
Categories and objects
Categories are used to classify objects
according to common properties or definitions
x x Tomates Re d (x ) Round (x )
Categories can be represented by
Predicates: Tomato(x)
Objects: The constant Tomatoes represents set
of
tomatoes (reification)
Roles of category
Instance relations representations
(is- x 1 Tomatoes
a):
Taxonomical hierarchies (Subset): T om a toes F ru it
Inheritance of properties
(Exhaustive) decompositions
8
Categories using FOL
9
Properties of categories
• We say that two or more categories are disjoint if they have no members
in common.
• exhaustive decomposition
• A disjoint exhaustive decomposition is known as a partition.
• The following examples illustrate these three concepts:
11
Composite objects
• For example, we might want to say “The apples in this bag weigh two
pounds.”
• we need a new concept, which we will call a bunch.
• For example, if the apples are Apple1, Apple2, and Apple3, then
BunchOf ({Apple1,Apple2,Apple3})
∀x x∈ s ⇒ PartOf (x, BunchOf (s))
∀ y [∀x x∈ s ⇒ PartOf (x, y)] ⇒ PartOf (BunchOf (s), y)
• logical minimization, which means defining an object as the smallest one
satisfying certain conditions.
13
Measurements
Need to be able to represent properties
like height, mass, cost, etc. Values for such
properties are measures
Unit functions represent and convert
measures
Length( L1) Inches(1.5) Centimeters(3.81)
l Centimeters(2.54 l) Inches(l)
Measures can be used to describe objects
Mass(Tomato1) Ki log rams(0.16)
d d Days Duration(d ) Hours(24)
Non-numerical measures can also be represen-
ted, but normally there is an order (e.g. >).
Used in qualitative physics 14
Measurements
• Comparative difficulty
15
Objects: Things and stuff
18
Events
19
Processes
• The events we have seen so far are what we call discrete events
• Categories of events with sub-intervals are called process categories
or liquid event categories
20
Time intervals
Partition(Moments,ExtendedIntervals,Intervals)
i i Intervals (i Moments Duration(i) 0)
Functions Start and End delimit intervals
i Interval(i) Duration(i) (Time(End (i)) Time(Start
(i)))
May use e.g. January 1, 1900 as arbitrary time 0
Time(Start(AD1900))=Seconds(0)
21
Relations between time intervals
Meet(i, j) j
Before(i, j) i
After(j, i) j
i Can be
j expressed
During(i, j )
logically,
i e.g.
Overlap(i, j)
i, j Meet (i, j)
Overlap(j, i) j
Time(End (i))
Time(Start ( j))
22
Mental events and mental objects
23
Mental events
24
Modal Logic
25
Semantic networks
Natural
representation
of inheritance
and default
values
∀x x∈ Persons ⇒ [∀ y
HasMother (x, y) ⇒
y ∈ FemalePersons ] .
∀x x∈ Persons ⇒ Legs(x, 2) . 26
Semantic Network
Is a Human
Boy Being
a
a Is
Is
Goes to Needs
Woman
School Joe
a
Is
Has Food
a child
Kay
27
Other reasoning systems for categories
Description logics
Derived from semantic networks, but more
formal
Supports subsumption, classification and
consistency
Circumscription and default logic
Formalizes reasoning about default values
Assumes default in absence of other input; must
be
able to retract assumption if new evidence occurs
Truth maintenance systems
Supports belief revision in systems where
retracting belief is permitted
28
Internet shopping world
29
PEAS specification of shopping agent
Performance goal
Recommend product(s) to match user’s
description
Environment
All of the Web
Actions
Following links
Retrieve page contents
Sensors
Web pages: HTML, XML
30
Outline of agent behavior
33
Comparing offers
34
Summary
35