Introduction to Knowledge Representation Marti Hearst SIMS 202: Information Organization and Retrieval Lecture 6, Sept 10, 1998.

Slides:



Advertisements
Similar presentations
Chapter Two The Scope of Semantics.
Advertisements

Summer 2011 Tuesday, 8/ No supposition seems to me more natural than that there is no process in the brain correlated with associating or with.
Knowledge Representation
CPSC 322 Introduction to Artificial Intelligence November 5, 2004.
Representations One of the major distinctions between ordinary software and AI is the need to represent domain knowledge (or other forms of worldly knowledge)
Ontology From Wikipedia, the free encyclopedia In philosophy, ontology (from the Greek oν, genitive oντος: of being (part. of εiναι: to be) and –λογία:
Ontologies - Design principles Cartic Ramakrishnan LSDIS Lab University of Georgia.
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
CPSC 322 Introduction to Artificial Intelligence September 15, 2004.
CS 330 Programming Languages 09 / 13 / 2007 Instructor: Michael Eckmann.
SIMS 202, Marti Hearst MetaData, Objects, Relations: Similarities and Differences and Cognitive Aspects of Categorization SIMS 202, Lecture 10 Fall, 1997.
CS 330 Programming Languages 09 / 18 / 2007 Instructor: Michael Eckmann.
PSY 369: Psycholinguistics Some basic linguistic theory part3.
Entity-Relationship Diagrams Elements, Syntax Guidelines Dictionary.
CPSC 322 Introduction to Artificial Intelligence September 8, 2004.
CS 330 Programming Languages 09 / 16 / 2008 Instructor: Michael Eckmann.
What is an Ontology? AmphibiaTree 2006 Workshop Saturday 8:45–9:15 A. Maglia.
Department of Computer Science, University of Maryland, College Park 1 Sharath Srinivas - CMSC 818Z, Spring 2007 Semantic Web and Knowledge Representation.
Symbols and Language Lexical Relations SIMS 202 Profs. Hearst & Larson UC Berkeley SIMS Fall 2000.
Conceptual modelling. Overview - what is the aim of the article? ”We build conceptual models in our heads to solve problems in our everyday life”… ”By.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
Foundations This chapter lays down the fundamental ideas and choices on which our approach is based. First, it identifies the needs of architects in the.
Chapter 9 Domain Models 1CS6359 Fall 2012 John Cole.
The Study of Meaning in Language
The Langue/Parole distinction`
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
2.2 A Simple Syntax-Directed Translator Syntax-Directed Translation 2.4 Parsing 2.5 A Translator for Simple Expressions 2.6 Lexical Analysis.
1 Ontology & Ontology Development 인공지능 연구실 허 희 근.
Assessment of Semantics
Of 39 lecture 2: ontology - basics. of 39 ontology a branch of metaphysics relating to the nature and relations of being a particular theory about the.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
DOMAIN MODEL— PART 2: ATTRIBUTES SYS466. Looking For Potential Classes “Know the business”. Ask Questions Identify business concepts; filter nouns (person,
Assoc. Prof. Abdulwahab AlSammak. Course Information Course Title: Artificial Intelligence Instructor : Assoc. Prof. Abdulwahab AlSammak
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Semantic Web - an introduction By Daniel Wu (danielwujr)
Semantic Data & Ontologies CMPT 455/826 - Week 5, Day 2 Sept-Dec 2009 – w5d21.
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Copyright © Curt Hill Languages and Grammars This is not English Class. But there is a resemblance.
SYS466: Analysis and Design Using OO Models Domain Class Diagram.
© Kenneth C. Louden, Chapter 11 - Functional Programming, Part III: Theory Programming Languages: Principles and Practice, 2nd Ed. Kenneth C. Louden.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
Introduction to Cognitive Science Lecture #2 : Mental Representations Joe Lau Philosophy HKU.
1. 2 Preface In the time since the 1986 edition of this book, the world of compiler design has changed significantly 3.
Evaluating a Photographers work It is very important to evaluate and analyse the work of your chosen photographer rigorously, not only to achieve good.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
Knowledge Representation. Keywordsquick way for agents to locate potentially useful information Thesaurimore structured approach than keywords, arranging.
1 Class 1 Lecture Topic Concepts, Definitions and Examples.
Naming – Concept – Sense – Reference. In semantics, there are two major ways to find out the meaning of a word which then becomes the two major branches.
Lecture 8-2CS250: Intro to AI/Lisp What do you mean, “What do I mean?” Lecture 8-2 November 18 th, 1999 CS250.
DOMAIN MODEL—PART 2: ATTRIBUTES BTS430 Systems Analysis and Design using UML.
Artificial Intelligence Hossaini Winter Outline book : Artificial intelligence a modern Approach by Stuart Russell, Peter Norvig. A Practical Guide.
1 CS 2710, ISSP 2160 Chapter 12 Knowledge Representation.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 16 Description Logic.
Knowledge Representation Part I Ontology Jan Pettersen Nytun Knowledge Representation Part I, JPN, UiA1.
CMSC201 Computer Science I for Majors Lecture 25 – Classes
Knowledge Representation Techniques
A Simple Syntax-Directed Translator
ece 627 intelligent web: ontology and beyond
Ontology From Wikipedia, the free encyclopedia
Visualizing Documents and Search
Strong Slot-and-Filler Structures
Survey of Knowledge Base Content
Ontology.
When a thing is more than just a thing
Strong Slot-and-Filler Structures
KNOWLEDGE REPRESENTATION
Semantic Nets and Frames
Pictures and Nonsense Wittgenstein.
Thinking about Thinking
Presentation transcript:

Introduction to Knowledge Representation Marti Hearst SIMS 202: Information Organization and Retrieval Lecture 6, Sept 10, 1998

Today What is a symbol? What is a symbol? Semantics: the meanings of symbols Semantics: the meanings of symbols Creating Ontologies Creating Ontologies Objects, Properties, and Relations Objects, Properties, and RelationsReferences: Chapter 1 of Introduction to Knowledge Systems by Mark Stefik. Chapter 1 of Introduction to Knowledge Systems by Mark Stefik. Chapter 8 of Artificial Intelligence, A Modern Approach by Stuart Russell and Peter Norvig Chapter 8 of Artificial Intelligence, A Modern Approach by Stuart Russell and Peter Norvig

What is a symbol? From Merriam-Webster’s Collegiate: From Merriam-Webster’s Collegiate: Something that stands for or suggests something else. Something that stands for or suggests something else. An arbitrary conventional sign used in writing or printing to represent: An arbitrary conventional sign used in writing or printing to represent: operations operations quantities quantities elements elements relations relations qualities qualities What is meant by sign and represent? What is meant by sign and represent?

Recognizing Symbols What What is/are this/these symbol(s)? Two Two overlapping squares? Eight Eight horizontal and eight vertical lines?

Designation and Representation What does it mean to represent something? What does it mean to represent something? Identify the following: Identify the following: symbols symbols context context observer observer Representation is the association of symbols with conceptual objects or ideas in a given context. Representation is the association of symbols with conceptual objects or ideas in a given context. The observer sets up a correspondence between the symbols and the meanings. The observer sets up a correspondence between the symbols and the meanings.

Representation with Symbols Kailin threw the ball to Juno. Kailinthrow event Juno a ball did-action thrower thrown-to object- thrown

Symbols and Language Abstract concepts are difficult to express in a computer. Abstract concepts are difficult to express in a computer. Combinations of abstract concepts are even more difficult to express: Combinations of abstract concepts are even more difficult to express: time time shades of meaning shades of meaning social and psychological concepts social and psychological concepts causal relationships causal relationships

Symbols and Language The Dog.

Symbols and Language The Dog. The dog cavorts. The dog cavorted. The picture doesn’t really show the manner or tense.

Symbols and Language The man. The man walks.

Symbols and Language The man walks the cavorting dog. So far, we can sort of show the meaning in pictures.

Symbols and Language As the man walks the cavorting dog, thoughts arrive unbidden of the previous spring, so unlike this one, in which walking was marching and dogs were baleful sentinals outside unjust halls. What is the relation between the symbols and the meaning?

Symbols and Language Language only hints at meaning. Language only hints at meaning. Most meaning of text lies within our minds and common understanding. Most meaning of text lies within our minds and common understanding. “How much is that doggy in the window?” “How much is that doggy in the window?” how much: social system of barter and trade (not the size of the dog) how much: social system of barter and trade (not the size of the dog) “doggy” implies childlike, plaintive, probably cannot do the purchasing on their own “doggy” implies childlike, plaintive, probably cannot do the purchasing on their own “in the window” implies behind a store window, not really inside a window, requires notion of window shopping “in the window” implies behind a store window, not really inside a window, requires notion of window shopping

Setting up Correspondences between Symbols and Meaning Consider made-up languages Consider made-up languages Codes used by espionage agents Codes used by espionage agents “Pope” means a particular piece of microfilm “Pope” means a particular piece of microfilm “Denver” indicates a particular mailbox “Denver” indicates a particular mailbox People remember the “gist” instead of the actual words used. People remember the “gist” instead of the actual words used. This implies the actual words used are not very salient; what matters is the meaning. This implies the actual words used are not very salient; what matters is the meaning.

Recognizing Symbols The marks that constitute a symbol depend on the conventions for recognizing the symbol. The marks that constitute a symbol depend on the conventions for recognizing the symbol. A recognizer typically has an associated alphabet or set of symbols: A recognizer typically has an associated alphabet or set of symbols: Token: an individual instance of a symbol Token: an individual instance of a symbol Type: a class of symbols Type: a class of symbols Examples? Examples?

The Role of Context The concept associated with the symbol 21 means different things in different contexts. The concept associated with the symbol 21 means different things in different contexts. Examples? Examples? The question “Is there any salt?” The question “Is there any salt?” Asked of a waiter at a restaurant. Asked of a waiter at a restaurant. Asked of an environmental scientist at work. Asked of an environmental scientist at work.

Semantics: The Meaning of Symbols Semantics versus Syntax Semantics versus Syntax Meaning versus Representation Meaning versus Representation What a person’s name is versus who they are. What a person’s name is versus who they are. A rose by any other name... A rose by any other name... What the computer program “looks like” versus what it actually does. What the computer program “looks like” versus what it actually does.

Semantics Semantics: assigning meanings to symbols and expressions. Semantics: assigning meanings to symbols and expressions. Usually involves defining: Usually involves defining: objects objects properties of objects properties of objects relations between objects relations between objects More detailed versions include (among others) More detailed versions include (among others) events events time time places places measurements (quantities) measurements (quantities)

Ontology From Merriam-Webster’s Collegiate: From Merriam-Webster’s Collegiate: A branch of metaphysics concerned with the nature and relations of being. A branch of metaphysics concerned with the nature and relations of being. A particular theory about the nature of being or the kinds of existence. A particular theory about the nature of being or the kinds of existence. More prosaically: More prosaically: A carving up of the world’s meanings. A carving up of the world’s meanings. Determine what things exist, but not how they inter-relate. Determine what things exist, but not how they inter-relate. Related terms: Related terms: taxonomy, dictionary, category structure taxonomy, dictionary, category structure

Knowledge Engineering Steps Decide what to talk about Decide what to talk about Decide on a vocabulary of predicates, functions, and constants Decide on a vocabulary of predicates, functions, and constants Encode general knowledge about the domain Encode general knowledge about the domain Artificial Intelligence vs Cataloging: Artificial Intelligence vs Cataloging: AI goal: allow computer programs to reason about the objects and relations AI goal: allow computer programs to reason about the objects and relations Cataloging: organize the objects and relations for use by humans Cataloging: organize the objects and relations for use by humans AI is more ambitious and more difficult AI is more ambitious and more difficult We aren’t covering the reasoning part here. We aren’t covering the reasoning part here.

Try some examples Let’s define Let’s define Types of Objects Types of Objects Types of Properties of Objects Types of Properties of Objects Types of Relations between Objects Types of Relations between Objects

Attributes vs. Objects How do we make this distinction? How do we make this distinction? Say we are clothing manufacturers. Say we are clothing manufacturers. Fur is a class of objects Fur is a class of objects Animal is an attribute of this class Animal is an attribute of this class Say we are naturalists. Say we are naturalists. Animal is a class of objects Animal is a class of objects Fur is an attribute of this class Fur is an attribute of this class

Garment Maker Ontology Define the objects; Indicate what types of attributes are used to define the objects (attributes=properties) Define the objects; Indicate what types of attributes are used to define the objects (attributes=properties) Object Class: Object Class: Garment Garment Attribute Types: Attribute Types: ISA: ISA: Material: Material: Color: Color: Garment_Type: Garment_Type: Object Class: Object Class: Fur Fur Attribute Types: Attribute Types: ISA: ISA: Animal: Animal: Color: Color: Texture: Texture:

Garment Maker Ontology Attributes have lists of legal values Attributes have lists of legal values Object Class: Garment Object Class: Garment ISA: Object ISA: Object Material: fur, cotton, wool Material: fur, cotton, wool Color: red, black, brown, white, blue Color: red, black, brown, white, blue Garment_Type: coat, stole, hat Garment_Type: coat, stole, hat Object Class: Fur Object Class: Fur ISA: Material ISA: Material Animal: fox, rabbit, sable Animal: fox, rabbit, sable Color: red, black, white Color: red, black, white Texture: silky, thick, coarse Texture: silky, thick, coarse

Garment Maker Ontology Show the assignments of values to attributes for one particular instance of an object Show the assignments of values to attributes for one particular instance of an object Object Class: Garment Object Class: Garment ISA: Object ISA: Object Material: fur, cotton, wool Material: fur, cotton, wool Color: red, black, brown, white, blue Color: red, black, brown, white, blue Garment_Type: coat, stole, hat Garment_Type: coat, stole, hat Object Class: Fur Object Class: Fur ISA: Material ISA: Material Animal: fox, rabbit, sable Animal: fox, rabbit, sable Color: red, black, white Color: red, black, white Texture: silky, thick, coarse Texture: silky, thick, coarse garment coat fur object silkyred G_type ISA Material Color Texture sable Animal

Garment Maker Ontology Usually only one value is allowed for an ISA attribute Usually only one value is allowed for an ISA attribute In this example, In this example, The value of the color attribute for Garment is determined by the color attribute for the garment’s Material attribute The value of the color attribute for Garment is determined by the color attribute for the garment’s Material attribute This is called inheritance This is called inheritance garment coat fur object silkyred G_type ISA Material Color Texture sable Animal

Garment Makers vs. Naturalists A difference between a class definition and an attribute value A difference between a class definition and an attribute value Class Fur Class Fur ISA: material ISA: material Animal: fox, rabbit, sable Animal: fox, rabbit, sable Color: red, black, white Color: red, black, white Texture: silky, thick, coarse Texture: silky, thick, coarse Garment_type: coat, stole, hat Garment_type: coat, stole, hat Class Animal Class Animal ISA: mammal ISA: mammal Outer_Covering: fur, skin, scales Outer_Covering: fur, skin, scales Number_of_limbs: 4, 6, 8 Number_of_limbs: 4, 6, 8 Circulatory_System: cold_blooded, hot_blooded Circulatory_System: cold_blooded, hot_blooded

Nesting Attributes and Classes Class Garment Class Garment Material: Material: Class Fur Class Fur n Animal: fox, rabbit, sable n Color: red, black, white n Texture: silky, thick, coarse Class Cotton Class Cotton n Color: red, blue, white, brown, black n Thread_Count: 100, 200 Garment_type: stole, coat, hat, t-shirt Garment_type: stole, coat, hat, t-shirt Attributes often must be nested Attributes often must be nested Alternative: two subclasses of Garment Alternative: two subclasses of Garment

Next Week Semantic Nets Semantic Nets Facets vs. Hierarchies Facets vs. Hierarchies Lexical Semantics Lexical Semantics Word Associations Word Associations