Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ontology Applying logic to the real world. D Goforth - COSC 4117, fall 20062 Real world knowledge general knowledge / common sense reasoning domain expertise.

Similar presentations


Presentation on theme: "Ontology Applying logic to the real world. D Goforth - COSC 4117, fall 20062 Real world knowledge general knowledge / common sense reasoning domain expertise."— Presentation transcript:

1 Ontology Applying logic to the real world

2 D Goforth - COSC 4117, fall 20062 Real world knowledge general knowledge / common sense reasoning domain expertise / specific knowlege problem / facts example: understand a news report language and world knowledge; specific situation and terminology  interpret story

3 D Goforth - COSC 4117, fall 20063 Ontology: structure of knowledge  E.g. java programming ontology – object-oriented design: class/object inheritance and interfaces part-of hierarchy API message-passing sequential execution, threads

4 D Goforth - COSC 4117, fall 20064 Ontology: structure of knowledge  general knowledge: what top-level structure? Anything (like class Object) AbstractObject (eternal) GeneralizedEvent (time-limited existence)

5 D Goforth - COSC 4117, fall 20065 Upper Ontology

6 General knowledge Domain knowledge Problem facts and questions Ontology in Knowledge base “Abstract objects” “Generalized events” Categories (ontology) Logic (sentences)

7 D Goforth - COSC 4117, fall 20067 Representing Knowledge  how ‘deep’? shallow – as predicate:  Terrier(x) deep ‘reification’ category with meaning structure:  Terriers ⊆ Dogs, Dogs ⊆ Mammals  Member (x, Terriers)

8 D Goforth - COSC 4117, fall 20068 Categories  like set theory – easy to reason with in FOL subcategories / subsets categories of categories intersections, unions, disjoint sets, partitions

9 D Goforth - COSC 4117, fall 20069 Reasoning about categories  disjoint subcategories – no common objects NO: x  Students, x  Employed YES:x  Mazdas, x  Mercedes x  Mazdas ⇒ ~( x  Mercedes) x  Mercedes ⇒ ~( x  Mazdas)

10 D Goforth - COSC 4117, fall 200610 Reasoning about categories  exhaustive decomposition – all objects of a category belong to at least one of the subcategories Namedstreets  Cityroutes Numberedroads  Cityroutes x  Cityroutes ⇒ (x  Namedstreets)  (x  Numberedroads) (could be both named and numbered)

11 D Goforth - COSC 4117, fall 200611 Reasoning about categories  Partitioning a category subcategories are disjoint subcategories form exhaustive decomposition e.g., Players are teammates or opponents: Players = Teammates  Opponents Teammates  Opponents = {}

12 D Goforth - COSC 4117, fall 200612 Physical objects  properties things – a pile of sand  measurable / quantities vs stuff - sand  intrinsic qualities PhysicalObjects StuffThings

13 D Goforth - COSC 4117, fall 200613 Situation calculus  in specific domain (TimedEvents vs AbstractObjects) some objects are ‘fluent’  functions and properties can change over time (position, orientation, etc) some objects are ‘eternal’  existence and properties remain fixed during period of reasoning (more efficient) (recall wumpus world example)

14 D Goforth - COSC 4117, fall 200614 GeneralizedEvents – the time problem  objects in this hierarchy have time property physical objects events processes intervals  ‘fluent’ (“fleeting”) vs ‘eternal’ abstract objects

15 D Goforth - COSC 4117, fall 200615 Situation calculus universe is defined as sequence of ‘situations’  ‘actions’ are like inferences: preconditions – required facts in current situation effects – facts that are true in subsequent situation if action is applied situation S 3 preconditioneffect action situation S 2 situation S 1 situation S 0

16 D Goforth - COSC 4117, fall 200616 Situation calculus - example  blocks world tabletop and three blocks actions and situations AB C eternal Table(x) Block(x) fluent On(x,y,s) ClearTop(x,s) s is situation variable objects/terms in FOL

17 D Goforth - COSC 4117, fall 200617 Situation calculus - example  actions are functions (objects)  situations are objects AB C  PutOn(x,y) preconditions:  ClearTop(x,s)  ClearTop(y,s) V Table(y) effect:  On(x,y,Result(PutOn(x,y),s))

18 D Goforth - COSC 4117, fall 200618 Situation calculus - example  each situation is a function of the previous one – Result function AB C  Result(a,s) preconditions:  action a can be applied at s effect:  Result is next situation after a is applied at s

19 D Goforth - COSC 4117, fall 200619 T Situation calculus - example  e.g. KB: function PutOn(x,y) ∀ x (~ ∃ y On(y,x,s)) ⇒ ClearTop(x,s) ∀ x,y,s ClearTop(x,s) ^ (ClearTop(y,s) v Table(y) =>On(x,y,Result(PutOn(x,y),s)) constants: A, B, C, T, S 0, S 1, S 2,… Table(T), Block(A), Block(B), Block(C) On(A,B,S 0 ), On(B,C,S 0 ), On(C,T,S 0 ) A B C S0S0

20 D Goforth - COSC 4117, fall 200620 T Situation calculus - example  action: PutOn(A,T) preconditions: ClearTop(A,S 0 ),Table(T) effect: On(A,T,Result(PutOn(A,T),S 0 )) BUT… what happens to other fluents? some propagated, some not A B C S1S1 A

21 D Goforth - COSC 4117, fall 200621 T Situation calculus - example  ‘On’ axiom: ∀ x,y,z,a,s On(x,y,Result(a,s))  [ClearTop(x,s)^(ClearTop(y,s)vTable(y))^ a= PutOn(x,y) v [ On(x,y,s)^~(a=PutOn(x,z))] C S1S1 A A B


Download ppt "Ontology Applying logic to the real world. D Goforth - COSC 4117, fall 20062 Real world knowledge general knowledge / common sense reasoning domain expertise."

Similar presentations


Ads by Google