Knowledge Representation Scheme
Knowledge Representation Scheme
Knowledge Representation
Problem: represent human knowledge into
computationally acceptable language
Desired Features
Exhaustiveness All needed information is in KB.
Modifiability new information can be added without sacrificing
consistency.
Homomorphic mapping of objects information organized in a
natural and intuitive fashion
Computational Efficiency
2
Knowledge Representation
Slot and filler structures are a way of representing information
in knowledge representation systems, which are used in artificial
intelligence and cognitive science to store and process
information in a structured format.
In a slot and filler structure, information is organized into
pairs of slots and fillers, where each slot corresponds to a
specific attribute or property, and the filler is the value
associated with that attribute or property.
This structure is particularly useful for representing structured
information about entities or objects.
3
Knowledge Representation
Slot: A slot represents a specific attribute or property of an
object or entity. It defines the type of information that is being
stored or represented. Slots can have names such as "color,"
"size," "weight," "name," "age," etc. These names indicate what
aspect of the object's description or properties is being captured.
Filler: The filler is the actual value or information associated
with a particular slot. It provides the specific data or content
related to the attribute represented by the slot. Fillers can be
values like text, numbers, dates, or references to other objects in
the knowledge representation system. For example, if we have a
slot "color," the filler might be "red."
4
Knowledge Representation
Here's a simple example to illustrate slot and filler structures:
Object: Car
Slot 1: Make
Filler: Toyota
Slot 2: Model
Filler: Camry
Slot 3: Year
Filler: 2022
Slot 4: Color
Filler: Blue
5
Knowledge Representation
Strong Slot and Filler Structures:
In strong slot and filler structures, there are strict constraints and
expectations regarding the types of fillers that can be associated
with each slot.
The types of fillers are predetermined and enforced rigorously.
This means that a slot can only be filled with a specific type of
value or object.
Strong slot and filler structures are often used in formal knowledge
representation systems, such as ontologies and databases, where
data integrity and consistency are crucial.
These structures ensure that the data is well-defined and adhere to
a strict schema or ontology.
6
Knowledge Representation
Strong Slot and Filler Structures:
Example of strong slot and filler structure:
Slot: Age
Filler: Numeric value (e.g., 35)
Slot: Name
Filler: Textual value (e.g., "John Smith")
Slot: Date of Birth
Filler: Date format (e.g., "1990-05-15")
7
Knowledge Representation
Weak Slot and Filler Structures:
In weak slot and filler structures, there are fewer constraints on
the types of fillers associated with slots.
The system allows for more flexibility, allowing a wider range of
data types or values to be associated with slots.
Weak slot and filler structures are often used in more flexible and
dynamic knowledge representation systems, such as natural
language processing applications or systems that need to handle
heterogeneous data sources.
These structures are less strict and adaptable to a broader variety
of data.
8
Knowledge Representation
Example of weak slot and filler structure:
Slot: Description
Filler: Textual value (e.g., "The car is blue and seats five
people.")
Slot: Price
Filler: Numeric value (e.g., 25000)
Slot: Owner
Filler: Reference to a person object (e.g., "John Smith")
9
Semantic Networks
Define objects in terms of their association with other objects
e.g. snow, white, snowman, ice, slippery.
The nodes correspond to facts or concepts, and the arcs to
relations or associations between concepts.
Both nodes and links are generally labeled.
Represent knowledge as a graph: Concepts
Relations
female
Persons
memberOf
mary
memberOf(femalePersons, mary)
12
Semantic Networks
Example
mammals
subsetOf
legs
Persons 2
subsetOf
subsetOf
female male
Persons Persons
memberOf memberOf
sisterOf legs
mary john 1
13
Semantic Networks
Inference Mechanism
Inheritance
e.g. Persons by default have 2 legs. How many legs does
Mary have? John?
Use of Inverse Links
e.g. hasSister(p, s) and sisterOf(s, p)
hasSister
inverseOf
sisterOf
14
Semantic Networks
Example
mammals
subsetOf
legs
hasMother Persons 2
subsetOf
subsetOf
female male
Persons Persons
memberOf memberOf
sisterOf legs
mary john 1
hasSister
15
Examples of Semantic Net (2)
My car is tan and John’s car is green
I
owner
color
car1 tan
is-a
car
is-a color
car2 green
owner
john
Inference in a Semantic Net (1)
Inheritance
the is-a and instance-of representation provide a
mechanism to implement this.
Inheritance also provides a means of dealing with
default reasoning
19
Semantic Networks - Disadvantages
Simple query language may be too limiting to express
complex queries.
20
Standardization of Network Relationships
21
A sentence is represented as a verb node, with various case
links to nodes representing other participants in the
action.
This structure is called a case frame.
Example:
Sarah fixed the chair with glue
22
Fig 7.5 Case frame representation of the sentence “Sarah fixed the chair with
glue.”
•These built-in relationships indicate that Sarah is the person doing the fixing
and that glue is used to put the chair together.
•These linguistic relationships are stored in a fashion that is independent of the
actual sentence or even the language in which the sentence was
expressed.
Conceptual Dependency (CD) theory
ACT (Actions):
Think of this as things people or things do. For example, running, jumping, eating -
these are all actions.
31
Semantic Networks
Conceptual Dependency Example
Example:
“John throws the ball”
O
John Ball
*PROPEL*
P O
John Ball
*PROPEL*
32
Fig 7.8 Some bacis conceptual dependencies and their use in representing more
complex English sentences, adapted from Schank and Colby (1973).
34
Example
● I gave a book to the man. CD representation is as follows:
P O R man (to)
I ATRANS book
I (from)
R John
CD Rep: John ATRANS
O Mary
book
PA
Rule 8: PP
PA
● It describes the relationship that describes the
change in state.
size > C
CD Rep: Tree
size = C
{x}
Rule 9:
{y}
● It describes the relationship between one
conceptualization and another that causes it.
− Here {x} causes {y} i.e., if x then y
semantics
Sentences with similar meaning will have similar
Disadvantages:
No program exists that can reliably reduce sentences to
canonical form.
Primitives not sufficient to represent more subtle concepts.
46
Scripts
A script is a structured representation describing a
stereotyped sequence of events in a particular context.(i.e.
if the system isn't told some detail of what's going on, it
assumes the "default" information is true).
Applications
This sort of knowledge representation has been used in intelligent
front-ends, for systems whose users are not computer specialists.
It has been employed in story-understanding and news-report-
understanding systems.
Components of Scripts
Restaurant Example cont.
51
Restaurant Example cont.
52
Advantages / Disadvantages of Script
● Advantages
− Capable of predicting implicit events
− Single coherent interpretation may be build up from a collection of
observations.
● Disadvantage
− More specific (inflexible) and less general than frames.
− Not suitable to represent all kinds of knowledge.
54
Frames Example
Fig: Part of a
frame
description of a
hotel room.
“Specialization”
indicates a
pointer to a
superclass.
Each individual frame may be seen as a data structure,
similar to the traditional "record", that contains
information relevant to stereotyped entities.
57
Formal Logic
• Advantages • Disadvantages
– Facts asserted – Separation of
independently of use representation and
processing
– completeness
– Inefficient with large data
sets
– Very slow with large
knowledge bases
58
Production Rules
Advantages Disadvantages
Simple syntax Hard to follow hierarchies
59
Semantic Networks
• Advantages • Disadvantages
– Easy to follow hierarchy • Meaning attached to
nodes might be
– Easy to trace association
ambiguous
– flexible • Exception handling is
difficult
• Difficult to program
60
Frames
• Advantages • Disadvantages
– Expressive power – Difficult to
program
– Easy to set up
– Difficult for
slots for new
inference
properties and
– Lack of
relations
inexpensive
– Easy to include software
default information
61