a methodology for the development & veri cation of expressive...

24
A Methodology for the Development & Verification of Expressive Ontologies Ontology Summit 2013 – Track B Megan Katsumi Semantic Technologies Laboratory Department of Mechanical and Industrial Engineering University of Toronto January 24, 2013 Megan Katsumi (MIE) University of Toronto January 24, 2013 1 / 24

Upload: others

Post on 21-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

A Methodology for the Development & Verification ofExpressive Ontologies

Ontology Summit 2013 – Track B

Megan Katsumi

Semantic Technologies LaboratoryDepartment of Mechanical and Industrial Engineering

University of Toronto

January 24, 2013

Megan Katsumi (MIE) University of Toronto January 24, 2013 1 / 24

Page 2: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Introduction

A methodology for the development and verification of expressiveontologies

Addresses the following extrinsic aspects of ontology evaluation:

Requirements and their verificationHow evaluation can be used to revise requirementsHow evaluation can be used to correct an ontology

Megan Katsumi (MIE) University of Toronto January 24, 2013 2 / 24

Page 3: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Motivation

Existing lifecycle methodologies for ontology development do notadequately address challenges that arise with the development ofontologies in full First-Order Logic (FOL), specifically:

Expressiveness of requirements

Consistency-checking is not enough!

Verification guidance required

How do we continue when we are unable to verify a requirement?

Megan Katsumi (MIE) University of Toronto January 24, 2013 3 / 24

Page 4: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Challenges Addressed

We proposed a development methodology for the design and verification ofexpressive ontologies:

RequirementsDesign

Verification

Tuning Application

Megan Katsumi (MIE) University of Toronto January 24, 2013 4 / 24

Page 5: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

The BoxWorld Ontology

Used to describe 2-dimensional and 3-dimensional shapes

Applications in computer vision, manufacturing (e.g. sheet metal)

Relations:

point(p)edge(e)surface(s)part(p, e)meet(e1, e2, p)

Consider Tsurface , fragment of TBoxWorld describing only 2-dimensionalshapes

Figure: Intuitive modelsMegan Katsumi (MIE) University of Toronto January 24, 2013 5 / 24

Page 6: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Prototype Design

Requirements Prototype Design

Iterative Refinement

Figure: Developing the ontology and our understanding of its requirements

Prototype Design: draft axioms (from scratch, or via reuse)

Model Exploration: generate and review resulting models

UndirectedDirected

Iterative Refinement: revise prototype and / or informal requirements

Megan Katsumi (MIE) University of Toronto January 24, 2013 6 / 24

Page 7: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Intended Models

From informal requirements to semantic requirements

p1

p2

e1

e2

p5

e4p3p4

e3 e5

p1

p4

e1

e2

p3e4

p2p5

e3

e5

p10

p9p6

p7 p8

Figure: Intended and unintended models

Megan Katsumi (MIE) University of Toronto January 24, 2013 7 / 24

Page 8: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Intended Models

The relationship between the intended models for an ontology and theactual models of its axioms, reproduced from Guarino (2009)

Conceptualization C

Logical language L

Models

MD(L)

Intended models

IK(L)

Ontology models

OK

Unintended models

Omitted models

Megan Katsumi (MIE) University of Toronto January 24, 2013 8 / 24

Page 9: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Intended Models

Definition

Semantic requirements specify conditions on the intended models for theontology, and/or models of the ontology’s axioms.

There are two types of such conditions for semantic correctness:

M∈ Mod(Tonto)⇒M ∈Monto

andM∈Monto ⇒M ∈ Mod(Tonto)

Megan Katsumi (MIE) University of Toronto January 24, 2013 9 / 24

Page 10: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Semiautomatic Verification

Design︷ ︸︸ ︷Tonto ∪ Σdomain |=

Requirements︷︸︸︷Φ︸ ︷︷ ︸

Verification

The requirements are formulated as part of an entailment problem,this allows for the use of an automated theorem prover to evaluatethe requirements

In this way, verification is the process of using the theorem prover toevaluate if the requirements are entailed by the ontology

Megan Katsumi (MIE) University of Toronto January 24, 2013 10 / 24

Page 11: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Characterizing the Intended Models

Challenge: recognize characteristics of the intended models

For example, in the BoxWorld ontology:M is a model of Tsurface iff it is equivalent to a cyclic graphG = (V , A) such that:

V = {e : 〈e〉 ∈ edge}A = {(e1, e2) : 〈e1, e2,p〉 ∈ meet}

Megan Katsumi (MIE) University of Toronto January 24, 2013 11 / 24

Page 12: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Partial Characterization

Competency Questions: queries the ontology must be able to entail

Can be used to specify:

Required properties, a partial characterization of the intended modelsNecessary level of detailRequired performance with a theorem prover

Megan Katsumi (MIE) University of Toronto January 24, 2013 12 / 24

Page 13: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Requirements: Competency Questions

For example, in the BoxWorld ontology, for all 2-dimensional shapes,every edge meets exactly two distinct edges:

An edge cannot meet another edge at two distinct points

Tsurface |= (∀e1, e2, e3, p1, p2)meet(e1, e2, p1)

∧meet(e1, e3, p2) ∧ ¬(p1 = p2) ⊃ ¬(e2 = e3)

Every edge meets at most two distinct edges

Tsurface |= (∀e1, e2, e3, e4, p1, p2, p3)meet(e1, e2, p1)

∧meet(e1, e3, p2) ∧meet(e1, e4, p3) ⊃

((e2 = e3) ∧ (p1 = p2)) ∨ ((e2 = e4) ∧ (p1 = p3))

