Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Knowledge Engineering
Semester 2, 2004-05 Michael Rovatsos mrovatso@inf.ed.ac.uk Lecture 5 – Basics of Ontologies 25th January 2005
Informatics UoE Knowledge Engineering 1
Knowledge Engineering Semester 2, 2004-05 Michael Rovatsos - - PowerPoint PPT Presentation
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Knowledge Engineering Semester 2, 2004-05 Michael Rovatsos mrovatso@inf.ed.ac.uk Lecture 5 Basics of Ontologies 25th January 2005 Informatics UoE Knowledge
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 1
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
◮ we attempted a transition from Knowledge Acquisition to
◮ representation of complex domain knowledge ◮ ontology reasoning systems ◮ dealing with uncertainty
◮ basics of ontologies ◮ formalising certain kinds of knowledge
Informatics UoE Knowledge Engineering 67
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
◮ In toy domains, easy to describe relevant objects and
◮ In more complex domains, a principled way of structuring
◮ Ontology
◮ philosophically speaking: a theory of nature of being or
◮ practically speaking: a formal specification of a shared
Informatics UoE Knowledge Engineering 68
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
◮ Knowledge sharing and reuse (agreeing on a vocabulary) ◮ Support of use of knowledge level vs. symbolic level ◮ Make ontological commitments (decisions regarding
◮ Interaction problem: choice of knowledge representation
Informatics UoE Knowledge Engineering 69
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 70
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 71
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 72
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 73
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 74
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
Informatics UoE Knowledge Engineering 75
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
Anything Interval Place PhysicalObject Process Set Number RepresentationalObject AbstractObject GeneralisedEvent Category Sentence Measurement Time Weight Moment Thing Stuff Animal Agent Human Solid Liquid Gas
Informatics UoE Knowledge Engineering 76
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
◮ Categories play an important role in reasoning (although
◮ Representation through predicates (Car(X)) or through
◮ One way of defining categories: category = a collection of
◮ Inheritance most common relationship between
Informatics UoE Knowledge Engineering 77
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
◮ Subclasses inherit properties of super-classes (
◮ Taxonomy: an ontology of categories induced by
◮ Problems of multiple inheritance ◮ Example: The Nixon diamond
Pacifist Republican Quaker Nixon
Informatics UoE Knowledge Engineering 78
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
◮ Can use FOL to express all kinds of properties of
◮ Subclasses: Basset ⊂ Dog, Dog ⊂ Animal ◮ Describing properties/inferring class membership:
◮ Category properties: Basset ∈ Species
◮ Further common properties of categories:
◮ Disjointness ◮ Exhaustive decomposition ◮ Partition
◮ Exercise: describe these in FOL
Informatics UoE Knowledge Engineering 79
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
◮ Want to express physical composition of objects ◮ part-of relation (reflexive,transitive),
◮ How do we express a collection of concrete objects, e.g. a
◮ Use of “set” problematic, since a set has no weight (is
◮ Define “bunch”: ∀x x ∈ s ⇒ PartOf (x, BunchOf (s)) ◮ Smallest object satisfying this condition (logical
Informatics UoE Knowledge Engineering 80
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
◮ Quantitative measurements: mass, price, weight etc.
◮ Price(MyBasset) = Pounds(500) = Euro(750) ◮ Abstract objects: Pounds(500) is not a 500 pound
◮ Each measurement value exists only once
◮ Qualitative measurements: focus on ordering
◮ Example: use of rule
◮ Area of qualitative physics
Informatics UoE Knowledge Engineering 81
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Upper Ontologies Categories Physical Composition Measurements Substances and Objects
◮ Intuition: specify objects in the world and put them
◮ Problem of individuation (division into distinct object)
◮ No problem for count nouns (cats, dogs, apples, planets) ◮ But how about “stuff” (water, air, energy)?
◮ Example: Assume category Water
◮ x ∈ Water ∧ PartOf (x, y) ⇒ y ∈ Water ◮ x ∈ Water ⇒ BoilingPoint(x, 100oC)
◮ But still problems: SaltWater subcategory of Water but
◮ Underlying problem: difference between intrinsic
Informatics UoE Knowledge Engineering 82
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ Straightforward way of capturing change: use time-steps
◮ Alternatively, concentrate on situations brought about
◮ Situations are logical terms S0, S1, etc. ◮ Function Result(a, s) used to name situation that results
◮ Sometimes useful to extend this to sequences of actions
Informatics UoE Knowledge Engineering 83
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ Fluents = functions/predicates that vary from situation
◮ Describe actions by possibility and effect axioms:
◮ Possibility axiom: Preconditions ⇒ Poss(a, s) ◮ Effect axiom:
◮ Example (blocks world):
◮ Possibility axiom:
◮ Effect axiom :∀s Poss(Stack(A, B), s) ⇒
Informatics UoE Knowledge Engineering 84
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ Problem: Effect axioms say what changes, but not what
◮ In the above example: How can we infer
◮ Frame problem: Problem of representing all things that
◮ Expressing what does stay the same through frame
Informatics UoE Knowledge Engineering 85
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ Costly, would require O(AF) frame axioms for A actions
◮ Representational frame problem: If any action has at
◮ Inferential frame prolem: Would like to project results
◮ Qualification problems: Capturing all conditions for
Informatics UoE Knowledge Engineering 86
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ Solution: Use successor-state axioms
◮ Example:
◮ Solves problem, because each effect of an action is only
◮ Ramification problem: dealing with implicit effects
Informatics UoE Knowledge Engineering 87
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ In projecting consequences, we still need O(AEt)
◮ Mostly involves copying unchanged fluents ◮ But if only one action is executed at a time, why consider
◮ Reconsider format of frame axiom for fluent Fi:
Informatics UoE Knowledge Engineering 88
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary Situation Calculus Frame Problem
◮ We can rewrite this using positive and negative effects
◮ Appropriate indexing
◮ Represent new situation by the old situation and “delta”
◮ Achieves prediction in O(Et)
Informatics UoE Knowledge Engineering 89
Ontologies Modelling Static Knowledge Modelling Dynamic Knowledge Summary
◮ Notion of ontology ◮ Discussed modelling of interesting types of knowledge
◮ Categories ◮ Physical Composition, Measurements,
◮ Actions and Change, frame problem
◮ Other interesting stuff we did not deal with:
◮ Time, intervals, continuous processes, etc. ◮ Multiple overlapping actions, multiple agents
◮ Next time: category reasoning systems
Informatics UoE Knowledge Engineering 90