mlsanityData to 7 Oct 2026

Assessing SPARQL capabilities of Large Language Models

arXiv 2409.05925 ↗First posted 9 Sep 2024cs.DB cs.AI cs.CLcited by 14

Not on the map. Why?

Abstract (arXiv)

The integration of Large Language Models (LLMs) with Knowledge Graphs (KGs) offers significant synergistic potential for knowledge-driven applications. One possible integration is the interpretation and generation of formal languages, such as those used in the Semantic Web, with SPARQL being a core technology for accessing KGs. In this paper, we focus on measuring out-of-the box capabilities of LLMs to work with SPARQL and more specifically with SPARQL SELECT queries applying a quantitative approach. We implemented various benchmarking tasks in the LLM-KG-Bench framework for automated execution and evaluation with several LLMs. The tasks assess capabilities along the dimensions of syntax, semantic read, semantic create, and the role of knowledge graph prompt inclusion. With this new benchmarking tasks, we evaluated a selection of GPT, Gemini, and Claude models. Our findings indicate that working with SPARQL SELECT queries is still challenging for LLMs and heavily depends on the specific LLM as well as the complexity of the task. While fixing basic syntax errors seems to pose no problems for the best of the current LLMs evaluated, creating semantically correct SPARQL SELECT queries is difficult in several cases.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 15 of its 36 references that are in the map. First posted on arXiv 9 Sep 2024.

Builds on

15 of 36 references.

References · 15

  1. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  2. 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,151
  3. 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
  4. 2020Knowledge Graphscited by 619
  5. 2015Large-scale Simple Question Answering with Memory Networkscited by 127
  6. 2023FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answeringcited by 51
  7. 2023LLM-assisted Knowledge Graph Engineering: Experiments with ChatGPTcited by 42
  8. 2022Modern Baselines for SPARQL Semantic Parsingcited by 34
  9. 2024SPARQL Generation: an analysis on fine-tuning OpenLLaMA for Question Answering over a Life Science Knowledge Graphcited by 19
  10. 2023Developing a Scalable Benchmark for Assessing Large Language Models in Knowledge Graph Engineeringcited by 13
  11. 2024Leveraging small language models for Text2SPARQL tasks to improve the resilience of AI assistancecited by 13
  12. 2023Benchmarking the Abilities of Large Language Models for RDF Knowledge Graph Creation and Comprehension: How Well Do LLMs Speak Turtle?cited by 11
3 more
  1. 2023A Comprehensive Evaluation of Neural SPARQL Query Generation from Natural Language Questionscited by 9
  2. 2024SPARQL Generation with Entity Pre-trained GPT for KG Question Answeringcited by 6
  3. 2022A Copy Mechanism for Handling Knowledge Base Elements in SPARQL Neural Machine Translationcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 10; 2026: 2.

14 papers.

Sort:

By area:

  1. 2024LLM-based SPARQL Query Generation from Natural Language over Federated Knowledge Graphscited by 22
  2. 2025Enhancing Text2Cypher with Schema Filteringcited by 6
  3. 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 5
  4. 2025LLM-KG-Bench 3.0: A Compass for SemanticTechnology Capabilities in the Ocean of LLMscited by 3
  5. 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilitiescited by 3
  6. 2025OntologyRAG: Better and Faster Biomedical Code Mapping with Retrieval-Augmented Generation (RAG) Leveraging Ontology Knowledge Graphs and Large Language Modelscited by 2
  7. 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAGcited by 1
  8. 2025How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performancecited by 1
  9. 2025Bridging Dual Knowledge Graphs for Multi-Hop Question Answering in Construction Safetycited by 1
  10. 2026GraphSeek: Next-Generation Graph Analytics with LLMscited by 1
  11. 2025Knowledge Conceptualization Impacts RAG Efficacycited by 0
  12. 2025Characterizing Knowledge Graph Tasks in LLM Benchmarks Using Cognitive Complexity Frameworkscited by 0
2 more
  1. 2025MetaboT: An LLM-based Multi-Agent Frameworkfor Interactive Analysis of Mass SpectrometryMetabolomics Knowledge Graphscited by 0
  2. 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)cited by 0