Knowledge Representation: Unit 6
Knowledge Representation: Unit 6
Unit 6
Knowledge
Representation
Taibah University_CS Dept. CS 362_ Intelligent Systems
Knowledge Representation
Slide 2
Knowledge:
• Knowledge is part of a hierarchy.
• Knowledge refers to rules that are activated by facts or other rules.
• Activated rules produce new facts or conclusions.
• Conclusions are the end-product of inferences when done according
to formal rules.
Metaknowledge:
• Metaknowledge is knowledge about knowledge and expertise.
• Most successful expert systems are restricted to as small a domain
as possible.
• In an expert system, an ontology is the metaknowledge that
describes everything known about the problem domain.
Wisdom :
• Wisdom is the metaknowledge of determining the best goals of life
and how to obtain them.
Taibah University_CS Dept. CS 362_ Intelligent Systems
These two expressions have the same truth value; that is, the
second is true if and only if the first is true.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Associationist theories:
1. It defines the meaning of an object in terms of a network of
associations with other objects.
2. For the associationist, when humans perceive an object, that
perception is first mapped into a concept.
3. This concept is part of our entire knowledge of the world and
is connected through appropriate relationships to other
concepts.
4. These relationships form an understanding of the properties
and behavior of objects such as snow.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Semantics of Calculus
Slide 14
Associationist theory
Attach semantics to logical symbols and operators
Taibah University_CS Dept. CS 362_ Intelligent Systems
Semantics of Calculus(2)
Slide 15
For Example:
“if a bird is cardinal then it is red”
(associating the bird cardinal with the color red)
can be written in predicate calculus:
∀X((cardinal(X) →red(X))
∀X(┐red(X) → ┐cardinal(X))
These two expressions have the same truth value; that is, the
second is true if and only if the first is true.
15
Taibah University_CS Dept. CS 362_ Intelligent Systems
Semantic Networks(i)
Slide 16
Semantic Networks(ii)
Slide 17
Semantic Networks(iii)
Slide 18
Definition
• Represent knowledge as a graph
• Nodes correspond to facts or concepts
• Arcs correspond to relations or associations between concepts
• Nodes and arcs are labeled
Properties
• Labeled arcs and links
• Inference is to find a path between nodes
• Implement inheritance
• Variations – conceptual graphs
Taibah University_CS Dept. CS 362_ Intelligent Systems
Figure 7.1 Semantic network developed by Collins and Quillian in their research on
human information storage and response times (Harmon and King 1985).
Taibah University_CS Dept. CS 362_ Intelligent Systems
The fastest recall was for the traits specific to the bird, say, that
it can sing or is yellow.
Exception handling also seemed to be done at the most specific
level.
When subjects were asked whether an ostrich could fly, the
answer was produced faster than when they were asked
whether an ostrich could breathe. Thus the hierarchy
Ostrich → bird → animal seems not to be traversed to get the
exception information: it is stored directly with ostrich. This
knowledge organization has been formalized in inheritance
systems.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Inheritance systems
Slide 23
Figure 7.3 below, taken from a paper by Quillian (1967), illustrates three
planes that capture three different definitions of the word “plant:” a living
organism (plant 1), a place where people work (plant 2), and the act of
putting a seed in the ground (plant 3).
Taibah University_CS Dept. CS 362_ Intelligent Systems
Quillian Suggestion
Slide 31
Frames
Slide 35
Frames
Slide 36
[Minsky, 1981]:
A Frame is a collection of questions to be asked about a hypothetical
situation: it specifies issues to be raised and methods to be used in
dealing with them.
Each individual
frame may be
seen as a data
structure, similar
in many respects
to the traditional
“record”, that
contains
information
relevant to
stereotyped
entities.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Frame Slots(i)
Slide 40
Frame Slots(ii)
Slide 41
Frames -example
Slide 42
Graphs
Introduction to Conceptual Graphs
Types, Individuals, and Names
The Type Hierarchy
Generalization and Specialization
Propositional Nodes
Conceptual Graphs and Logic
Taibah University_CS Dept. CS 362_ Intelligent Systems
Graphs Review
Slide 45
Simple Graphs
Slide 46
Taibah University_CS Dept. CS 362_ Intelligent Systems
Conceptual graph
A finite, connected, bipartite graph
No arc labels , (why ? ).
Conceptual graphs do not use labeled arcs; instead the
conceptual relation nodes represent relations between
concepts. Because conceptual graphs are bipartite, concepts
only have arcs to relations, and vice versa.
Nodes
1. concept nodes – box nodes
Concrete concepts: cat, telephone, classroom, restaurant
Abstract objects: love, beauty, loyalty
2. conceptual relation nodes – ellipse nodes
Relations involving one or more concepts
Arity – number of box nodes linked to
Taibah University_CS Dept. CS 362_ Intelligent Systems
Nodes
1. Concept nodes – box nodes
Concrete concepts: cat, telephone, classroom, restaurant
(are characterized by our ability to form an image of them in our minds)
Abstract objects: love, beauty, loyalty
(that do not correspond to images in our minds.)
Boxes with the same type label represent concepts of the same
type; however, these boxes may or may not represent the same
individual concept
Each concept box is labeled with the names of the type and the
individual.
The type and individual labels are separated by a colon, “:”.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Type
A class, a concept
Types are organized into hierarchy
Individual -- Concrete entity
Name – Identifier of type and individual
Conceptual Graph
Concept box with type label indicating the class or type of individual
represented by a node
Label consists of ( type, :, and individual) boy: Ali
Unnamed individual labeled as marker: #<number> boy: #12354
Marker can separate an individual from name
Taibah University_CS Dept. CS 362_ Intelligent Systems
For example:
“Her name was McGill, and she called herself Lil,
but everyone knew her as Nancy”
Taibah University_CS Dept. CS 362_ Intelligent Systems
For example:
“The dog scratches its ear with its paw”.
Although we do not know which dog is scratching its ear, the
variable *X indicates that the paw and the ear belong to the same
dog that is doing the scratching.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Restriction Example
Slide 61
The join rule lets us combine two graphs into a single graph.
If there is a concept node c1 in the graph s1 that is identical to a
concept node c2 in s2, then we can form a new graph by
deleting c2 and linking all of the relations incident on c2 to c1.
Join is a specialization rule, because the resulting graph is less
general than either of its components.
Taibah University_CS Dept. CS 362_ Intelligent Systems
Join Example
Slide 63
Propositional Nodes
Slide 65