OntoChat: a Framework for Conversational Ontology Engineering using Language Models
Bohui Zhang, Valentina Anita Carriero, Katrin Schreiberhuber, Stefani Tsaneva, Lucía Sánchez González, Jongmo Kim, Jacopo de Berardinis
TL;DR
OntoChat addresses the challenges of ontology engineering in multi-stakeholder, large-scale projects by combining conversational elicitation with LLM-assisted analysis and testing. The framework supports creating user stories, extracting and filtering competency questions, clustering CQs, and performing early ontology testing through textual verbalisation, avoiding SPARQL-heavy workflows. The authors validate the approach by replicating the Music Meta ontology's development and reporting positive feedback from domain experts and ontology engineers, plus promising testing accuracy (87.5%). The work offers an open-source, end-to-end tool for conversational OE and points to future work integrating domain-specific safeguards against hallucinations and biases while improving cost and timeline estimates.
Abstract
Ontology engineering (OE) in large projects poses a number of challenges arising from the heterogeneous backgrounds of the various stakeholders, domain experts, and their complex interactions with ontology designers. This multi-party interaction often creates systematic ambiguities and biases from the elicitation of ontology requirements, which directly affect the design, evaluation and may jeopardise the target reuse. Meanwhile, current OE methodologies strongly rely on manual activities (e.g., interviews, discussion pages). After collecting evidence on the most crucial OE activities, we introduce \textbf{OntoChat}, a framework for conversational ontology engineering that supports requirement elicitation, analysis, and testing. By interacting with a conversational agent, users can steer the creation of user stories and the extraction of competency questions, while receiving computational support to analyse the overall requirements and test early versions of the resulting ontologies. We evaluate OntoChat by replicating the engineering of the Music Meta Ontology, and collecting preliminary metrics on the effectiveness of each component from users. We release all code at https://github.com/King-s-Knowledge-Graph-Lab/OntoChat.
