Object-based representation. Objects

Similar documents
Semantic Nets, Frames, World Representation. CS W February, 2004

Module 8. Other representation formalisms. Version 2 CSE IIT, Kharagpur

Overview. COMP 4200: Expert Systems. Knowledge Representation 2. Knowledge Representation 1

Knowledge Representation. Dr. Asaad Sabah Hadi

Downloaded from ioenotes.edu.np

Knowledge representation Semantic networks and frames

PdOd Kev Events I Re-world war I1 rwa

Knowledge Representation

Production System. Logical Reasoning System 1

AITA : Frame Based Systems

ASSOCIATIVE NETS AND FRAME SYSTEMS


Semantic Nets and Frames SEEM

16 April 2011 Alan, Edison, etc, Saturday.

Knowledge Representation

Knowledge Representation Techniques

CHAPTER. Knowledge Representation

Semantic Web Systems Ontologies Jacques Fleuriot School of Informatics

Logical Reasoning Systems

AITA : Knowledge Representation

02. (Conceptual) Modeling. F. Dalpiaz & J. Mylopoulos -- OIS Slide 1

Visually Interacting with a Knowledge Base

Knowledge Representation. What is knowledge representation?

COMP219: Artificial Intelligence. Lecture 14: Knowledge Representation

Semantic Image Retrieval Based on Ontology and SPARQL Query

Chapter 3. Describing Syntax and Semantics ISBN

Chapter 3. Describing Syntax and Semantics

Module 8. Other representation formalisms. Version 2 CSE IIT, Kharagpur

OWL a glimpse. OWL a glimpse (2) requirements for ontology languages. requirements for ontology languages

Chapter 3. Describing Syntax and Semantics

The Entity-Relationship Model

More Notes on 'A Clash of Intuitions 9

Intelligent Systems: Reasoning and Recognition. Rule based programming - Introduction to CLIPS 6.0

Principles of Object-Oriented Design

Inheritance and Polymorphism. CS180 Fall 2007

Vibhav Gogate University of Texas, Dallas Artificial Intelligence: CS 4365 First-order Logic

Where is the Semantics on the Semantic Web?

l A family of logic based KR formalisms l Distinguished by: l Decidable fragments of FOL l Closely related to Propositional Modal & Dynamic Logics

Logical reasoning systems

ARTIFICIAL INTELLIGENCE (CS 370D)

Informatics 1: Data & Analysis

Semantic Web. Ontology Engineering and Evaluation. Morteza Amini. Sharif University of Technology Fall 93-94

OPPA European Social Fund Prague & EU: We invest in your future.

HAPPY VALENTINE'S DAY 14 Feb 2011 JAIST

Reading assignment: Reviews and Inspections

What are the characteristics of Object Oriented programming language?

Intelligent Systems: Reasoning and Recognition. Rule based programming - Forward chaining

Page 1. Reading assignment: Reviews and Inspections. Foundations for SE Analysis. Ideally want general models. Formal models

Constraints and Disjointness. fanalyti, panos,

Defining an Abstract Core Production Rule System

Expert Systems Knowledge Based Systems

9b. Combining Logic Programs with Object-Oriented Representation

The Entity-Relationship Model. Overview of Database Design. ER Model Basics. (Ramakrishnan&Gehrke, Chapter 2)

Knowledge Representation Issues, Predicate Logic, Rules

Lecture 2 and 3: Fundamental Object-Oriented Concepts Kenneth M. Anderson

Basic Object-Oriented Concepts. 5-Oct-17

The Logic Paradigm. Joseph Spring. 7COM1023 Programming Paradigms

CSIT5300: Advanced Database Systems

Chapter 4. Enhanced Entity- Relationship Modeling. Enhanced-ER (EER) Model Concepts. Subclasses and Superclasses (1)

The Entity-Relationship Model. Overview of Database Design

COMP Instructor: Dimitris Papadias WWW page:

Intelligent Systems Knowledge Representa6on

The Entity-Relationship Model

Database Design Phases. History. Entity-relationship model. ER model basics 9/25/11. Entity-relationship (ER) model. ER model basics II

VS 3 : SMT Solvers for Program Verification

CSE 530A. ER Model. Washington University Fall 2013

Intermediate Code Generation

The Entity-Relationship Model

CS101 Introduction to Programming Languages and Compilers

GOOSE: A Goal-Oriented Search Engine with Commonsense

Inheritance and Substitution (Budd chapter 8, 10)

Object Fundamentals Part Three. Kenneth M. Anderson University of Colorado, Boulder CSCI 4448/6448 Lecture 4 09/06/2007

Ch. 21: Object Oriented Databases

Adding formal semantics to the Web

Clarifying Roles. Jonathan Worthington German Perl Workshop 2007

