A RAG Approach for Generating Competency Questions in Ontology Engineering
On the map: Retrieval-augmented generation → Knowledge-graph and structured-knowledge RAG
Abstract (arXiv)
Competency question (CQ) formulation is central to several ontology development and evaluation methodologies. Traditionally, the task of crafting these competency questions heavily relies on the effort of domain experts and knowledge engineers which is often time-consuming and labor-intensive. With the emergence of Large Language Models (LLMs), there arises the possibility to automate and enhance this process. Unlike other similar works which use existing ontologies or knowledge graphs as input to LLMs, we present a retrieval-augmented generation (RAG) approach that uses LLMs for the automatic generation of CQs given a set of scientific papers considered to be a domain knowledge base. We investigate its performance and specifically, we study the impact of different number of papers to the RAG and different temperature setting of the LLM. We conduct experiments using GPT-4 on two domain ontology engineering tasks and compare results against ground-truth CQs constructed by domain experts. Empirical assessments on the results, utilizing evaluation metrics (precision and consistency), reveal that compared to zero-shot prompting, adding relevant domain knowledge to the RAG improves the performance of LLMs on generating CQs for concrete ontology engineering tasks.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Knowledge-graph and structured-knowledge RAG, one of 15 directions in Retrieval-augmented generation. Builds on 7 of its 19 references that are in the map. First posted on arXiv 13 Sep 2024.
Builds on
7 of 19 references.
References · 7
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 138
- 2021A Good Prompt Is Worth Millions of Parameters: Low-resource Prompt-based Learning for Vision-Language Modelscited by 101
- 2023An Experiment in Retrofitting Competency Questions for Existing Ontologiescited by 12
- 2021BigCQ: A large-scale synthetic dataset of competency question patterns formalized into SPARQL-OWL query templatescited by 2
- 2023Divide and Conquer the EmpiRE: A Community-Maintainable Knowledge Graph of Empirical Research in Requirements Engineeringcited by 2
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025Bench4KE: Benchmarking Automated Competency Question Generationcited by 3
- 2025Instructional Goal-Aligned Question Generation for Student Evaluation in Virtual Lab Settings: How Closely Do LLMs Actually Align?cited by 1
- 2025Q2Forge: Minting Competency Questions and SPARQL Queries for Question-Answering Over Knowledge Graphscited by 0
- 2025VSPO: Validating Semantic Pitfalls in Ontology via LLM-Based CQ Generationcited by 0
- 2026IDEA2: Expert-in-the-loop competency question elicitation for collaborative ontology engineeringcited by 0
- 2026A Task-Centric Ontology and Deterministic Domain Rules as a Verifiable Core for AI-Assisted Chemistry Problem Solvingcited by 0
- 2026CQ4OE: A benchmark for assessing LLM-assisted ontology generation from competency questionscited by 0
- 2026CQ4OE: A benchmark for assessing LLM-assisted ontology generation from competency questions22 Sep 2026
- 2026A Task-Centric Ontology and Deterministic Domain Rules as a Verifiable Core for AI-Assisted Chemistry Problem Solving12 Jul 2026
- 2026IDEA2: Expert-in-the-loop competency question elicitation for collaborative ontology engineering1 Apr 2026
- 2025VSPO: Validating Semantic Pitfalls in Ontology via LLM-Based CQ Generation11 Nov 2025
- 2025Instructional Goal-Aligned Question Generation for Student Evaluation in Virtual Lab Settings: How Closely Do LLMs Actually Align?7 Oct 2025
- 2025Bench4KE: Benchmarking Automated Competency Question Generation30 May 2025
- 2025Q2Forge: Minting Competency Questions and SPARQL Queries for Question-Answering Over Knowledge Graphs19 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Models
- 2025Ontology Learning and Knowledge Graph Construction: A Comparison of Approaches and Their Impact on RAG Performance
- 2025Assessing the Capability of Large Language Models for Domain-Specific Ontology Generation
- 2026OntoExtend: A Framework for Requirement-driven and Scalable Ontology Extension with LLMs
- 2024Domain-Specific Retrieval-Augmented Generation Using Vector Stores, Knowledge Graphs, and Tensor Factorization
- 2025KROMA: Ontology Matching with Knowledge Retrieval and Large Language Models
- 2024KAG: Boosting LLMs in Professional Domains via Knowledge Augmented Generation
- 2024DuetRAG: Collaborative Retrieval-Augmented Generation