• Home
  • Search
  • LLM-Based Natural Language to SPARQL Translation over Domain-Specific Knowledge Graph
  • Cite Icon1
  • https://doi.org/10.31083/ko42705Copy DOI Icon

LLM-Based Natural Language to SPARQL Translation over Domain-Specific Knowledge Graph

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Semantic web applications are witnessing a dramatic increase in complexity, data volume, and usage. Likewise, large language models (LLMs) are experiencing significant developments in performance and capabilities. Consequently, LLMs have been utilized in various fields and applications to support primary and secondary tasks. The proven ability of LLMs to process natural language (NL) has opened the door to integration into many tasks, including NL-related tasks such as Knowledge Graph Question Answering (KGQA), which involves translating NL questions into SPARQL queries to retrieve answers from Knowledge Graphs (KG). However, answering questions over domain-specific KGs is challenging due to complex schema structures, specialized vocabularies, and query complexity. Therefore, the development of domain-agnostic and user-friendly KG querying mechanisms has become necessary. Motivated by this need, this paper presents an LLM based approach for translating NL questions into SPARQL queries over domain-specific KG by investigating how various configurations of augmented KG data influence LLM responses. Our approach adopts a streamlined method for zero-shot SPARQL query generation by augmenting LLMs with different arrangements of previously extracted domain-specific KG information. Specifically, our experiments evaluate LLM generated SPARQL responses against twenty manually crafted questions of varying complexity using prompts augmented with different KG information: first, a reduced linearized KG, and second, discrete vocabulary information extracted from a reduced ontology KG. The results indicate that supplementing LLM prompts with discrete vocabulary information extracted from a reduced KG ontology yields competitive performance levels for the target LLM models compared to supplementing them with a reduced ontology. Ultimately, our approach reduces the augmented KG information size while preserving response accuracy, enables off-domain users to interact with domain-specific KG information and retrieve responses through a domain-agnostic interface, and facilitates benchmarking over a wide spectrum of LLM models.

Similar Papers
  • Book Chapter
  • Citations5

Enhancing Manufacturing Knowledge Access with LLMs and Context-Aware Prompting

  • Oct 16, 2024
  • Frontiers in artificial intelligence and applications
  • Sebastian Monka +6
  • Research Article
  • Citations3

Automating IoT Data Privacy Compliance by Integrating Knowledge Graphs with Large Language Models

  • Jan 01, 2025
  • IEEE Access
  • Kelvin U Echenim +1
  • Research Article
  • Citations2

Context-Aware Few-Shot Learning SPARQL Query Generation from Natural Language on an Aviation Knowledge Graph

  • Jun 13, 2025
  • Machine Learning and Knowledge Extraction
  • Ines-Virginia Hernandez-Camero +3
  • Research Article
  • Citations975

Unifying Large Language Models and Knowledge Graphs: A Roadmap

  • Jul 01, 2024
  • IEEE Transactions on Knowledge and Data Engineering
  • Shirui Pan +5
  • Preprint Article

EXASAGE: The First Data Center Operational Data Co-pilot

  • Feb 26, 2025
  • Junaid Ahmed Khan +2
  • Research Article

Constructing an internal solitary wave knowledge graph: a framework integrating domain ontology and LLMs

  • Mar 01, 2026
  • Journal of Physics: Conference Series
  • Bo Li +7
  • Research Article

Construction and evaluation of the knowledge graph and large model question-answering system for Jin San Zhen therapy: a tool study for primary care and general practice.

  • Jan 01, 2026
  • Frontiers in medicine
  • Junjie Chen +8
  • Conference Article
  • Citations12

InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integration

  • Jan 01, 2024
  • Fali Wang +6
  • PDF
  • Research Article
  • Citations11

Graph retrieval augmented large language models for facial phenotype associated rare genetic disease

  • Aug 24, 2025
  • NPJ Digital Medicine
  • Jie Song +4
  • Research Article

Knowledge graph-large language model fusion approach for emergency knowledge recommendation in gas tunnels.

  • Feb 28, 2026
  • Scientific reports
  • Na Xu +5
  • Preprint Article
  • Citations1

Task Splitting and Prompt Engineering for Cypher Query Generation in Domain-Specific Knowledge Graphs

  • Apr 24, 2025
  • bioRxiv (Cold Spring Harbor Laboratory)
  • Saber Soleymani +3
  • Research Article
  • Citations27

Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation.

  • Apr 12, 2025
  • Journal of the American Medical Informatics Association : JAMIA
  • Siru Liu +5
  • Research Article

A Self-Improving, RAG-Enhanced Framework for Automatic Knowledge Graph Construction from Climate Event News

  • May 11, 2025
  • Proceedings of the International ISCRAM Conference
  • Xiaorui Chen +1
  • Research Article
  • Citations7

A Systematic Exploration of Knowledge Graph Alignment with Large Language Models in Retrieval Augmented Generation

  • Apr 11, 2025
  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Shiyu Tian +7
  • Conference Article
  • Citations10

SymAgent: A Neural-Symbolic Self-Learning Agent Framework for Complex Reasoning over Knowledge Graphs

  • Apr 22, 2025
  • Ben Liu +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.