Static and Dynamic Behavior עזאם מרעי המחלקה למדעי המחשב אוניברסיטת בן-גוריון מובסס על הרצאות של אותו קורס שניתן בשנים הקודמות ע "י ד"ר גרא וייס

COMP200 INTERFACES. OOP using Java, from slides by Shayan Javed

Chapter 3. Syntax - the form or structure of the expressions, statements, and program units

Principles of Programming Languages (2016F)

Frames and Inheritance. Winston, Chapter 9

15 Unification and Embedded Languages in Lisp

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables

Ontologies and Database Schema: What s the Difference? Michael Uschold, PhD Semantic Arts.

Semantics and Ontologies for Geospatial Information. Dr Kristin Stock

Chapter No. 2 Class modeling CO:-Sketch Class,object models using fundamental relationships Contents 2.1 Object and Class Concepts (12M) Objects,

CS 354R: Computer Game Technology

Student Performance Q&A:

Chapter 5: Algorithms

INFORMATICS RESEARCH PROPOSAL REALTING LCC TO SEMANTIC WEB STANDARDS. Nor Amizam Jusoh (S ) Supervisor: Dave Robertson

Ontologies and OWL. Riccardo Rosati. Knowledge Representation and Semantic Technologies

Introduction to Data Management. Lecture #3 (Conceptual DB Design) Instructor: Chen Li

H1 Spring C. A service-oriented architecture is frequently deployed in practice without a service registry

Conceptual Data Modeling

The challenge of reasoning for OLF s s IO G2

CS/ENGRD 2110 SPRING Lecture 7: Interfaces and Abstract Classes

OVERVIEW OF DATABASE DEVELOPMENT

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

INF5390 Kunstig intelligens. First-Order Logic. Roar Fjellheim

OE Example: Events and Roles

CIS 330: Applied Database Systems. ER to Relational Relational Algebra

Transcription:

Object-based representation Luger, Part III, 6.0, 6.1, 6.2.2-6.2.4, 6.4 (skim) Objects Two basic forms of Structured Objects Semantic Nets Frames Semantic Nets (Associative Nets) Components Nodes - represent concepts (e.g. objects, events) Links - represent relations between nodes Example1: John took a big car x t [take(john, x, t) agent car(x) past(t)] John take time object car Past size big

More examples Example2: A B inst A on block inst B on table table-1 inst Example3: Mary is younger than Jill Mary age A1 Example4: Every dog has a tail Jill age A2 less than General statement Dog tail inst GS-1 form inst Dog-1 part inst tail-1 Semantic Nets Correspond to human information storage & management Meaning of a concept = how it is connected to other concepts

Semantic Nets Correspond to human information storage & management Meaning of a concept = how it is connected to other concepts Can be extended to represent quantifiers (by labeled links) and procedure (by procedural attachment) Links provide structure of which other knowledge can be inferred usually represent binary relations but can represent non-binary relations Mammal Ear important common links is-a instances Class inclusion Class membership } Type relations Elephant has-part Part-whole relation Dumbo Inheritance of Properties instances inherit property of class members to an individual member isa inherit property of class to subclass Basic Algorithm: Given a tree hierarchy Input: an instance object O, attribute A Output: O.A which is a value of A of object O 1. Find O in KB 2. If there is a value for A, report it, else if there is no instance, fail else move to the node destination of instance, X. 3. If X has A s value, report it, else Repeat Move to the node destination of isa. If there is a value there for A, report it Until answer is reported or no more destination of isa Xn isa X1 O inst

Reasoning in Semantic Nets Deduce new facts by traversing links in the network Intersection Search Mammal Inheritance property Example: The system can infer that Mammal Elephant Ear A B R Dumbo Dumbo is a mammal - by intersection search x R R If x is in A, stop else traverse isa and collect B. If A B, stop Dumbo Dumbo has ears - by inheritance property Semantic Nets Frame Systems Frame systems try to improve problems of Semantic Nets Use slot structures to sharpen type-token distinctions Use small number of links to improve semantics Use default value and procedural attachment to improve efficiency in processing information stored Frames write general knowledge about class individuals in one place structured, shared, centrally located knowledge easier to build/update/modify/retrieve Frame systems are generalized semantic nets

Frame systems Frames represent typical concepts Frame Structure Frame-name: Slot-name-1: Slot-name-k: Object/Concept Attributes/Relations Frame system is a collection of frames connecting one frame as an attribute value of another frame Slot values can be empty initially or can be constant value frame procedural attachment procedure (executed when the slot value is activated) Example A frame system describing a typical hotel room hotel-room is-a: room location: hotel contains: (hotel-chair, hotel-phone, hotel-bed) hotel-chair hotel-phone hotel-bed is-a: chair is-a: phone is-a: bed height:20-40 cm use: (calling, use:sleeping no-legs: 4 room-service) size: king use: sitting billing: through room part: (mattress, frame)

