CSE 415 -- (c) S. Tanimoto, 2008 ISA Hierarchies 1 ISA Hierarchies: A Basis for Knowledge Representation with Semantic Networks Outline: Introduction The.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

Equivalence Relations
Relations Relations on a Set. Properties of Relations.
Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
Intelligent systems Lecture 6 Rules, Semantic nets.
The Engineering Design of Systems: Models and Methods
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Relations & Their Properties. Copyright © Peter Cappello2 Introduction Let A & B be sets. A binary relation from A to B is a subset of A x B. Let R be.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
CSE (c) S. Tanimoto, 2007 ISA Hierarchies 1 ISA Hierarchies: A Basis for Knowledge Representation with Semantic Networks Outline: The Directed Acyclic.
Discrete Mathematics Lecture#11.
Chapter 3: Methods of Inference Expert Systems: Principles and Programming, Fourth Edition.
1 Software Testing Techniques CIS 375 Bruce R. Maxim UM-Dearborn.
Relations Chapter 9.
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
Lecture 10 – Semantic Networks 1 Two questions about knowledge of the world 1.How are concepts stored? We have already considered prototype and other models.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 Relations.
Introduction to Graph “theory” Why do we care about graph theory in testing and quality analysis? –The “flow” (both control and data) of a design, within.
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
Digraphs and Relations Warm Up. The Divisibility Relation Let “|” be the binary relation on N×N such that a|b (“a divides b”) iff there is an n ∈ N such.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
CSE (c) S. Tanimoto, 2005 Knowledge Representation 1 Knowledge Representation (Introduction) Knowledge Information Data Knowledge representation:
Discrete Mathematics Relation.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Announcements Project 4: Ghostbusters Homework 7
CS 267: Automated Verification Lecture 3: Fixpoints and Temporal Properties Instructor: Tevfik Bultan.
Relations and their Properties
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Mathematical Preliminaries
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Section 4.4 Properties of Relations. Order Relations Draw an arrow diagram for the relation R defined on the set {1,2,3,4} such that
1 How is knowledge stored? Human knowledge comes in 2 varieties: Concepts Concepts Relations among concepts Relations among concepts So any theory of how.
Equivalence Relations. Partial Ordering Relations 1.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Knowledge Representation. Keywordsquick way for agents to locate potentially useful information Thesaurimore structured approach than keywords, arranging.
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
Chapter Relations and Their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Invitation to Computer Science, Java Version, Second Edition 1 Logic Programming Logic programming  Various facts are asserted to be true  On the basis.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Chap. 7 Relations: The Second Time Around
Of 29 lecture 15: description logic - introduction.
Artificial Intelligence Knowledge Representation.
Definition and Technologies Knowledge Representation.
Chapter 12. Probability Reasoning Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Knowledge Representation Techniques
Chapter 3: Methods of Inference
Learn about relations and their basic properties
Chapter 3: Methods of Inference
Applied Discrete Mathematics Week 9: Equivalence Relations
CAP 5636 – Advanced Artificial Intelligence
8.5 Equivalence Relations and 8.6 Partial Ordering
KNOWLEDGE REPRESENTATION
CS 188: Artificial Intelligence
Knowledge Representation (Introduction)
Knowledge Representation (Introduction)
Semantic Nets and Frames
9.5 Equivalence Relations
Knowledge Representation (Introduction)
Probabilistic Reasoning
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Presentation transcript:

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 1 ISA Hierarchies: A Basis for Knowledge Representation with Semantic Networks Outline: Introduction The Directed Acyclic Graph example Binary relations Partial orders Inferences from partial orders Redundancy detection Valid and invalid inheritance HAS links Preparing for inference: machine representation The Linneus.py program Maintaining ISA hierarchies Other kinds of semantic networks

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 2 Knowledge Representation Expert (intelligent) behavior requires knowledge + inference. Are there differences among “data,” “information,” and “knowledge?” Knowledge Information Data Knowledge representation is representation of information with support for inference.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 3 The First Semantic Network Diagram: Tree of Porphyry 3 rd century AD, by the Greek philosopher Porphyry, illustrating Aristotle’s categories. (Taken from an article by John Sowa – this version based on a drawing by Peter of Spain in 1329.)

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 4 Example of Declarative Representation: An “Isa” Hierarchy Living-thing PlantAnimal Bird Fish Aquatic-birdLand-bird Great-blue-heron

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 5 Inference with Isa Hierarchies “A great-blue-heron is an aquatic-bird.” Isa(great-blue-heron, aquatic-bird). “An aquatic-bird is a bird.” Isa(acquatic-bird, bird). “Is a great-blue-heron a bird?” Isa(great-blue-heron, bird)? “Isa” represents a relation which has certain properties that support types of inference.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 6 Binary Relations A binary relation R over a domain D is a set of ordered pairs (x,y) where x and y are in D. For example, we could have, D = {a,b,c,d} R = {(a, b), (c, a), (d, a)} If (x, y) is in R, then we write R(x, y) or x R y.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 7 Partial Orders If for each x in D we have x R x, then R is reflexive. If for each x in D and y in D we have x R y and y R x imply x = y, then R is antisymmetric. If for each x in D, y in D, and z in D we have x R y and y R z imply x R z, then R is transitive. If R has all 3 properties, R is a partial order.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 8 Example of a Partial Order Let D = the real numbers Let R 0 = { (x, y) | x  y } R 0 is reflexive, because for all x, x  x. R 0 is antisymmetric, because for all x, y: if (x  y) and (y  x) then x = y. R 0 is transitive, because for all x, y, z: if (x  y) and (y  z) then (x  z).

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 9 Examples of the Partial Order Properties Isa is reflexive: A bear is a bear. -> Isa(bear, bear) Isa is antisymmetric: A bear is a wowie, and a wowie is a bear. Therefore, bear and wowie represent the same things. Isa(bear, wowie) & Isa(wowie, bear) -> bear = wowie Isa is transitive: A grizzly is a bear, and a bear is a mammal. Therefore, a grizzly is a mammal. Isa(grizzly, bear) & Isa(bear, mammal) -> Isa(grizzly, mammal)

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 10 Redundant Facts Any fact implied by others via the reflexive, antisymmetric, or transitive properties of a partial order can be considered redundant. Suppose a <= b b <= c c <= b Then a <= c is redundant. a <= a is redundant. b and c could be represented by one name.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 11 Inheritance of Properties via Isa A fox is a mammal. A mammal bears live young Therefore a fox bears live young.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 12 Non-inheritance of Certain Properties A neutron is an atomic particle. There are three types of atomic particles. Therefore there are three types of neutrons (??)

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 13 The “HAS” Relation “A car has a wheel.” x HAS y = An x has a y as a part. “A person has a head.” “A head has a face.” “Therefore a person has a face.” “An organism has some tissue.” “Some tissue has a cell.” “Therefore an organism has a cell.”

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 14 What are the properties of HAS? Is it transitive? Is it reflexive? Is it symmetric? Is it antisymmetric? Is it a partial order? Is it an equivalence relation?

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 15 What are the properties of HAS? Is it transitive? Yes Is it reflexive? No Is it symmetric? No Is it antisymmetric? Yes, vacuously Is it a partial order? No Is it an equivalence relation? No

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 16 Interoperation of HAS and ISA An x is a y. A y has a z. Therefore an x has a z. An x has a y. A y is a z. Therefore an x has a z.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 17 Chains of HAS and ISA links A chain is a sequence of the form x 1 R 1 x 2, x 2 R 2 x 3, …, x k R k x k+1 x 1 has an x k+1 provided… ???

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 18 Chains of HAS and ISA links A chain is a sequence of the form x 1 R 1 x 2, x 2 R 2 x 3, …, x k R k x k+1 x 1 has an x k+1 provided… Each R i is either HAS or ISA, and at least one of the R i is HAS.

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 19 Preparation for Inference: Python represent. of ISA facts ISA = {} INCLUDES = {} ARTICLES = {} def store_isa_fact(category1, category2): 'Stores one fact of the form A BIRD IS AN ANIMAL' # That is, a member of CATEGORY1 is a member of CATEGORY2 try : c1list = ISA[category1] c1list.append(category2) except KeyError : ISA[category1] = [category2] try : c2list = INCLUDES[category2] c2list.append(category1) except KeyError : INCLUDES[category2] = [category1]

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 20 Linneus.py Demonstrates representation of ISA facts. Permits inference via transitivity. Illustrates a variety of methods for answering queries. Extensible (as in Lab 2).

CSE (c) S. Tanimoto, 2008 ISA Hierarchies 21 Other Kinds of Semantic Networks According to John Sowa, there are 6 general kinds of semantic networks: 1.Definitional -- including ISA hierarchies. 2.Assertional – to represent situations, claims that are not necessarily true, etc. (e.g., logic). 3.Implicational – links represent causality or logical implication. 4.Executable – processing mechanisms are associated with them; e.g., Petri nets. 5.Learning – e.g., neural nets. 6.Hybrid – combinations of the above