@Anupam Basu Frames Lecture Basu What is a Frame? A frame is a prototype of a concept –Denoting the attributes of the concept –The class of.

Slides:



Advertisements
Similar presentations
Expert System Seyed Hashem Davarpanah
Advertisements

More on Classes Inheritance and Polymorphism
Semantics Static semantics Dynamic semantics attribute grammars
ICE1341 Programming Languages Spring 2005 Lecture #6 Lecture #6 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Inheritance Writing and using Classes effectively.
Frame-based expert systems
Alternate Representational Methods CS 531: LUMS Lahore Dr. M M Awais Frames Graphical Representation: Semantic Nets.
Knowledge Representation
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
Frame-Based Expert Systems
Frame Based Expert System
ICE1341 Programming Languages Spring 2005 Lecture #5 Lecture #5 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
Object–Orientated Design. OOP Design Describe the following: a computer a university Usually the most natural way to describe a task is to list the entities.
Lahore University of Management Sciences, Lahore, Pakistan Dr. M.M. Awais- Computer Science Department Lecture 6 Knowledge Representation Non-Formal Method.
SPRING 2004CENG 3521 The Relational Model Chapter 3.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
Create Your Own Quiz Quiz Rules & Guidelines  You and your partner will create a minimum 5 problem, multiple choice quiz along with an answer key. 
Frame-based expert systems
Modelling classes Drawing a Class Diagram. Class diagram First pick the classes –Choose relevant nouns, which have attributes and operations. Find the.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
Knowledge Representation Semantic Network dan Frame.
Lecture 6 of Advanced Databases XML Schema, Querying & Transformation Instructor: Mr.Ahmed Al Astal.
The Relational Model. Review Why use a DBMS? OS provides RAM and disk.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
6-1 © 2004, D.A. Watt, University of Glasgow 6 Data Abstraction  Packages and encapsulation.  Abstract types.  Classes, subclasses, and inheritance.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Temporal Reasoning and Planning in Medicine Frame-Based Representations and Description Logics Yuval Shahar, M.D., Ph.D.
March 5, ICE 1341 – Programming Languages (Lecture #4) In-Young Ko Programming Languages (ICE 1341) Lecture #4 Programming Languages (ICE 1341)
Chapter 3 Inheritance and Polymorphism Goals: 1.Superclasses and subclasses 2.Inheritance Hierarchy 3.Polymorphism 4.Type Compatibility 5.Abstract Classes.
Machine Learning Chapter 5. Artificial IntelligenceChapter 52 Learning 1. Rote learning rote( โรท ) n. วิถีทาง, ทางเดิน, วิธีการตามปกติ, (by rote จากความทรงจำ.
Abstract Classes. Review PA – 3 Design Considerations /Web/CS239/programs/pa3/draft.php ?harrisnlCS239
Semantic Nets, Frames, World Representation CS – W February, 2004.
Copyright © 2006 Addison-Wesley. All rights reserved. Ambiguity in Grammars A grammar is ambiguous if and only if it generates a sentential form that has.
OilEd An Introduction to OilEd Sean Bechhofer. Topics we will discuss Basic OilEd use –Defining Classes, Properties and Individuals in an Ontology –This.
CSCI-383 Object-Oriented Programming & Design Lecture 10.
Multiplication Facts X 3 = 2. 8 x 4 = 3. 7 x 2 =
Knowledge Representation. Keywordsquick way for agents to locate potentially useful information Thesaurimore structured approach than keywords, arranging.
OOP (Object Oriented Programming) Lecture 1. Why a new paradigm is needed? Complexity Five attributes of complex systems –Frequently, complexity takes.
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
CS34311 The Relational Model. cs34312 Why Relational Model? Currently the most widely used Vendors: Oracle, Microsoft, IBM Older models still used IBM’s.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
Access Specifier. Anything declared public can be accessed from anywhere. Anything declared private cannot be seen outside of its class. When a member.
CS1101 Group1 Discussion 6 Lek Hsiang Hui comp.nus.edu.sg
Object Modeling THETOPPERSWAY.COM. Object Modelling Technique(OMT)  Building a model of an application domain and then adding implementation.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
© 2004 Pearson Addison-Wesley. All rights reserved January 23, 2006 Creating Objects & String Class ComS 207: Programming I (in Java) Iowa State University,
COMPUTER SCIENCE & TECHNOLOGY DEGREE PROGRAMME FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UVA WELLASSA ‏ Properties of Object Oriented Programming.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 16 Description Logic.
Inheritance Modern object-oriented (OO) programming languages provide 3 capabilities: encapsulation inheritance polymorphism which can improve the design,
Knowledge Representation
Lecture 12 Inheritance.
A Review or Brief Introduction
The Object-Oriented Thought Process Chapter 1
ARTIFICIAL INTELLIGENCE
Artificial Intelligence (CS 370D)
ARTIFICIAL INTELLIGENCE
Inheritance Inheritance is a fundamental Object Oriented concept
Inheritance: Introduction
Knowledge Representation
Semantic Nets and Frames
Presentation transcript:

@Anupam Basu Frames Lecture 20

@Anupam Basu What is a Frame? A frame is a prototype of a concept –Denoting the attributes of the concept –The class of objects or concepts to which the concept in question belongs –And some more things ……… An instance of a frame is a representation of a SPECIFIC object Instantiation of a frame

@Anupam Basu Example Fido is a dog The concept dog Fido is a particular dog How can we represent the concept/notion of the creature “dog”?

@Anupam Basu Dog { is a: mammal; no._of_legs: 4; type_of_teeth: sharp; has_tail: yes; color_of_skin:; owner:; : } Slot name Slot value

@Anupam Basu Fido { is a: Dog; no._of_legs: 4; type_of_teeth: sharp; has_tail: yes; color_of_skin: Black; owner: Rahim; : }

@Anupam Basu Object-Attribute-Value An instance of a frame denotes an object A Frame denotes a class to which the object belongs The slots denote the attributes of the object The slots can be of different types The slots are instantiated with values

@Anupam Basu Semantic Net to Frame Nellie Elephant Africa Animal head

@Anupam Basu Slots Slots denote attributes Attributes are typed Some values are defined in the frame definition (already instantiated) Some values are defined in the instances only Instantiated slots define facts – may be used to answer queries

@Anupam Basu What are there in a slot? Values Types Constraints over possible values Predicates –Daemons / functions Compare with object oriented systems Slots can be structured – frames within slots – pointers to frames

@Anupam Basu is_aHuman _being name age height stays_at studies_in grades Boy string Int<=15 Float< 7.0 Int string *results

@Anupam Basu is_aHuman _being name age height stays_at studies_in grades Boy If needed compute CGPA (Boy, results) If added test (constraint)

@Anupam Basu instance_ofBoy nameTom Smith age12 height 5 stays_at15 Park Avenue studies_inBright Academy grades Tom If needed compute CGPA (Tom, results)

@Anupam Basu Predicates in a Slot Two types in general –If needed –If added If needed predicates state how to find/compute a value If added predicates are used to check constraints on the values –Can be used for consistency checking as well.

@Anupam Basu Generic Values Does Tom drink milk? The answer is not in the instance description of Tom.

@Anupam Basu Tom is an instance of a Boy Also, Boy is a Human Being In the description of Human Beings, we have “Human Beings drink milk” All human beings drink milk. The answer can therefore be INHERITED

@Anupam Basu Generic values are values which will hold true for all subclasses of the class and all instances of the class. Hence, the generic values can be inherited down the hierarchy. Tom has a pen. Does he need ink?

@Anupam Basu Default Value With which hand does Tom write? Again the answer is not in the description of Tom.

@Anupam Basu is_aHuman _being name age height stays_at studies_in grades writes withright hand * Boy If needed compute CGPA (Boy, results) If added test (constraint)

@Anupam Basu Since we are not told that Tom is left handed, we will assume that Tom writes with right hand. Again inheritance of the Default Value

@Anupam Basu Inheritance The known values can be inherited from the parents unless more specific information is available with the child. In the super class (parent) the generic values and the default values are specified. The generic values are retained. Default values may be overwritten.

@Anupam Basu Multiple Inheritance A class or an instance may be a child of multiple parents. What to inherit?

@Anupam Basu Teacher- Politician TeacherPolitician Quality Education Vote Bank Top- Priority ??

@Anupam Basu Scooter AutomobileTwo Wheeler 4 2 Has- wheels ?? Wrong Organization

@Anupam Basu Scooter Automobile Two Wheeler 4 2 Has- wheels Correct Organization

@Anupam Basu Inference in a Frame Look for candidate frames or instances Look for the availability of values If available – solved Else go to the preceding level and so on If soled at a higher level, try to have more specific answer going down the hierarchy through another branch

@Anupam Basu Answering a Query Rt.handed Batsman Opener Batt. Avg. Sehwag With which hand does Sehwag bat?

@Anupam Basu Shapes Triangle RectangleCircle EquilateralIsoceles

@Anupam Basu Similarity Measure Define similarity function based on the matches in Degree of mismatch may have limited penalty For key values one mismatch may rule out a match