Procedural Attachment Creates demons a procedure invoked as a side effect of some other actions (not directly called) E.g., when a certain slot value is changed, system performs type checks or run consistency tests Typical demons, e.g., if-created: executed when an instance is created if-needed: can override the slot value if-read, if-written: a change in a slot s value automatically reflected in another Frame systems (contd) Example: Mammals have ears. Elephants are mammals. They are grey. Dumbo is an elephant and has very large ear. Mammal Elephant color Grey Ear Mammal Has-part: Ear Elephant Is-a: Mammal Color: Grey Dumbo instances: Elephant Ear-size: very-large Height: 3 ft Weight: Dumbo Dumbo-ear size very-large Height: Weight: if-needed Find-weight(Height.value) procedure Find-weight(h) print (10* h 3 ft ) Add Elephant s weight (lbs) is about 10 times the cube of its height (ft). Dumbo is 3 ft tall

Tangled hierarchies When hierarchies are not tree and no cycle (DAG) Bird Fly?: Y Does Opus fly? System reports Ambiguity Penguin Fly?: N Pet-Bird Fly? Better representation Opus Fly?: role System answers NO Multiple inheritance is powerful but gives responsibility for designer to ensure consistency Tangled hierarchies (contd.) When hierarchies are not tree and no cycle (DAG) Penguin Fly?: N diet: fish Bird Fly?: Y Opus Fly?: Pet-Bird Fly? diet: seeds Performer-Bird Fly? Q1: Does Opus fly? Using the shortest inferential distance Opus à Penguin Opus à Penguin à Bird Thus, Penguin is closer to Opus than Bird Answer: No (inherited from Penguin) Q2: What does Opus eat? Penguin and Pet-Bird are of the same inferential distance to Opus. Remedy: specify order of class precedence

Tangled hierarchies (contd.) When hierarchies are not tree and no cycle (DAG) Bird Fly?: Y Penguin Fly?: N diet: fish lives-in: south pole Opus Fly?: Pet-Bird Fly? diet: seeds lives-in: pet-house Performer-Bird Fly? Q1:How do we represent the fact that Opus eats fish but lives in a pet-house? How many of these exceptions can we add?! Default vs. Exceptions Performer-Opus Fly? diet: fish lives-in: pet-house Semantic Nets and Frame systems + Easier to understand than logic + Easier to visualize than large set of rules + Fast attribute value retrieval + Eliminate storage of repetitive information by using inheritance property - Lack standard for naming and clear semantics - Poor at representing rule-like assertions - Hard to manage for very large set of knowledge

Other Variations Associative nets associate concepts to human response Semantic Nets too unconstrained Conceptual Dependency offers primitive at computational cost Conceptual Graph balance between the above two Script represent sequence of events

Associative networks Other Variations Other Variations (contd.) Associative networks human response times to queries about objects are proportional to associated objects structured in memory define meaning of an object in terms of a network of association with other objects Semantic networks used in NLP to find meaning of text for multiple meanings choose the shortest intersection path Problems too unconstrained, burden users

Other Variations (contd.) Conceptual dependency (Schank) Offers primitives more standard Problems: computational infeasibility Other Variations (contd.) Scripts (Schank) organize knowledge base in terms of sequence of events in certain situations, e.g., a restaurant script components: entry conditions, results, props, roles, scenes Problems matching based on keywords is not robust, inflexible not possible to anticipate all situations that can break a script

Script Other Variations (contd.) Frames (Minsky) adds power to semantic networks allow complex objects to be represented as a single frame sometimes known as schemas or class/objects Frame systems led to OO systems Conceptual Graph (Sowa) extended semantic networks equivalent expressive power to logic

Declarative KRs and languages Declarative KR Syntactic Systems Semantic Systems Non-monotonic System Predicate Logic Production Rules Slot-and-Filler CLIPS OPS5 CYC Strong Script Frame Conceptual Dependency Weak Semantic Nets KR-1 KRYPTON FRL Conceptual Graph Summary of KR Themes AI Approaches Systems Logic à Weak problem solving Logic-based Rules à Strong problem solving Rule-based Objects à Distributed and Object-based Emergent problem solving Agent-based Objects vs. Agents -- autonomy (See more in Luger, Part III)

Summary of KR Themes (contd.) Weak problem solving syntax-based strategies intended to use in general architectures for a wide variety of applications, e.g., GPS (Newell & Simon) Automated reasoning, theorem proving issues no single heuristic can be used for all problem domain Summary of KR Themes (contd.) Strong problem solving uses explicit knowledge of a particular problem domain e.g., expert systems issues acquisition and organization of large body of knowledge bases

Distributed/Emergent problem solving Three characteristics: Situated (interact in its active environments, e.g., internet, teamwork) Autonomous (interact on its own without intervention from other agents) Flexible (both responsive and proactive) e.g., subsumption architecture in robotics, intelligent agents (with social characteristic as well) in various applications