Saved in:
Bibliographic Details
Main Authors: Taghzouti, Yousouf, Jiang, Tao, Juigné, Camille, Navet, Benjamin, Gandon, Fabien, Michel, Franck, Nothias, Louis-Felix
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.26971
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918474790469632
author Taghzouti, Yousouf
Jiang, Tao
Juigné, Camille
Navet, Benjamin
Gandon, Fabien
Michel, Franck
Nothias, Louis-Felix
author_facet Taghzouti, Yousouf
Jiang, Tao
Juigné, Camille
Navet, Benjamin
Gandon, Fabien
Michel, Franck
Nothias, Louis-Felix
contents The evaluation of Question Answering (QA) systems over Knowledge Graphs has historically suffered from fragmentation, inconsistency, and limited reproducibility. While significant progress has been made in semantic parsing and SPARQL query generation, evaluation methodologies remain diverse, ad hoc, and often incomparable across studies. Existing benchmarks typically focus on a small subset of metrics, such as query exact match or answer-level F1, neglecting syntactic validity, semantic faithfulness, execution correctness, results ranking quality, and computational efficiency. In this paper, we present t2s-metrics, an open-source, extensible, and unified evaluation library designed specifically for SPARQL query comparison and execution-based assessment. t2s-metrics provides a broad and extensible set of over 20 evaluation metrics, collected from the literature and practical evaluation needs, spanning lexical, syntactic, semantic, structural, execution-based and ranking-based dimensions. These include query-based metrics such as token-level Precision, Recall, and F1; BLEU, ROUGE, METEOR, and CodeBLEU variants; variable-normalized metrics (SP-BLEU, SP-F1); graph-and URI-based exact match metrics; as well as answer set-based metrics such as F1-QALD and Jaccard similarity; ranking metrics including MRR, NDCG, P@k, and Hit@k; and LLM-as-a-Judge metrics. Taking inspiration from the ir-metrics library for Information Retrieval, t2s-metrics provides a modular abstraction layer that decouples metric specification from implementation, enabling consistent, transparent, and reproducible evaluation of SPARQLbased QA systems. We argue that t2s-metrics constitutes a necessary step toward systematic, standardized evaluation in question answering over knowledge graphs and facilitates deeper diagnostic insights into system behavior beyond answer correctness.
format Preprint
id arxiv_https___arxiv_org_abs_2604_26971
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle T2S-Metrics: Unified Library for Evaluating SPARQL Queries Generated From Natural Language
Taghzouti, Yousouf
Jiang, Tao
Juigné, Camille
Navet, Benjamin
Gandon, Fabien
Michel, Franck
Nothias, Louis-Felix
Information Retrieval
The evaluation of Question Answering (QA) systems over Knowledge Graphs has historically suffered from fragmentation, inconsistency, and limited reproducibility. While significant progress has been made in semantic parsing and SPARQL query generation, evaluation methodologies remain diverse, ad hoc, and often incomparable across studies. Existing benchmarks typically focus on a small subset of metrics, such as query exact match or answer-level F1, neglecting syntactic validity, semantic faithfulness, execution correctness, results ranking quality, and computational efficiency. In this paper, we present t2s-metrics, an open-source, extensible, and unified evaluation library designed specifically for SPARQL query comparison and execution-based assessment. t2s-metrics provides a broad and extensible set of over 20 evaluation metrics, collected from the literature and practical evaluation needs, spanning lexical, syntactic, semantic, structural, execution-based and ranking-based dimensions. These include query-based metrics such as token-level Precision, Recall, and F1; BLEU, ROUGE, METEOR, and CodeBLEU variants; variable-normalized metrics (SP-BLEU, SP-F1); graph-and URI-based exact match metrics; as well as answer set-based metrics such as F1-QALD and Jaccard similarity; ranking metrics including MRR, NDCG, P@k, and Hit@k; and LLM-as-a-Judge metrics. Taking inspiration from the ir-metrics library for Information Retrieval, t2s-metrics provides a modular abstraction layer that decouples metric specification from implementation, enabling consistent, transparent, and reproducible evaluation of SPARQLbased QA systems. We argue that t2s-metrics constitutes a necessary step toward systematic, standardized evaluation in question answering over knowledge graphs and facilitates deeper diagnostic insights into system behavior beyond answer correctness.
title T2S-Metrics: Unified Library for Evaluating SPARQL Queries Generated From Natural Language
topic Information Retrieval
url https://arxiv.org/abs/2604.26971