🤖 AI Summary
Non-computer-science users struggle to translate natural language questions into executable SPARQL queries for interactive knowledge graph (KG) exploration. Method: This paper proposes a progressive Text2SPARQL approach grounded in the ReAct framework and inspired by SPINACH, integrating multi-step KG exploration with large language model (LLM)-driven iterative reasoning. The method instantiates an intelligent agent capable of executing SPARQL queries, receiving execution feedback, and performing self-correction—augmented by a SPARQL engine and an interpretable KG exploration toolkit. Contribution/Results: The approach significantly improves semantic parsing accuracy and process transparency for complex questions. Evaluated on the Text2SPARQL Challenge benchmark, it achieves substantially higher query accuracy than state-of-the-art baselines. Behavioral analysis further identifies recurring error patterns, providing empirical grounding for future refinements.
📝 Abstract
Interacting with knowledge graphs can be a daunting task for people without a background in computer science since the query language that is used (SPARQL) has a high barrier of entry. Large language models (LLMs) can lower that barrier by providing support in the form of Text2SPARQL translation. In this paper we introduce a generalized method based on SPINACH, an LLM backed agent that translates natural language questions to SPARQL queries not in a single shot, but as an iterative process of exploration and execution. We describe the overall architecture and reasoning behind our design decisions, and also conduct a thorough analysis of the agent behavior to gain insights into future areas for targeted improvements. This work was motivated by the Text2SPARQL challenge, a challenge that was held to facilitate improvements in the Text2SPARQL domain.