Knowledge Management
Knowledge Management
Knowledge Representation
Issues, Predicate Logic, Rules
How do we represent what we know ?
• Knowledge is a general term.
An answer to the question, "how to represent knowledge", requires an analysis to distinguish between knowledge “how”
and knowledge “that”.
■ knowing "how to do something".
e.g. "how to drive a car" is Procedural knowledge.
■ knowing "that something is true or false".
e.g. "that is the speed limit for a car on a motorway" is Declarative knowledge.
• knowledge and Representation are distinct entities that play a central but distinguishable roles in intelligent
system.
■ Knowledge is a description of the world.
It determines a system's competence by what it knows.
■ Representation is the way knowledge is encoded.
It defines the performance of a system in doing something.
• Different types of knowledge require different kinds of representation.
The Knowledge Representation models/mechanisms are often based on:
◊ Logic ◊ Rules
◊ Frames ◊ Semantic Net
• Different types of knowledge require different kinds of reasoning.
03
1. Introduction
Knowledge is a general term.
Knowledge is a progression that starts with data which is of limited utility.
By organizing or analyzing the data, we understand what the data means, and this becomes
information.
The interpretation or evaluation of information yield knowledge.
An understanding of the principles embodied within the knowledge is wisdom.
• Knowledge Progression
different domains.
The table below shows a simple way to store facts.
− The facts about a set of objects are put systematically in columns.
Procedural knowledge:
Here the knowledge is a mapping process between domains that specifies “what to do when”
and the representation is of “how to make it” rather than “what it is”.
Example : a parser in a natural language has the knowledge that a noun phrase may
contain articles, adjectives and nouns. It thus accordingly call routines that know how
to process articles, adjectives and nouns.
Four General Representation Types
• Logical Representations
• Semantic Networks
• Production Rules
• Frames
Knowledge represented as “symbol structures”
Symbol that characterize bits of knowledge about objects, concepts, facts, rules,
strategies;
examples : “red” represents colour red;
“car1” represents my car ;
"red(car1)" represents fact that my car is red.
Assumptions about KR :
− Intelligent Behavior can be achieved by manipulation of symbol structures.
− KR languages are designed to facilitate operations over symbol structures,
- have precise syntax and semantics;
Syntax tells which expression is legal ?,
e.g., red1(car1), red1 car1, car1(red1), red1(car1 & car2) ?; and
Semantic tells what an expression means ?
e.g., property “dark red” applies to my car.
− Make Inferences, draw new conclusions from existing facts.
To satisfy these assumptions about KR, we need formal notation that allow
automated inference and problem solving. One popular choice is use of logic.
Logic Representation
The Facts are claims about the world that are True or False.
Logic can be used to represent simple facts.
◊ Contradictions
A proposition that is always false is called a contradiction.
e.g., (P ∧ ¬P) is always false regardless of the truth value of the proposition P.
◊ Contingencies
A proposition is called a contingency, if that proposition is neither a tautology nor a
contradiction
e.g., (P v Q) is a contingency.
◊ Antecedent, Consequent
In the conditional statements, p → q , the
1st statement or "if - clause" (here p) is called antecedent ,
2nd statement or "then - clause" (here q) is called consequent.
34
Summing up Propositional Logic
• It is a way of representing knowledge in a logic
and mathematical form.
• Sentences that are just not arbitrary but are facts
are either true of false nut not both are
proposition.
A => It is rainy
B => It is hot Propositions represented by
symbols
C=> It is humid
• When basic propositions are connected using
connectives it becomes Propositional logic or
PL
A => It is rainy
B => It is hot
C=> It is humid
Consider example :
“All men are mortal.
Socrates is a man.
Then Socrates is mortal” ,
These cannot be expressed in propositional logic as a finite and logically valid argument
(formula).
We need languages : that allow us to describe properties (predicates) of objects, or a
relationship among objects represented by the variables .
2. Quantify the variable using a quantifier on formulas of predicate logic (called wff ), such as x > 1 or P(x), by using Quantifiers on
variables.
quantifier
Predicate Logic Quantifiers
and
existential quantifiers , denoted by symbol
Universe of Discourse
The universe of discourse, also called domain of discourse or universe.
This indicates :
− a set of entities that the quantifiers deal.
− entities can be set of real numbers, set of integers, set of all cars on a parking
lot, the set of all students in a classroom etc.
− universe is thus the domain of the (individual) variables.
The universe is often left implicit in practice, but it should be obvious from the
context.
Examples:
− About natural numbers forAll x, y (x < y or x = y or x > y),