Automating SPARQL Query Translations between DBpedia and Wikidata
Not on the map. Why?
Abstract (arXiv)
This paper investigates whether state-of-the-art Large Language Models (LLMs) can automatically translate SPARQL between popular Knowledge Graph (KG) schemas. We focus on translations between the DBpedia and Wikidata KG, and later on DBLP and OpenAlex KG. This study addresses a notable gap in KG interoperability research by rigorously evaluating LLM performance on SPARQL-to-SPARQL translation. Two benchmarks are assembled, where the first align 100 DBpedia-Wikidata queries from QALD-9-Plus; the second contains 100 DBLP queries aligned to OpenAlex, testing generalizability beyond encyclopaedic KGs. Three open LLMs: Llama-3-8B, DeepSeek-R1-Distill-Llama-70B, and Mistral-Large-Instruct-2407 are selected based on their sizes and architectures and tested with zero-shot, few-shot, and two chain-of-thought variants. Outputs were compared with gold answers, and resulting errors were categorized. We find that the performance varies markedly across models and prompting strategies, and that translations for Wikidata to DBpedia work far better than translations for DBpedia to Wikidata.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 18 of its 34 references that are in the map. First posted on arXiv 14 Jul 2025.
Builds on
18 of 34 references.
References · 18
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 668
- 2020Knowledge Graphscited by 621
- 2022OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and conceptscited by 177
- 2022A Survey of Knowledge Graph Reasoning on Graph Types: Static, Dynamic, and Multimodalcited by 106
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
- 2022QALD-9-plus: A Multilingual Dataset for Question Answering over DBpedia and Wikidata Translated by Native Speakerscited by 39
- 2022Modern Baselines for SPARQL Semantic Parsingcited by 34
6 more
- 2019Neural Machine Translating from Natural Language to SPARQLcited by 23
- 2023DBLP-QuAD: A Question Answering Dataset over the DBLP Scholarly Knowledge Graphcited by 18
- 2021A Survey of RDF Stores & SPARQL Engines for Querying Knowledge Graphscited by 10
- 2023KG-Hub -- Building and Exchanging Biological Knowledge Graphscited by 6
- 2023Knowledge Graphs Queryingcited by 5
- 2023A Polystore Architecture Using Knowledge Graphs to Support Queries on Heterogeneous Data Storescited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026DeSQ: Decomposition-based SPARQL Query Generationcited by 0
- 2026DeSQ: Decomposition-based SPARQL Query Generation29 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL
- 2025FIRESPARQL: A LLM-based Framework for SPARQL Query Generation over Scholarly Knowledge Graphs
- 2024Aligning Large Language Models to a Domain-specific Graph Database for NL2GQL
- 2025GRASP: Generic Reasoning And SPARQL Generation across Knowledge Graphs
- 2025Augmented Knowledge Graph Querying leveraging LLMs
- 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilities
- 2024LLM-based SPARQL Query Generation from Natural Language over Federated Knowledge Graphs
- 2025From Graph Retrieval to Schema Realization: Counterfactual Validation for Text-to-SPARQL over Heterogeneous Knowledge Graphs