Professional Documents
Culture Documents
Ai Unit 3 Notes
Ai Unit 3 Notes
Unit
KNOWLEDGE REPRESENTATION
What is a Logic?
• Logic basically deals with the study of principles of reasoning. It is mainly concerned
about truth of the statements of the world.
• They are formal system in which formulas or sentences have true or false values.
• Logic involves syntax, semantics and inference procedure.
◦ Syntax: Specifies the symbols in the language about how they can be combined to
form sentences.
◦ Semantics: Specifies how to assign a truth value to a sentence based on its
meaning in the world.
◦ Inference procedure: Specifies methods for computing new sentences from the
existing sentences.
• Mapping of relationships:
◦ Let x and y are two sentences whose relationship is to be determined.
◦ One thing follows from another KB = α
◦ KB entails sentence α if and only if α is true in all worlds where KB is true.
◦ E.g. x+y=4 entails 4=x+y
◦ Entailment is a relationship between sentences that is based on semantics.
• Logics are of different types: Propositional logic, Predicate logic, Temporal logic
Modal logic and Description logic, etc.
• Among the above types predicate and propositional logic are fundamental.
3.2 Artificial Intelligence
◦ Propositional Logic – The study of statements and their connectivity.
◦ Predicate Logic – The study of individuals and their properties.
p Q ¬p p ∧q p∨q p ←q p →q p ↔q
An inference rule is a rule of the form (α1, α2, . . . , αn) /β, where α1, α2, . . . , αn are
sentences called conditions and β is a sentence called conclusion. Whenever we have a set of
sentences that match the conditions of an inference rule then we can conclude the sentence in the
conclusion.
Universal Quantifier: is a Quantifier meaning “given any” or “for all” the symbol used to
represent this quantifier is
It fails to capture some of the information in the English sentence, namely the notion of
past tense.
Whether this omission is acceptable or not depends on the use to which we intend to put
the knowledge.
Sometimes deciding which of several people of the same name is being referred to in a
particular statement may require a fair amount of knowledge and reasoning.
In English, the word "or" sometimes means the logical inclusive-or and sometimes means
the logical exclusive-or (XOR). Here we have used the inclusive interpretation. Some people will
argue, however, that this English sentence is really stating an exclusive-or.
A major problem that arises when trying to convert English sentences into logical
statements is the scope of quantifiers.
Does this sentence say, as we have assumed in writing the logical formula above, that for
each person there exists someone to whom he or she is loyal, possibly a different someone for
Knowledge Representation 3.7
everyone? Or does it say that there exists someone to whom everyone is loyal (which would be
written as ∃ y : ∀ x : loyalto(x,y))? Often only one of the two interpretations seems likely, so
people tend to favor it.
(7) People only try to assassinate rulers they are not loyal to.
∀ x : ∀ y : person(x) ∧ ruler(y) ∧ tryassassinate(x,y) → ¬ Ioyalto(x,y)
This sentence, too, is ambiguous. Does it mean that the only rulers that people try to
assassinate are those to whom they are not loyal (the interpretation used here), or does it mean
that the only thing people try to do is to assassinate rulers to whom they are not loyal?
In representing this sentence the way we did, we have chosen to write ''try to assassinate"
as a single predicate. This gives a fairly simple representation with which we can reason about
trying to assassinate. But using this representation, the connections between trying to assassinate
and trying to do other things and between trying to assassinate and actually assassinating could
not be made easily. If such connections were necessary, we would need to choose a different
representation.
This process require the search of an AND-OR graph when there is an alternative way of
satisfying individual goals. We show only a single path for simpler way.
The Below fig shows an attempt to produce a proof of the goal by reducing the set of
necessary but as yet anattained goals to the empty set. If attempt fails, there is no way to satisfy
the goal person with the available statements.
Problem Marcus was a man, need to add the representation of another fact to our system,
namely:
loyalto(Marcus, Caesar)
(7, substitution)
person (Marcus)
ruler(Caesar)
tryassassinated (Marcus, Caesar)
3.8 Artificial Intelligence
(4)
person (Marcus)
tryassassinate (Marcus, Caesar)
(8)
person (Marcus)
Fig shows An attempt to prove loyal to [Marcus, Caesar]
(9) All men are people.
∀ : man(x) → person(x)
Now we can satisfy the last goal and produce a proof that Marcus was not loyal to Caesar.
From this simple example, we see that three important issues must be addressed in the
process of converting English sentences into logical statements and then using those
statements to deduce new ones:
Strategies-
i) Reasoning backward from a proposed truth to the axioms and instead try to reason forward
and see which answer it gets to.
The problem with this approach is the Branching factor going forward from the axioms is
great that it would not get to either answer in any time.
Knowledge Representation 3.9
ii) Use some heuristic rules for deciding which answer is more likely and try to prove that
one first. If it fails to find a proof after some reasonable amount of some reasonable
amount of effort, it try other answer. Any proof procedure we use not halt if given a non
theorem.
iii) Try to prove both answers simultaneously and stop when one effort is successful. No
information to answer the question with certainity, the program never halt.
iv) Try both to prove one answer and disprove it, and to use information gained in one
process to guide the other.
Representing Instance and ISA Relationships:
1) man(Marcus)
2) Pompeian(Marcus)
3) x: Pompeian(x) Roman(x)
4) ruler (Caesar)
5) x: Roman (x) loyalto(x, Caesar) hate(x, Caesar)
1) instance(Marcus,man)
2) instance (Marcus, Pompeian)
3) x: instance(x, Pompeian) instance(x, Roman)
4) instance (Caesar,ruler)
5) x: instance (x, Roman) loyalto(x, Caesar) hate(x, Caesar)
1) instance(Marcus,man)
2) instance (Marcus, Pompeian)
3) isa: (Pompeian, Roman)
4) instance (Caesar,ruler)
5) x: instance (x, Roman) loyalto(x, Caesar) hate(x, Caesar)
6) x: y: z :instance (x, y) isa (y, z) instance (x, z)
Fig- shows Three ways of Representing Class Membership
The first five sentences of the last section represented in logic in three different ways.
(i) The first part of the figure contains the representations, in these representations,
class membership is represented with unary predicates, each corresponds to a
class. Asserting that p(x) is true is equivalent to asserting that x is an instance of p.
(ii) The second part of the figure contains representations that use the instance
predicate explicitly. The predicate instance is a binary one, whose first argument is
an object and whose second argument is a class to which the object belongs.
Representations use subclass relationships, such as that between pompeians and
3.10 Artificial Intelligence
Romans, are described in sentences 3. The implication rule states object is an
instance of the subclass Pompeian then it is an instance of the superclass Roman.
This rule is equivalent to the standard set-theoretic definition of the subclass-
superclass relationship.
(iii) The third part contains representations use both the instance and isa predicates
explicitly. Use of isa simplifies the representation of sentence 3, but requires one
additional axiom. It describes how an instance relation and an isa relation
combined to derive a new instance relation. This additional axiom is general and
not needed to be provided separately for additional isa relations.
It is that by permitting the inference of superclass membership, they permit the inference
of other properties associated with membership in that superclass.
gt(1, 0) lt(0,1)
gt(2, 1) lt(1, 2)
gt(3, 2) lt(2, 3)
Knowledge Representation 3.11
There are infinite representation of each of these fact. But if we consider the finite number
of them that can be represented, using a single machine word per number, extremely inefficient to
store explicitly large a set of statements. Instead, we compute each one as we need it.
gt (2 + 3, 1)
We compute the value of the plus function given the arguments 2 and 3 and then send the
arguments 5 and 1 to gt.
◦ Alg to convert any wff into conjunctive normal form, we lose no generality if we
employ a proof procedure that operates only on wff”s in this form.
3.12 Artificial Intelligence
◦ We need to reduce a set of wff’’s to a set of clauses, where a clause is defined to
be a wff in conjunctive normal form but with no instances of the connector A.
◦ Converting each wff into conjunctive normal form and then breaking apart each
such expression into clauses , one for each conjunct
◦ All conjuncts considered to be conjoined together as the proof procedure operates.
Example:
The Resulting clause is p V q, which is Horn Clause.
As we will see, Horn Clauses looks like the form we started with them the clause form we
just produced.
• Examples of PROLOG Horn clauses:
(i) PROLOG programs are composed only of Horn clauses and not of arbitrary
logical expressions has two important sequences.
a) First is that because of the uniform representation a simple and efficient
interpreter can be written
b) Second consequence is more important.
The logic of Horn clause systems is decidable
(ii) The control structure imposed on a PROLOG program by the PROLOG
interpreter is the one we used at the beginning to find the answer Cleopatra and
Marcus
(iii) The input to be program is a goal to be proved.
(iv) Backward reasoning is applied to prove the goal given the assertions in the
program.
(v) The program is read top to bottom, left to right and search is performed depth-
first with backtracking
• the above fig- shows an example of a knowledge base represented in std logical
notation and then in PROLOG.
Both Representations has 2 types of statements:
(i) Facts – contain only constants and Represent statements about specific objects.
(ii) Rules – Contain variables and Represent statements about classes of objects.
Procedural Representation:
(i) It causes a clause consisting of a disjunction of literals to be transformed into a single
implication whose antecedent is a conjunction of literals.
(ii) In a clause, all variables are implicitly universally quantified.
(iii) Applying this transformation, any variables that occurred in negative literals and now
occur in the antecedent become existentially quantified, while the variables in the
consequent are still universally quantified.
Example: The PROLOG clause
P(x) : -Q(x,y)
Equivalent to the logical expression
x : y : Q (x,y) p(x)
• The PROLOG interpreter begins looking for a fact with the predicate apartment or a
rule with that predicate as its head.
• PROLOG Programs are written with the facts containing a given predicate coming
before the rules for that predicate.
• Facts can be used immediately if they are appropriate and the rules used when the
desired fact is not available.
• There are no facts with this predicate, so the one rule must be used.
• Rule succeed if both of the clauses on its right-hand side can be satisfied the next thing
the interpreter try to prove each of them.
• There are no facts with the predicate pet but there are rules with it on the right-hand
side.
• There are 2 rules they will be tried in the order in which they occur:
(i) First will fail because there are no assertions about the predicate cat in the
program.
(ii) Second will eventually lead to success, using the rule about dogs and poodles and
using the fact poodle (fluffy)
• It results in the variable x being bound to fluffy
• Second clause small (x) of the initial rule must be checked.
• X is bound to fluffy, the more specific goal, small (fluffy), must be proved.
• This can be done by reasoning backward to the assertion poodle(Fluffy)
• The program then halts with the result apartmentpet (fluffy).
• Logical negation () can’t be represented explicitly in a pure PROLOG
Example:
It’s not possible to encode direct by the logical assertion
? – cat (Fluffy)
Would return false because it’s unable to prove that fluffy is a cat.
• This program returns the same answer when given the goal even though the program
knows nothing about Mittens and knows nothing that prevent Mittens from being a
cat.
• Negation by failure requires that we make what is called the closed world assumption,
which states that all relevant, true assertings are contained our K B.
• Any Assertion not present are assumed to be false.
• These assumptions are justified, cause serious problems when KB are incomplete
Disadvantage of LP
• Search control is fixed
Disadvantage of PROLOG:
• PROLOG code can be written that uses search strategies other than depth. First with
backtracking but its difficult to do.
• It is difficult to apply domain knowledge to constrain a search.
Advantage of PROLOG:
• PROLOG allow for rudimentary control of search through a non-logical operator
called cut.
• A cut can be inserted into a rule to specify a point that may not be backtracked over.
PROLOG programs composed of a restricted set of logical operators viewed as a
limitation of the expressiveness of the language.
3.3 UNIFICATION
In propositional logic it is easy to determine that two literals can not both be true at the
same time. Simply look for L and ~L . In predicate logic, this matching process is more
complicated, since bindings of variables must be considered.
For example man (john) and man(john) is a contradiction while man (john) and
man(Himalayas) is not. Thus in order to determine contradictions we need a matching procedure
that compares two literals and discovers whether there exist a set of substitutions that makes them
Knowledge Representation 3.19
identical . There is a recursive procedure that does this matching . It is called Unification
algorithm.
In Unification algorithm each literal is represented as a list, where first element is the
name of a predicate and the remaining elements are arguments. The argument may be a single
element (atom) or may be another list. For example we can have literals as
The Unification algorithm is listed below as a procedure UNIFY (L1, L2). It returns a list
representing the composition of the substitutions that were performed during the match. An empty
list NIL indicates that a match was found without any substitutions. If the list contains a single
value F, it indicates that the unification procedure failed.
This seems simple enough, but in this case we only had a few initial facts, and a few rules.
Generally, things will not be so straight forward. The Forward chaining inference stated above has
no rules.
The first part of the chain works back from the goal until only the initial facts are required,
at which point we know how to traverse the chain to achieve the goal state
3.6 RESOLUTION
Resolution yields a complete inference algorithm when coupled with any complete search
algorithm. Resolution makes use of the inference rules. Resolution performs deductive inference.
Resolution uses proof by contradiction. One can perform Resolution from a Knowledge Base. A
Knowledge Base is a collection of facts or one can even call it a database with all facts.
Resolution Algorithm:
Resolution basically works by using the principle of proof by contradiction. To find the
conclusion we should negate the conclusion. Then the resolution rule is applied to the resulting
clauses. Each clause that contains complementary literals is resolved to produce a two new clause,
which can be added to the set of facts (if it is not already present).This process continues until one
of the two things happen:
• There are no new clauses that can be added
• An application of the resolution rule derives the empty clause
3.22 Artificial Intelligence
An empty clause shows that the negation of the conclusion is a complete contradiction,
hence the negation of the conclusion is invalid or false or the assertion is completely valid or true.
We start by converting this first sentence into conjunctive normal fom. We don’t actually
have to do anything. It’s already in the right form. Now, “P implies R” turns into “not P or
R”. Similarly, “Q implies R” turns into “not Q or R .
Knowledge Representation 3.23
Now we want to add one more thing to our list of given statements. What's it going to be?
Not R. Right?We're gong to assert the negation of the thing we're trying to prove. We'd like to
prove that R follows from these things. But what we're going to do instead is say not R, and now
we're trying to prove false. And if we manage to prove false, then we will have a proof that R is
entailed by the assumptions.
And now, we look for opportunities to apply the resolution rule. You can do it in any order
you like (though some orders of application will result in much shorter proofs than others). We
can apply resolution to lines 1 and 2, and get “Q or R” by resolving away P. And we can take lines
2 and 4, resolve away R, and get “not P.” Similarly, we can take lines 3 and 4, resolve away R,
and get “not Q”. By resolving away Q in lines 5 and 7, we get R. And finally, resolving away R in
lines 4 and 8, we get the empty clause, which is false. We’ll often draw this little black box to
indicate that we’ve reached the desired contradiction.
“All Romans who know Marcus either hate Caesar or think that anyone who hates
anyone is crazy”
Example:
If the initial facts are “engine does not turn” and “battery is not flat”, the conflict set is:
{ 〈 R1, engine does not turn, battery is not flat 〉, 〈 R4, engine does not turn 〉 }
The easiest way to proceed in problem specific cases is to simply add extra conditions to
the rules to avoid the conflicts.
These extra conditions can be related to the inference strategies, e.g. to what is currently
being searched for, or to what rule applications tend to be most useful.
Modify R1in the previous example to give:
R1: IF: haven’t already tested starter motor
AND engine does not turn
AND battery is not flat
THEN: ask user to test starter motor
Disadvantages
1) Mixture of heuristics and factual knowledge are produced.
2) Large knowledge bases will not be easily maintainable.
Knowledge Representation 3.27
3.7 KNOWLEDGE REPRESENTATION
What is Knowledge?
The fact or condition of knowing something with familiarity gained through experience or
association". Knowledge consists of facts, concepts rules and so forth.
Mental images
Written text
Character strings
Binary number
Magnetic spots
Example:
If we wish to write a program to play a simple card game using the deck of 52 cards.
Need some ways to represent the cards dealt to each player and a way to express the rules.
Types of knowledge
The types of knowledge include procedural knowledge, declarative knowledge and
heuristic knowledge.
Procedural knowledge
Procedural knowledge is compiled or processed form of information. Procedural
knowledge is related to the performance of some task. For example, sequence of steps to solve a
problem is procedural knowledge.
Declarative knowledge
Declarative knowledge is passive knowledge in the form of statements of facts about the
world. For example, mark statement of a student is declarative knowledge.
Heuristic knowledge
3.30 Artificial Intelligence
Heuristics knowledge are rules of thumb or tricks. Heuristic knowledge is used to make
judgments and also to simplify solution of problems. It is acquired through experience. An expert
uses his knowledge that he has gathered due to his experience and learning.
The Below Fig shows the context of agents and their goals and behaviors
Representation of those facts in order to facitlitate getting information into and out of the
system. The above fig shows how these three kinds of objects relate to each other
Example:
English Sentence:
Spot is a dog.
The fact represented by that English sentence can also be represented in logic as:
dog(Spot)
Suppose that we also have a logical representation of the fact that all dogs have tails:
x: dog(x) hastail(x)
Then, using the deductive mechanism of logic, we may generate the new representation
object:
hastail(Spot)
Using an appropriate back ward mapping function, we could then generate the English
sentence:
Spot has a tail.
Or we make use of this representation of a new fact to cause us to take some appropriate
action or to derive representations of additional facts.
Mapping functions are not one – to – one in fact, they are often not even functions but
many – to- many relations.
Example:
Two sentences:
“All dogs have Tails” and
“Every dog has a Tail”.
Represent the same fact, that every dog has at least one tail.
(i) The former represent either the fact that every dog has atleast one tail or the fact
that each dog has several tails.
3.32 Artificial Intelligence
(ii) The letter represent either the fact that every dog has at least one tail or the fact
that there is a tail that every dog has.
◦ The starred links of above fig are key components of the design of any knowledge-
based program
◦ The internal representations of the facts should result in new structures that can be
interpreted as internal representations of facts.
◦ Internal representations of a facts correspond to the answer to the problem
described by the starting set of facts.
◦ Good representation makes the operation of a reasoning program trivial.
◦ A well-known example of this occurs in context of the multilated checker board
problem, which can be stated as follows:
Desired real
Intial reasoning Final facts
facts
Forward Backward
* representation representation *
mapping mapping
Internal Internal
representations of representations of
initial acts Operation of initial acts
program
Reason:
Representation provides very weak inferential capabilities but knowledge represented in
this form may serve as the input to more powerful inference engines.
Example:
Given just the facts of above fig, its not possible even to answer the simple question, “who
is the heaviest player?”
• Procedure for finding the heaviest player is provided, then these facts will enable the
procedure to compute an answer.
• We are provided with a set of rules for deciding which hitter to put up against a given
pitcher then this same relation can provide at least some of the information required by
those rules.
• Database systems are designed to provide support for relational database.
To support property inheritance, objects are organized into classes and classes must be
arranged in a generalization hierarchy.
The Below fig shows some additional baseball knowledge inserted into a structure that is
so arranged.
3.34 Artificial Intelligence
to
Baseball-player
isa: Adult-Male
bats: (EQUAL handed)
height: 6-1
batting-average .252
Using this technique, the knowledge base support retrival both of facts that have been
stored and of facts can be derived from those that are stored.
Inference Rule: When one asks questions to the KB, the answer follows from what has
been telled to the KB previously.
Levels:
Agents can be described at different levels
Wumpus world is a traditional example to learn about intelligent agents. Wumpus world is
basically a cave where each room is interconnected with others. Wumpus is a monster that eats
anyone who enters the room. An agent is the one who can shoot the wumpus with an arrow.
There are few pits in the rooms inside the cave. The payoff in the game is the gold that an agent
may acquire with or without killing the wumpus. The PEAS of the WUMPUS World is as
follows:
[1,1] KB initially contains the rules of the environment. First percept is [none,
none,none,none,none], move to safe cell e.g. 2,1
3.38 Artificial Intelligence
[2,1] Breeze which indicates that there is a pit in [2,2] or [3,1], return to [1,1] to try next
safe cell
[1,2] Stench in cell which means that wumpus is in [1,3] or [2,2] but not in [1,1]
YET … not in [2,2] or stench would have been detected in [2,1] THUS … wumpus is in
[1,3] THUS [2,2] is safe because of lack of breeze in [1,2] THUS pit in [3,1] move to next safe
cell [2,2]
[2,3] Detect glitter, smell, breeze Pick up gold THUS pit in [3,3] or [2,4]
Concluding the fact that wumpus is in [1, 3] is difficult without previous experience.
Hence it is reasoning that leads the agent to take correct actions and this is dependent on the
correctness of the facts. Thus making it clear that logical reasoning is the essence to have correct
conclusions.
Frames and scripts are used very extensively in a variety of AI programs. Before selecting
any specific knowledge representation structure, the following issues have to be considered.
3.40 Artificial Intelligence
(i) The basis properties of objects , if any, which are common to every problem domain
must be identified and handled appropriately.
(ii) The entire knowledge should be represented as a good set of primitives.
(iii) Mechanisms must be devised to access relevant parts in a large knowledge base.
Semantic Network
A semantic net (or semantic network) is a knowledge representation technique used for
propositional information. So it is also called a propositional net. Semantic nets convey meaning.
They are two dimensional representations of knowledge. Mathematically a semantic net can be
defined as a labelled directed graph.
Semantic nets consist of nodes, links (edges) and link labels. In the semantic network
diagram, nodes appear as circles or ellipses or rectangles to represent objects such as physical
objects, concepts or situations. Links appear as arrows to express the relationships between
objects, and link labels specify particular relations. Relationships provide the basic structure for
organizing knowledge. The objects and relations involved need not be so concrete. As nodes are
associated with other nodes semantic nets are also referred to as associative nets.
• Tom is a cat.
• Tom caught a bird.
• Tom is owned by John.
• Tom is ginger in colour.
• Cats like cream.
• The cat sat on the mat.
• A cat is a mammal.
• A bird is an animal.
• All mammals are animals.
• Mammals have fur
Knowledge Representation 3.41
Note that where we had an unnamed member of some class, we have had to introduce a
node with an invented name to represent a particular member of the class. This is a proces ssimilar
to the Skolemisation we considered previously as a way of dealing with existential quantifiers.
Classes are the focus of most ontologies. Classes describe concepts in the domain. For
example, a class of wines represents all wines. Specific wines are instances of this class. The
Bordeaux wine in the glass in front of you while you read this document is an instance of the
class of Bordeaux wines.
Physical Composition
• One object may be part of another:
◦ PartOf(Bucharest,Romania)
◦ PartOf(Romania,EasternEurope)
◦ PartOf(EasternEurope,Europe)
• The PartOf predicate is transitive (and irreflexive), so we can infer that
PartOf(Bucharest,Europe)
• More generally: More generally:
◦ ∀ x PartOf(x,x)
◦ ∀ x,y,z PartOf(x,y) ∧ PartOf(y,z) ⇒ PartOf(x,z) ƒ Often characterized by
structural relations among parts.
3.44 Artificial Intelligence
◦ E.g. Biped(a) ⇒
Situation calculus:
• Actions are logical terms
• Situations are logical terms consisting of
• The initial situation I
• All situations resulting from the action on I (=Result(a,s))
• Fluent are functions and predicates that vary from one situation to the next.
• E.g. ¬Holding(G1, S0)
• Eternal predicates are also allowed
• E.g. Gold(G1)
• Results of action sequences are determined by the individual actions.
• Projection task: an SC agent should be able to deduce the outcome of a sequence of
actions. • Planning task: find a sequence that achieves a desirable effect
• Simples Situation calculus requires two axioms to describe change:
Knowledge Representation 3.45
• Possibility axiom: when is it possible to do the action At(Agent,x,s) ∧ Adjacent(x,y)
⇒ Poss(Go(x,y),s)
• Effect axiom: describe changes due to action Poss(Go(x,y),s) ⇒
At(Agent,y,Result(Go(x,y),s))
Components of Reasoning:
• An unambiguous representation language
• Sound inference rules
• Well defined search strategies
Categories:
• Monotonic Reasoning – if a set of axioms are enlarged cannot retract any existing
axioms or assertions.
• Non – monotonic Reasoning – a logic is non-monotonic if some conclusions can be
invalidaded by adding new knowledge. It is useful in representing defaults.
• Deductive Reasoning – It allows to draw conclusions that must hold given a set of
premises (facts). The logic used here is deductive logic./specialization
• Inductive Reasoning – opposite of deductive reasoning, makes generalization based
on the results available for instances.
◦ Category – based induction
◦ Mental models
• Abductive Reasoning – It is similar to inverse process of applying a rule. (when q is
true, p is true)
◦ Even though they are not valid as per rules of logic, these reasoning serves good in
case where there is no information available. A measure of certainity is used to
decide whether to accept it or not.
• Default Reasoning – Common type of non-monotonic reasoning, based on what is
most likely to be true. These are used to make inferences in cases where the
information at hand is incomplete (absence of information). Conclusions drawn from
these type of rules are called defaults.
Semantic Networks
Logic vs. semantic networks
• Many variations are available
• All represent individual objects, categories of objects and relationships among objects.
• Allows for inheritance reasoning
• Female persons inherit all properties from person.
• Cfr. OO programming.
• Inference of inverse links
• SisterOf vs. HasSister
Alternative Notations Semantic Nets (a.k.a. „associative nets) and FOL sentences
represent same information in different formats:
Nodes correspond to terms marked out directed edges correspond to predicates ¾ they are
alternative notations for the same content, not in principle different representations!
What differs?
Missing existential quantifier Functions (extensions exist) Semantic nets additionally
provide pointers (and sometimes back pointers) which allow easy and highperformance
information access (e.g., to instances): INDEXING [ similar: frames ]
ISA-Hierarchy and Inheritance isa: “is a” “ist ein” inst: “instance of“ „Instanz von”
• Key concept in the tradition of semantic nets
• Instances inherit properties which we attribute to sets of individuals (classes).
• This can be propagates along the complete isa hierarchy
3.48 Artificial Intelligence
• Inheritance of properties
• Reason: Knowledge representation economy
• Search along isa- and inst-links to access information not directly associated (using
inheritance)
• inst: ∈ member of
• isa: ⊆ subset of
Semantic networks
Drawbacks
• Links can only assert binary relations
• Can be resolved by reification of the proposition as an event
• Representation of default values
• Enforced by the inheritance mechanism
Description Logics
• Are designed to describe defintions and properties about categories
◦ A formalization of semantic networks
• Principal inference task is
◦ Subsumption: checking if one category is the subset of another by comparing their
definitions
◦ Classification: checking whether an object belongs to a category.
◦ Consistency: whether the category membership criteria are logically satisfiable