mlsanityData to 14 Oct 2026

SPARQL-LLM: Real-Time SPARQL Query Generation from Natural Language Questions

arXiv 2512.14277 ↗First posted 16 Dec 2025cs.IR cs.AI cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

The advent of large language models is contributing to the emergence of novel approaches that promise to better tackle the challenge of generating structured queries, such as SPARQL queries, from natural language. However, these new approaches mostly focus on response accuracy while ignoring other evaluation criteria, such as runtime and cost to generate SPARQL queries. Consequently, they are often not production-ready or easy to deploy over real-world knowledge graphs with good accuracy. To mitigate these issues, in this paper, we describe and systematically evaluate SPARQL-LLM, an open-source and triplestore-agnostic approach, powered by lightweight metadata, that generates SPARQL queries from natural language text. First, we describe its architecture, which consists of dedicated components for metadata indexing, prompt building, and query generation and execution. Then, we evaluate it based on a state-of-the-art challenge with multilingual questions, and a collection of questions from three of the most prevalent knowledge graphs within the field of bioinformatics. Our results demonstrate a substantial improvement of up to 59% in F1 score over the second-best system participating in the challenge, adaptability to high-resource languages such as English, Spanish, and German, as well as ability to form complex bioinformatics queries. Furthermore, our results show that our system is up to 27x faster than the second-best system participating in the challenge, while costing a maximum of 0.01 per question, making it suitable for real-time, low-cost text-to-SPARQL applications. SPARQL-LLM is publicly released as an open-source project at https://github.com/sib-swiss/sparql-llm and is currently deployed over real-world decentralized knowledge graphs at https://www.expasy.org/chat.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 18 of its 44 references that are in the map. First posted on arXiv 16 Dec 2025.

Builds on

18 of 44 references.

References · 18

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2023Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graphcited by 238
  5. 2024jina-embeddings-v3: Multilingual Embeddings With Task LoRAcited by 141
  6. 2021A Survey on Complex Knowledge Base Question Answering: Methods, Challenges and Solutionscited by 78
  7. 2018Pytrec_eval: An Extremely Fast Python Interface to trec_evalcited by 46
  8. 2022QALD-9-plus: A Multilingual Dataset for Question Answering over DBpedia and Wikidata Translated by Native Speakerscited by 39
  9. 2025Large Language Models Meet Knowledge Graphs for Question Answering: Synthesis and Opportunitiescited by 31
  10. 2024SPINACH: SPARQL-Based Information Navigation for Challenging Real-World Questionscited by 27
  11. 2024LLM-based SPARQL Query Generation from Natural Language over Federated Knowledge Graphscited by 22
  12. 2023DBLP-QuAD: A Question Answering Dataset over the DBLP Scholarly Knowledge Graphcited by 18
6 more
  1. 2023On the Potential of Artificial Intelligence Chatbots for Data Exploration of Federated Bioinformatics Knowledge Graphscited by 9
  2. 2023NLQxform: A Language Model-based Question to SPARQL Transformercited by 8
  3. 2025GRASP: Generic Reasoning And SPARQL Generation across Knowledge Graphscited by 7
  4. 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 6
  5. 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilitiescited by 3
  6. 2024A large collection of bioinformatics question-query pairs over federated knowledge graphs: methodology and applicationscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.