∨((e3 = e4) ∧ (p2 = p3))

Megan Katsumi (MIE) University of Toronto January 24, 2013 13 / 24

Page 14: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification

Guidance for each possible outcome of verification:

Case 1:

Unintended

Proof

Axiom design

error

Requirement

specification

error

Case 2:

No Proof

No proof exists

Provable

(intractability

issues)

Requirement too

strong

Axiomatization

too weak

Case 3:

Proof found

Proceed to next

entailment

problem

Return to Design

Phase

Return to Design

Phase

Return to

Requirements

Phase

Return to

Requirements

Phase

Tuning Phase

Megan Katsumi (MIE) University of Toronto January 24, 2013 14 / 24

Page 15: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 1: Unintended Proof

An unintended proof indicates:

Error in the design of the axiomsError in the specification of the requirement

Megan Katsumi (MIE) University of Toronto January 24, 2013 15 / 24

Page 16: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 1: Unintended Proof

For example, we “proved” the competency question presented earlier:Every edge meets at most two distinct edges

But, it was a proof that: Tsurface |= (¬∃p)point(p)

Examination of the proof showed that the axiom:

(∀e, p1, p2, p3)edge(e)∧point(p1)∧point(p2)∧point(p3)∧part(p1, e)

∧part(p2, e) ∧ part(p3, e) ⊃ (p1 = p3) ∨ (p2 = p3)

was incorrect

Megan Katsumi (MIE) University of Toronto January 24, 2013 16 / 24

Page 17: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 1: Unintended Proof

For example, we ”proved” the competency question presented earlier:Every edge meets at most two distinct edges

But, it was a proof that: Tsurface |= (¬∃p)point(p)

Examination of the proof showed that the axiom:

(∀e, p1, p2, p3)edge(e)∧point(p1)∧point(p2)∧point(p3)∧part(p1, e)

∧part(p2, e) ∧ part(p3, e) ⊃ (p1 = p3) ∨ (p2 = p3)∨(p1 = p2)

was incorrect

Megan Katsumi (MIE) University of Toronto January 24, 2013 17 / 24

Page 18: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 2: No Proof Found

Failure to find a proof indicates:Case 2A: No proof exists

Requirement is too strongOntology is too weak

Case 2B: Provable

Requirement is provable, but the theorem prover is having difficultiesproducing the proof

Generating counterexamples can identify Case 2A, but sometimes thecause is ambiguous

Megan Katsumi (MIE) University of Toronto January 24, 2013 18 / 24

Page 19: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 2: No Proof Found

For example, we could not find a proof of the competency questionthat an edge cannot meet another edge at two distinct points:

(∀e1, e2, e3, p1, p2)meet(e1, e2, p1) ∧meet(e1, e3, p2)

∧¬(p1 = p2) ⊃ ¬(e2 = e3)

Intuitions and knowledge of development history help determine thecause:

Poor theorem prover performance? Or not provable?

Megan Katsumi (MIE) University of Toronto January 24, 2013 19 / 24

Page 20: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 2A: Not Provable

In this instance, no proof existed

p5

p6

e5 e6

p1

p4 p3

p2e1

e2

e3

e4

A design decision:

Relax the requirement?Strengthen the axioms?

Megan Katsumi (MIE) University of Toronto January 24, 2013 20 / 24

Page 21: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Verification Case 2B: Provable

Tuning: The addition of lemmas or the use of subsets of the ontologyin order to improve theorem prover performance

Lemmas - in the traditional mathematical sense; some consequence ofa theory (ontology) that can be used to help prove some goal(requirement)Subsets - large ontologies may slow theorem prover performance;reasoning with a subset of the ontology’s axioms may improveperformance enough to prove a particularly challenging requirement

Megan Katsumi (MIE) University of Toronto January 24, 2013 21 / 24

Page 22: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Summary

Expressiveness of requirements

We proposed a lifecycle to support the development of expressiveontologies, employing automated reasoners for a rigorous specificationand semiautomatic verification of semantic requirements.

Verification guidance

We provided pragmatic guidance for the development phases,addressing all possible outcomes of theorem prover verification,including ambiguous timeouts (intractability or semidecidability?).

This methodology has been effectively used with ontologies for sheetmetal manufacturing and PSL (ISO18629).

Megan Katsumi (MIE) University of Toronto January 24, 2013 22 / 24

Page 23: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

Future Work

Incorporate consideration of other ontology development issues suchas quality, requirements validation, etc.

Address the challenge of model exploration for iterative refinement incases where the ontology has only infinite models

Include more specific guidance on how to leverage system use cases(when appropriate) to identify semantic requirements

Megan Katsumi (MIE) University of Toronto January 24, 2013 23 / 24

Page 24: A Methodology for the Development & Veri cation of Expressive Ontologiesontolog.cim3.net/file/work/OntologySummit2013/2013-01-24... · 2013. 1. 24. · In Proceedings of the International

References

Nicola Guarino, Daniel Oberle, and Steven Staab. What is anOntology?, pages 1–17. Springer-Verlag, Berlin, 2nd edition, 2009.

Megan Katsumi. A methodology for the development and verificationof expressive ontologies. M.Sc. thesis, Department of Mechanical andIndustrial Engineering, University of Toronto, 2011.

Megan Katsumi and Michael Gruninger. Theorem proving in theontology lifecycle. In Proceedings of the International Conference onKnowledge Engineering and Ontology Development, 2010.

Megan Katsumi (MIE) University of Toronto January 24, 2013 24 / 24