180 likes | 300 Views
Towards Competency Question-driven Ontology Authoring. Yuan Ren , Artemis Parvizi, Chris Mellish, Jeff Z. Pan, Kees van Deemter University of Aberdeen, UK Robert Stevens University of Manchester, UK. Ontology Authoring.
E N D
Towards Competency Question-driven Ontology Authoring Yuan Ren, Artemis Parvizi, Chris Mellish, Jeff Z. Pan, Kees van Deemter University of Aberdeen, UK Robert Stevens University of Manchester, UK
Ontology Authoring • Is difficult for novice authors: unfamiliar with DLs, RDF, SPARQL, OWL, etc. • Our vision: Competency Question-driven Ontology Authoring ? Requirements √ ? Test Results Competency Questions Ontology Answerability Testing Ontology Authoring √
Research Questions • How are real-world Competency Questions (CQs) formulated? • How can we automatically test whether a CQ can be meaningfully answered?
CQs in Ontology Authoring • A typical CQ: Which pizza has some cheese topping? • Questions that people expect the constructed ontologies to answer • Useful for novice users: • in natural languages • about domain knowledge • requires little understanding of ontology technologies
CQs in Ontology Authoring • A typical CQ: Which pizza has some cheese topping? • Existing work focused on answering CQs directly • Applying CQs in ontology authoring • Proposed by M. Uschold, M. Gruninger, et al. • NeON methodology • Visualisation based on goal modelling • Formalising CQs into SPARQL queries • Formalising CQs into DL queries • Natural language CQ understanding
CQs in Ontology Authoring • A typical CQ: Which pizza has some cheese topping? • Existing work focused on answering CQs directly • But is the answer meaningful? • The ability to answer CQs meaningfully can be regarded as a functional requirement of the ontology • Answer: empty set • Possible scenarios • Pizza does not exist • Cheese topping does not exist • Pizzas are not allowed to have cheese topping • The ontology has not been populated with any cheesy pizza yet • …
CQs in Ontology Authoring • A typical CQ: Which pizza has some cheese topping? • A CQ comes with certain presuppositions • Some conditions the speakers assume to be met • A CQ can be meaningfully answered only when its presuppositions are satisfied • Classes Pizza, CheeseTopping should occur in the ontology • Property has(Topping) should occur in the ontology • The ontology should allow Pizza to have CheeseTopping • The ontology should also allow Pizza to not have CheeseTopping
CQs in Ontology Authoring • A typical CQ: Which pizza has some cheese topping? • CQs usually have clear and relatively simple syntactic patterns • Features and elements can be extracted OPE CE1 CE2 Element: Class expression CE2 Feature: Binary predicate Element: Object property expressions OPE Element: Class expression CE1 Feature: Type of question
CQs in Ontology Authoring ? • A typical CQ: Which pizza has some cheese topping? • Satisfiability of CQ presuppositions can be verified by authoring tests generated based on its features and elements • Classes Pizza, CheeseTopping should occur in the ontology • [CE1], [CE2] should both occur in the class vocabulary • Property has(Topping) should occur in the ontology • [OPE] should occur in the property vocabulry • The ontology should allow Pizza to have CheeseTopping • should be satisfiable • The ontology should also allow Pizza to not have CheeseTopping • should be satisfiable CQ formulation OPE CE1 CE2 ? Authoring Test Generation
Result 1: A Feature-based Framework for CQ Formulation Feature • Based on CQs collected from the Software Ontology Project (75 CQs) and Manchester OWL Workshops (70 CQs) • Primary features -> CQ Archetypes • Secondary features -> CQ Subtypes Primary Feature Secondary Feature Predicate Arity Relation Type Modifier Domain Independent Element Question Type Element Visibility Question Polarity Unary Object Quantity Spatial Selection Explicit Positive Binary Datatype Numeric Temporal Boolean Implicit Negative N-ary Counting
Result 2: Subtypes in An Archetype • An example on archetype 1
Result 3: Formulation of Real-world CQs • 6 archetypes are shared by the 2 collections • They are also the most populated archetypes • Cover 86.2% of total CQs in our collections • Coverage on CQs studied by existing works: 55 CQs in total • All except 1 covered by our framework • Archetype 1 is still the most populated • The only remaining one is “Why universities are organised into departments?”
Result 4: Associating Presuppositions with Features • The features in a CQ are associated with the presuppositions of the CQ. • An example on the question type feature: Occurrence of “Pizza”, “Pork”, “contains” Question Type Which pizza contains pork? Selection Some pizza can contain pork Boolean Can pizza contain pork? Counting How many pizza contains pork? Some pizza can contain no pork
Result 5: Formal Authoring Tests • All testings can be automated
A Competency Question-driven Ontology Authoring Pipeline Requirements CQs in CNL and of certain patterns Test Results Features and elements Ontology Automatic Test-runner Authoring Tests Ontology Authoring
Summary of the Work • How are real-world CQs formulated? • Most real-world CQs we have collected can be described with a feature-based framework • How can we automatically test whether a CQ can be meaningfully answered? • The presuppositions of CQs can be identified based on the features and parameterised, tested with automatic authoring tests • Future work • Implement the pipeline and evaluate it with human participations • Further extend the CQ description framework and presuppositions • Query containment among multiple authoring tests • Efficient stream reasoning in authoring time
Thank You! • This research has been funded by EPSRC project: WhatIf: Answering “What if…” questions for Ontology Authoring. • We also thank Caroline Jay and Markel Vigo for their inspiring discussions and assistance in CQ collection. Requirements CQs in CNL and of certain patterns Test Results Features and elements Ontology Automatic Test-runner Authoring Tests Ontology Authoring