Instruct-to-SPARQL: A text-to-SPARQL dataset for training SPARQL Agents

The rapid adoption of Large Language Models (LLMs) for search engines and fact-checking platforms necessitates enhancing their output accuracy.Retrieval Augmented Generation (RAG) mitigates hallucinations but requires semantically rich repositories like Wikidata.However, there is a lack of high-quality data to fine-tune LLMs for querying such knowledge bases.To address this gap, we propose a curated dataset with 2,771 unique queries for fine-tuning LLMs to generate accurate and syntactically valid SPARQL queries from natural language instructions.This dataset, customized for interaction with Wikidata, also serves as a robust benchmark for text-to-SPARQL task evaluation.Key findings show that models generally perform better on queries with lower complexity.

Authors

Institutions

Publication Details

Published
2025-03-24
DOI
https://doi.org/10.1145/3698204.3716476
Citations
2
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
4.96

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Instruct-to-SPARQL: A text-to-SPARQL dataset for training SPARQL Agents

Michael Granitzer, Mehdi Ben Amor, Jelena Mitrović, Elöd Egyed‐Zsigmond et al.
2 citations
Natural Language Processing Techniques
4.96
article

Instruct-to-SPARQL: A text-to-SPARQL dataset for training SPARQL Agents

Michael Granitzer, Mehdi Ben Amor, Jelena Mitrović, Elöd Egyed‐Zsigmond, Alexis Strappazzon
article en
2 citations

Abstract

The rapid adoption of Large Language Models (LLMs) for search engines and fact-checking platforms necessitates enhancing their output accuracy.Retrieval Augmented Generation (RAG) mitigates hallucinations but requires semantically rich repositories like Wikidata.However, there is a lack of high-quality data to fine-tune LLMs for querying such knowledge bases.To address this gap, we propose a curated dataset with 2,771 unique queries for fine-tuning LLMs to generate accurate and syntactically valid SPARQL queries from natural language instructions.This dataset, customized for interaction with Wikidata, also serves as a robust benchmark for text-to-SPARQL task evaluation.Key findings show that models generally perform better on queries with lower complexity.

University of Passau (DE), Laboratoire d'Informatique en Images et Systèmes d'Information (FR), Institut National des Sciences Appliquées de Lyon (FR)
Bundesministerium für Bildung und Forschung, Bundesministerium für Ernährung und Landwirtschaft
Quality Education
Openalex Percentile: Top 5%
Natural Language Processing Techniques
4.96
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Instruct-to-SPARQL: A text-to-SPARQL dataset for training SPARQL Agents — Michael Granitzer, Mehdi Ben Amor, et al. · (2025) | TGRS Research Map | TGRS