arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2104.14595cs.DBcs.HCcs.IR
收藏

通过SPARQL实现高效的SPARQL自动完成

Efficient SPARQL Autocompletion via SPARQL

Hannah Bast, Johannes Kalmbach, Theresa Klumpp, Florian Kramer, Niklas Schnelle

摘要:

我们将展示如何实现快速自动完成非常大的知识库上的SPARQL查询。在SPARQL查询主体中的任何位置,自动完成都建议匹配主语、谓语或宾语。这些建议是上下文敏感的,因为它们会导致非空结果,并根据它们与已键入的查询部分的相关性进行排名。可以通过前缀搜索所需主语、谓语或宾语的名称和别名来缩小建议范围。所有建议本身都是通过SPARQL查询获得的,我们称之为自动完成查询。对于现有的SPARQL引擎,这些查询在大型知识库上非常慢。我们提出了各种现有的SPARQL引擎的算法和工程改进,使这些自动完成查询有效地执行。我们提供了一个广泛的评估各种建议的方法在三个大的知识库,包括维基数据(6.9B三元组)。我们探讨的建议和自动完成查询的处理时间的相关性之间的权衡。我们比较我们的结果与两个广泛使用的SPARQL引擎,Virtuoso和Blazegraph。在Wikidata上,我们以低于秒的响应时间为超过90%的大型和多样化的数千个自动完成查询实现了完全敏感的建议。完全再现性材料、交互式评估Web应用程序和演示可在https://ad.informatik.uni-freiburg.de/publications上获得。

英文摘要:

We show how to achieve fast autocompletion for SPARQL queries on very large knowledge bases. At any position in the body of a SPARQL query, the autocompletion suggests matching subjects, predicates, or objects. The suggestions are context-sensitive in the sense that they lead to a non-empty result and are ranked by their relevance to the part of the query already typed. The suggestions can be narrowed down by prefix search on the names and aliases of the desired subject, predicate, or object. All suggestions are themselves obtained via SPARQL queries, which we call autocompletion queries. For existing SPARQL engines, these queries are impractically slow on large knowledge bases. We present various algorithmic and engineering improvements of an existing SPARQL engine such that these autocompletion queries are executed efficiently. We provide an extensive evaluation of a variety of suggestion methods on three large knowledge bases, including Wikidata (6.9B triples). We explore the trade-off between the relevance of the suggestions and the processing time of the autocompletion queries. We compare our results with two widely used SPARQL engines, Virtuoso and Blazegraph. On Wikidata, we achieve fully sensitive suggestions with sub-second response times for over 90% of a large and diverse set of thousands of autocompletion queries. Materials for full reproducibility, an interactive evaluation web app, and a demo are available on: https://ad.informatik.uni-freiburg.de/publications .

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

↑