



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




1
3
Historical Perspective
Historical Perspective
-^ LOOPS
5
Example Class-Subclass Taxonomy
7
-^ Frame - Logical Constant– Object, Relation, Function -^ Own Slot - Binary relation– A frame has a set of own slots– An own slot has a set of values at a frame– Semantics:•^ OKBC: Own slot S has value V at frame F•^ KIF: (S F V) -^ Example
FredFavorite-Food: Broccoli Salsa– KIF Translation•^ (Favorite-Food Fred Broccoli)•^ (Favorite-Food Fred Salsa)
13
Example Class Frame and Instance Male-Person
Fred
*Gender: Male
Instance-Of: Male-PersonGender:
Male
(Note: “*” denotes template slot.^ Italics
denotes inferred value.) KIF Translation^ (Template-Slot-Value Gender Male-Person Male)(Instance-Of Fred Male-Person) Inference:
(Gender Fred Male)
(and (=> (Instance-Of ?I ?C) (holds ?F ?S ?I ?V))(=> (Subclass-Of ?Csub ?C)
(Template-Facet-Value ?F ?S ?Csub ?V))))
15
Example Class Frame and Instance Male-Person
*Gender: Male
Instance
-^ Of: Male
Person*Age:^
Gender:
Male
Unit: Year
Age:Unit:
Year
-^ Slot
(Template
-^ Facet-
Value Unit Age Male
-^ Person Unit)
(Instance
-^ OfFred Male -^ Person)
FredFavorite-Food: Broccoli Salsa
Value-Type: Human-Food
-^ (=> (Value -^ Type ?S ?F ?C) (Class ?C) (=> (holds ?S ?F ?V) (Instance -^ Of?V ?C)))) -^ (=> (Template -^ Facet -^ Value Value -^ Type ?S ?F ?C) (Class ?C)
(=> (Template
-^ Slot -^ Value ?S ?F ?V)
(Instance
-^ Of?V ?C)))) -^ (= (Class -^ Of@i) (setofall (list ?x) (list -^ member ?x (listof @i))))
17
Example Class Frame and Instance
-^ Male -^ Person
X^ Fred
*Gender: Male
Instance-Of: Male-Person
Value-Type: Gender
Gender:
Male
*Age^
Value-Type:
Gender
Unit: Year
Age:
Value-Type: Integer
Unit:^
Year
*Parent:
Value-Type:
Integer
Value-Type: Person
Parent: EarlValue-Type:
Person
X^ EarlInstance-Of:
Person
KIF Translation^ (Template-Facet-Value Value-Type Gender Male-Person Gender)(Template-Facet-Value Value-Type Age Male-Person Integer)(Template-Facet-Value Value-Type Parent Male-Person Person) Axioms^ (=> (Template-Facet-Value Value-Type ?S ?F ?C) (Class ?C)
(=> (Template-Slot-Value ?S ?F ?V) (Instance-Of ?V ?C)))) (=> (Value-Type ?S ?F ?C) (Class ?C)
(=> (holds ?S ?F ?V) (Instance-Of ?V ?C)))) Example inferences^ (Instance-Of Male Gender)(=> (Template-Slot-Value Age Male-Person ?V) (Integer ?V))(Instance-Of Person Earl)
19
Specifies the number of values a slot may have at a frame^ (=> (Slot-Cardinality ?S ?F ?N)
(=^ (Cardinality (setofall ?V (holds ?S ?F ?V)))
?N))
(=> (Template-Facet-Value Slot-Cardinality ?S ?F ?N)
(=< (Cardinality
(setofall ?V (Template-Slot-Value ?S ?F ?V)) ?N))) Similar definitions for -^ – Minimum-Slot-CardinalityAt least that number of values– Maximum-Slot-CardinalityAt most that number of values
Example Class Frame and Instance
-^ Male -^ Person
X^ Fred
*Gender: Male
Instance-Of: Male-Person
Value-Type: Gender
Gender:
Male
Slot-Cardinality: 1
Value-Type:
Gender
*Age^
Slot-Cardinality:
^1
Unit: Year
Age:
Value-Type: Integer
Unit:^
Year
Slot-Cardinality: 1
Value-Type:
Integer
*Parent:
Slot-Cardinality:
^1
Value-Type: Person
Parent:
Slot-Cardinality: 2
Value-Type:
Person Slot-Cardinality:
^2
25
Example Class Frame and Instance • Male-^ Person *Gender: MaleValue
-^ Type: Gender Slot-^
Cardinality: 1 *AgeUnit: YearValue
-^ Type: Integer Slot-^
Cardinality: 1 *Parent:Value
-^ Type: Person Slot-^
Cardinality: 2 Inverse: ChildSubset
-^ Of-
Values: (Child Grandparent
)
…Parent: EarlValue
-^ Type:
Person Slot-^
Cardinality:
Inverse:
Child Subset
-^ Of-
Values: (Child Grandparent) Child: David
Fred
Earl Parent:
Fred
A decomposition is a set of subclasses of a class^ E.g., {Adult Student} is a decomposition of People(<=> (Decomposition ?c ?s)
(and (class ?c) (set ?s) (=> (member ?x ?s) (Subclass-Of ?x ?c)))) E.g., Person
Decomposition: (set-of Adult Student) Exhaustive decomposition^ – All instances of the class are also instances of one of the subclassesin the decomposition– (<=> (Exhaustive-Decomposition ?c ?s)
(and (Decomposition ?c ?s)(=> (Instance-Of ?x ?c)
(exists ?sub (and (member ?sub ?s)
(Instance-Of ?x ?sub))))))
E.g., Person
Exhaustive-Decomposition: (set-of Adult Student Preschool-Child)
27
Disjoint decomposition^ – An object cannot be an instance of more than one of the subclasses in the decomposition– Axiom:
(<=> (Disjoint-Decomposition ?c ?s)(and (Decomposition ?c ?s)
(=> (member ?x ?s) (member ?y ?s) (/= ?x ?y) (Instance-Of ?i ?x)(not (Instance-Of ?i ?y)))))
E.g., Person
Disjoint-Decomposition: (set-of Adult Preschool-Child)VehicleDisjoint-Decomposition: (set-of Automobile Bicycle) Partition^ – An exhaustive disjoint decomposition– Axiom:
(<=> (Partition ?c ?s)(and (Exhaustive-Decomposition ?c ?s) (Disjoint-Decomposition ?c ?s))) E.g., Person
Disjoint-Decomposition: (set-of Adult Child)ThingPartition: (set-of Tangible-Object Intangible-Object)