自动化 DBpedia 和 Wikidata 之间的 SPARQL 查询翻译
Automating SPARQL Query Translations between DBpedia and Wikidata
AI总结:
本文研究大型语言模型在 DBpedia、Wikidata 等知识图谱间自动翻译 SPARQL 查询的能力,通过构建两个基准测试多种模型与提示策略,发现性能因模型和方向而异,填补了 KG 互操作性研究空白。
摘要:
本文研究最先进的大型语言模型(LLMs)能否在流行的知识图谱(KG)模式之间自动翻译 SPARQL。我们重点关注 DBpedia 和 Wikidata KG 之间的翻译,随后是 DBLP 和 OpenAlex KG。本研究通过严格评估 LLM 在 SPARQL 到 SPARQL 翻译上的性能,填补了 KG 互操作性研究中的显著空白。我们组装了两个基准:第一个从 QALD-9-Plus 对齐了 100 个 DBpedia-Wikidata 查询;第二个包含 100 个对齐到 OpenAlex 的 DBLP 查询,以测试在百科全书式 KG 之外的可泛化性。根据规模和架构选择了三个开源 LLM:Llama-3-8B、DeepSeek-R1-Distill-Llama-70B 和 Mistral-Large-Instruct-2407,并使用零样本、少样本及两种思维链变体进行了测试。输出与黄金答案进行了比较,并对产生的错误进行了分类。我们发现不同模型和提示策略的性能差异显著,且 Wikidata 到 DBpedia 的翻译效果远好于 DBpedia 到 Wikidata 的翻译。
英文摘要:
This paper investigates whether state-of-the-art Large Language Models (LLMs) can automatically translate SPARQL between popular Knowledge Graph (KG) schemas. We focus on translations between the DBpedia and Wikidata KG, and later on DBLP and OpenAlex KG. This study addresses a notable gap in KG interoperability research by rigorously evaluating LLM performance on SPARQL-to-SPARQL translation. Two benchmarks are assembled, where the first align 100 DBpedia-Wikidata queries from QALD-9-Plus; the second contains 100 DBLP queries aligned to OpenAlex, testing generalizability beyond encyclopaedic KGs. Three open LLMs: Llama-3-8B, DeepSeek-R1-Distill-Llama-70B, and Mistral-Large-Instruct-2407 are selected based on their sizes and architectures and tested with zero-shot, few-shot, and two chain-of-thought variants. Outputs were compared with gold answers, and resulting errors were categorized. We find that the performance varies markedly across models and prompting strategies, and that translations for Wikidata to DBpedia work far better than translations for DBpedia to Wikidata.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。