Assessing SPARQL capabilities of Large Language Models
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
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,151
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
- 2020Knowledge Graphscited by 619
- 2015Large-scale Simple Question Answering with Memory Networkscited by 127
- 2023FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answeringcited by 51
- 2023LLM-assisted Knowledge Graph Engineering: Experiments with ChatGPTcited by 42
- 2022Modern Baselines for SPARQL Semantic Parsingcited by 34
- 2024SPARQL Generation: an analysis on fine-tuning OpenLLaMA for Question Answering over a Life Science Knowledge Graphcited by 19
- 2023Developing a Scalable Benchmark for Assessing Large Language Models in Knowledge Graph Engineeringcited by 13
- 2024Leveraging small language models for Text2SPARQL tasks to improve the resilience of AI assistancecited by 13
- 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
Built on by
Citing papers per year: 2024: 2; 2025: 10; 2026: 2.
14 papers.
Sort:
By area:
- 2024LLM-based SPARQL Query Generation from Natural Language over Federated Knowledge Graphscited by 22
- 2025Enhancing Text2Cypher with Schema Filteringcited by 6
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 5
- 2025LLM-KG-Bench 3.0: A Compass for SemanticTechnology Capabilities in the Ocean of LLMscited by 3
- 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilitiescited by 3
- 2025OntologyRAG: Better and Faster Biomedical Code Mapping with Retrieval-Augmented Generation (RAG) Leveraging Ontology Knowledge Graphs and Large Language Modelscited by 2
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAGcited by 1
- 2025How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performancecited by 1
- 2025Bridging Dual Knowledge Graphs for Multi-Hop Question Answering in Construction Safetycited by 1
- 2026GraphSeek: Next-Generation Graph Analytics with LLMscited by 1
- 2025Knowledge Conceptualization Impacts RAG Efficacycited by 0
- 2025Characterizing Knowledge Graph Tasks in LLM Benchmarks Using Cognitive Complexity Frameworkscited by 0
- 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)10 Sep 2026
- 2026GraphSeek: Next-Generation Graph Analytics with LLMs11 Feb 2026
- 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilities2 Oct 2025
- 2025MetaboT: An LLM-based Multi-Agent Frameworkfor Interactive Analysis of Mass SpectrometryMetabolomics Knowledge Graphs2 Oct 2025
- 2025Characterizing Knowledge Graph Tasks in LLM Benchmarks Using Cognitive Complexity Frameworks17 Sep 2025
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injection18 Jul 2025
- 2025Bridging Dual Knowledge Graphs for Multi-Hop Question Answering in Construction Safety18 Jul 2025
- 2025Knowledge Conceptualization Impacts RAG Efficacy12 Jul 2025
- 2025How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performance22 May 2025
- 2025LLM-KG-Bench 3.0: A Compass for SemanticTechnology Capabilities in the Ocean of LLMs19 May 2025
- 2025Enhancing Text2Cypher with Schema Filtering8 May 2025
- 2025OntologyRAG: Better and Faster Biomedical Code Mapping with Retrieval-Augmented Generation (RAG) Leveraging Ontology Knowledge Graphs and Large Language Models26 Feb 2025
- 2025Enhancing Text2Cypher with Schema Filteringcited by 6
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 5
- 2025LLM-KG-Bench 3.0: A Compass for SemanticTechnology Capabilities in the Ocean of LLMscited by 3
- 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilitiescited by 3
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAGcited by 1
- 2025How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performancecited by 1
- 2025Bridging Dual Knowledge Graphs for Multi-Hop Question Answering in Construction Safetycited by 1
- 2026GraphSeek: Next-Generation Graph Analytics with LLMscited by 1
- 2025Knowledge Conceptualization Impacts RAG Efficacycited by 0
- 2025Characterizing Knowledge Graph Tasks in LLM Benchmarks Using Cognitive Complexity Frameworkscited by 0
- 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)cited by 0
- 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)10 Sep 2026
- 2026GraphSeek: Next-Generation Graph Analytics with LLMs11 Feb 2026
- 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilities2 Oct 2025
- 2025Characterizing Knowledge Graph Tasks in LLM Benchmarks Using Cognitive Complexity Frameworks17 Sep 2025
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injection18 Jul 2025
- 2025Bridging Dual Knowledge Graphs for Multi-Hop Question Answering in Construction Safety18 Jul 2025
- 2025Knowledge Conceptualization Impacts RAG Efficacy12 Jul 2025
- 2025How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performance22 May 2025
- 2025LLM-KG-Bench 3.0: A Compass for SemanticTechnology Capabilities in the Ocean of LLMs19 May 2025
- 2025Enhancing Text2Cypher with Schema Filtering8 May 2025
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAG23 Dec 2024