• English
  • Deutsch
  • Log In
    Password Login
    Research Outputs
    Fundings & Projects
    Researchers
    Institutes
    Statistics
Repository logo
Fraunhofer-Gesellschaft
  1. Home
  2. Fraunhofer-Gesellschaft
  3. Konferenzschrift
  4. SPARQLGEN: One-Shot Prompt-based Approach for SPARQL Query Generation
 
  • Details
  • Full
Options
2023
Conference Paper
Title

SPARQLGEN: One-Shot Prompt-based Approach for SPARQL Query Generation

Abstract
In this work, we present a one-shot generative approach (further referred to as SPARQLGEN) for generating SPARQL queries by augmenting Large Language Models (LLMs) with the relevant context within a single prompt. The prompt includes heterogeneous data sources: a question itself, an RDF subgraph required to answer the question, and an example of a correct SPARQL query for a different question. In the experiments, GPT-3, a popular pre-trained language model from OpenAI, was leveraged, but it is possible to extend the approach to any other generative LLM. We evaluate, how different types of context in the prompt influence the query generation performance on QALD-9, QALD-10 and Bestiary dataset (BESTIARY), which was created to test LLM performance on unseen data, and provide a detailed error analysis. One of the findings is that providing the model with the underlying KG and a random correct query improve the generation results. The approach shows strong results on QALD-9 dataset, but doesn’t generalize on QALD-10 and BESTIARY which can be caused by memorization problem.
Author(s)
Kovriguina, Liubov
Fraunhofer-Institut für Intelligente Analyse- und Informationssysteme IAIS  
Teucher, Roman  
Fraunhofer-Institut für Intelligente Analyse- und Informationssysteme IAIS  
Radyush, Daniil
Saint Petersburg National Research University of Information Technologies, Mechanics and Optics University ITMO
Mouromtsev, Dmitry
Technische Informationsbibliothek (TIB)
Mainwork
SEMPDS 2023, Posters and Demo Track of the 19th International Conference on Semantic Systems. Proceedings  
Conference
International Conference on Semantic Systems 2023  
Link
Link
Language
English
Fraunhofer-Institut für Intelligente Analyse- und Informationssysteme IAIS  
Keyword(s)
  • Augmented Large Language Models

  • Knowledge Graphs Question Answering

  • Prompt Template Design

  • SPARQL query generation

  • Cookie settings
  • Imprint
  • Privacy policy
  • Api
  • Contact
© 2024