arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.09354cs.CL
收藏

Spider4SSC与S2CLite:使用轻量级本体无关SPARQL转Cypher解析器的文本到多查询语言数据集

Spider4SSC & S2CLite: A text-to-multi-query-language dataset using lightweight ontology-agnostic SPARQL to Cypher parser

Graduate School of Engineering Science(工程科学研究生院);Yokohama National University(横滨国立大学);Faculty of Engineering(工学部)

Martin Vejvar, Yasutaka Fujimoto

AI总结:

本文提出Spider4SSC数据集与轻量级本体无关的规则基解析器S2CLite,可将SPARQL转Cypher且无需外部工具,实验显示其解析准确率显著优于现有工具,并生成统一文本到多查询语言数据集。

摘要:

我们提出Spider4SSC数据集和S2CLite解析工具。S2CLite是一种轻量级、本体无关的解析器,可将SPARQL查询转换为Cypher查询,支持原位和大规模SPARQL到Cypher的转换。与现有解决方案不同,S2CLite完全基于规则(受传统编程语言编译器启发),无需RDF图或外部工具即可运行。在BSBM42和Spider4SPARQL数据集上进行的实验表明,S2CLite显著减少了查询解析错误,在Spider4SPARQL上实现了77.8%的总解析准确率,而最先进的S2CTrans仅为44.2%。此外,在两个解析器都解析的查询交集子集上,S2CLite实现了96.6%的执行准确率,比S2CTrans高出7.3%。我们进一步使用S2CLite将Spider4SPARQL查询解析为Cypher,生成Spider4SSC数据集,这是一个文本到查询语言(SQL、SPARQL、Cypher)的统一数据集,包含4525个独特问题和3组等效的2581个匹配查询(SQL、SPARQL和Cypher)。我们在GitHub(github.com/vejvarm/S2CLite)上开源了S2CLite以供进一步开发,并提供了干净的Spider4SSC数据集供下载。

英文摘要:

We present Spider4SSC dataset and S2CLite parsing tool. S2CLite is a lightweight, ontology-agnostic parser that translates SPARQL queries into Cypher queries, enabling both in-situ and large-scale SPARQL to Cypher translation. Unlike existing solutions, S2CLite is purely rule-based (inspired by traditional programming language compilers) and operates without requiring an RDF graph or external tools. Experiments conducted on the BSBM42 and Spider4SPARQL datasets show that S2CLite significantly reduces query parsing errors, achieving a total parsing accuracy of 77.8% on Spider4SPARQL compared to 44.2% by the state-of-the-art S2CTrans. Furthermore, S2CLite achieved a 96.6\% execution accuracy on the intersecting subset of queries parsed by both parsers, outperforming S2CTrans by 7.3%. We further use S2CLite to parse Spider4SPARQL queries to Cypher and generate Spider4SSC, a unified Text-to-Query language (SQL, SPARQL, Cypher) dataset with 4525 unique questions and 3 equivalent sets of 2581 matching queries (SQL, SPARQL and Cypher). We open-source S2CLite for further development on GitHub (github.com/vejvarm/S2CLite) and provide the clean Spider4SSC dataset for download.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