An Experiment in Retrofitting Competency Questions for Existing Ontologies

Reham Alharbi, Valentina Tamma, Floriana Grasso, Terry Payne
11/9/2023
32 citations
cs.AI

Official code: SemTech23/RETROFIT-CQs (0 stars, Python, last commit 2025-06-11).

Abstract

Competency Questions (CQs) are a form of ontology functional requirements expressed as natural language questions. Inspecting CQs together with the axioms in an ontology provides critical insights into the intended scope and applicability of the ontology.

Show full abstract

CQs also underpin a number of tasks in the development of ontologies e.g. ontology reuse, ontology testing, requirement specification, and the definition of patterns that implement such requirements. Although CQs are integral to the majority of ontology engineering methodologies, the practice of publishing CQs alongside the ontological artefacts is not widely observed by the community. In this context, we present an experiment in retrofitting CQs from existing ontologies. We propose RETROFIT-CQs, a method to extract candidate CQs directly from ontologies using Generative AI. In the paper we present the pipeline that facilitates the extraction of CQs by leveraging Large Language Models (LLMs) and we discuss its application to a number of existing ontologies.

View on arXivView PDF

Code Implementations(1)

00PythonAug 31, 20231 years ago

Similar Papers

Cite this paper

@article{alharbi2023experiment,
  title  = {An Experiment in Retrofitting Competency Questions for Existing Ontologies},
  author = {Reham Alharbi and Valentina Tamma and Floriana Grasso and Terry Payne},
  year   = {2023},
  eprint = {2311.05662},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.05662v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05662.svg)](https://codeofpaper.com/paper/2311.05662)

Discussion