Anna Sofia Lippolis, Mohammad Javad Saeedizade, Robin Keskisärkkä, Sara Zuppiroli, Miguel Ceriani, Aldo Gangemi, Eva Blomqvist, Andrea Giovanni Nuzzolese
4 min
Ontology engineering is notoriously difficult, requiring significant time and expertise to translate conceptual requirements into formal structures. This paper investigates whether Large Language Models (LLMs) can bridge this gap by automatically generating Web Ontology Language (OWL) drafts from natural language requirements, specifically user stories and competency questions (CQs).
The researchers developed and evaluated two novel prompting strategies: Memoryless CQbyCQ, which processes requirements sequentially, and Ontogenia, a more sophisticated approach designed to improve structural coherence. They tested these methods across three different LLMs using a benchmark dataset consisting of 100 competency questions and 29 user stories. To ensure a rigorous assessment, the team employed a multi-dimensional evaluation framework that combines structural metrics with expert qualitative analysis.
The study demonstrates that LLMs are capable of producing ontologies that meet professional standards. Specifically, the OpenAI o1-preview model, when paired with the Ontogenia prompting technique, produced results that surpassed the modeling capabilities of novice human engineers. However, the authors emphasize that these models are not yet autonomous; they frequently introduce common modeling mistakes and show inconsistent performance across different tasks. Consequently, while LLMs serve as powerful assistants for drafting ontologies, they currently require human intervention to ensure correctness and usability.
By automating the initial drafting phase of ontology development, this research offers a pathway to significantly reduce the labor-intensive nature of knowledge engineering. As LLMs continue to improve, these techniques could lower the barrier to entry for creating complex, domain-specific ontologies, provided that users remain aware of the inherent risks of model-generated errors.
The ontology engineering process is complex, time-consuming, and error-prone, even for experienced ontology engineers. In this work, we investigate the potential of Large Language Models (LLMs) to provide effective OWL ontology drafts directly from ontological requirements described using user stories and competency questions. Our main contribution is the presentation and evaluation of two new prompting techniques for automated ontology development: Memoryless CQbyCQ and Ontogenia. We also emphasize the importance of three structural criteria for ontology assessment, alongside expert qualitative evaluation, highlighting the need for a multi-dimensional evaluation in order to capture the quality and usability of the generated ontologies. Our experiments, conducted on a benchmark dataset of ten ontologies with 100 distinct CQs and 29 different user stories, compare the performance of three LLMs using the two prompting techniques. The results demonstrate improvements over the current state-of-the-art in LLM-supported ontology engineering. More specifically, the model OpenAI o1-preview with Ontogenia produces ontologies of sufficient quality to meet the requirements of ontology engineers, significantly outperforming novice ontology engineers in modelling ability. However, we still note some common mistakes and variability of result quality, which is important to take into account when using LLMs for ontology authoring support. We discuss these limitations and propose directions for future research.
Sam: So how does the AI actually perform compared to a human doing this from scratch?
Alex: The study suggests that with this prompting method, the AI produces work that meets the standards of professional engineers in the field — and it outperforms people who are new to this kind of work. That said, the paper is careful not to overstate this. The AI still shows what researchers call non-deterministic behaviour, meaning it can give different answers to the same prompt on different occasions, and it does make occasional errors.
Sam: So it's a useful co-pilot, not a replacement for a human expert.
Alex: That's the paper's position. It automates the most time-consuming parts of the process, but human oversight remains essential — particularly for high-stakes systems like medical databases, where a mistake in the structure could have real consequences. The researchers also suggest that in the future, models like this might be able to update these knowledge structures on their own as new information arrives, rather than requiring a human to revise them manually.
Sam: So the interesting shift here isn't just that AI can do this task — it's that the way you frame the task for the AI turns out to matter enormously.
Alex: Exactly. The underlying model doesn't change. What changes is the strategy for communicating with it. Breaking a complex goal into structured, answerable questions is what allows the AI to produce something genuinely useful rather than something superficially plausible. It's a meaningful finding for anyone working on knowledge engineering, and it points toward a more systematic way of thinking about how humans and AI systems collaborate on technical work.
Sam: Fascinating stuff. Thanks for walking us through it.
Alex: Thanks for listening to ResearchPod.