Pattern-Based Prompting for Accurate Extraction of Ontology Assertional (A-box) Axioms Using LLMs for Ontology Population

Existing research has demonstrated that advanced Large Language Models (LLMs), such as GPT-4, Falcon-40B, and LLaMA2, can support Ontology Population (OP) by extracting and integrating assertional axioms from text. However, their tendency to hallucinate undermines trust in high-precision applications, causing ontology developers to hesitate before adopting LLM-based methods. In this study, we first surveyed existing OP experiments to select the most accurate model, identifying GPT as the leading candidate. We then analysed where and why hallucinations occurred during OP and observed that they predominantly arose when the model lacked clear guidance on the ontology’s structure. To mitigate this, we devised a prompting strategy grounded in ontology design patterns, explicitly conveying schema constraints to the LLM. Experimental results on a real-world use case demonstrate that our pattern-based prompts significantly reduce hallucinations and yield more accurate axiom extraction compared to conventional prompts. These findings indicate that leveraging ontology design patterns in LLM prompts substantially enhances the reliability of automated OP workflows.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.265
Primary Topic
Semantic Web and Ontologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Pattern-Based Prompting for Accurate Extraction of Ontology Assertional (A-box) Axioms Using LLMs for Ontology Population

Ian Wilson, Athula Ginige, Jeevani Goonetillake, R Shyama
Procedia Computer Science
Semantic Web and Ontologies
article

Pattern-Based Prompting for Accurate Extraction of Ontology Assertional (A-box) Axioms Using LLMs for Ontology Population

Ian Wilson, Athula Ginige, Jeevani Goonetillake, R Shyama
article en

Abstract

Existing research has demonstrated that advanced Large Language Models (LLMs), such as GPT-4, Falcon-40B, and LLaMA2, can support Ontology Population (OP) by extracting and integrating assertional axioms from text. However, their tendency to hallucinate undermines trust in high-precision applications, causing ontology developers to hesitate before adopting LLM-based methods. In this study, we first surveyed existing OP experiments to select the most accurate model, identifying GPT as the leading candidate. We then analysed where and why hallucinations occurred during OP and observed that they predominantly arose when the model lacked clear guidance on the ontology’s structure. To mitigate this, we devised a prompting strategy grounded in ontology design patterns, explicitly conveying schema constraints to the LLM. Experimental results on a real-world use case demonstrate that our pattern-based prompts significantly reduce hallucinations and yield more accurate axiom extraction compared to conventional prompts. These findings indicate that leveraging ontology design patterns in LLM prompts substantially enhances the reliability of automated OP workflows.

Procedia Computer ScienceVol. 270
Heriot-Watt University (GB), New South Wales Institute of Psychiatry (AU), Uva Wellassa University (LK), Western Sydney University (AU)
Openalex Percentile: Top 83%
Semantic Web and Ontologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.