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

左位右:对于具有OPTIONAL模式的SPARQL连接连接(左外连接)

Left Bit Right: For SPARQL Join Queries with OPTIONAL Patterns (Left-outer-joins)

Medha Atre

摘要:

SPARQL基本图形模式(BGP)(也称为SQL内部连接)查询优化是一个很好的研究领域。然而,OPTIONAL模式查询的优化(a.k.a. SQL左外连接)由于左外连接的\textit{reordering}上的限制而带来了额外的挑战。这种查询的出现往往高达总查询的50%(例如,DBPedia查询日志)。在本文中,我们提出了\textit{Left Bit Right}(LBR),\textit{well-designed}嵌套BGP和OPTIONAL模式查询的技术。通过LBR,我们提出了一种新的方法来表示这样的查询使用的图的\textit{supernodes},这是用来积极修剪RDF三元组,与压缩索引的帮助下。我们还提出了新的优化策略-第一种,据我们所知-结合在一起的\textit{acyclicity}的查询,\textit{minimality},和\textit{nullification},\textit{best-match}运营商的特点。在本文中,我们专注于没有UNION或FILTER的OPTIONAL模式,但我们也展示了如何使用\textit{query rewrite}使用我们的技术处理UNION和FILTER。我们在8 GB内存的商用笔记本电脑上对多达10亿个三元组的RDF图进行了评估,结果表明,与Virtuoso和MonetDB等最先进的RDF列存储相比,LBR可以处理\textit{well-designed}低选择性复杂查询,速度快11倍,对于高选择性查询,LBR与它们不相上下。

英文摘要:

SPARQL basic graph pattern (BGP) (a.k.a. SQL inner-join) query optimization is a well researched area. However, optimization of OPTIONAL pattern queries (a.k.a. SQL left-outer-joins) poses additional challenges, due to the restrictions on the \textit{reordering} of left-outer-joins. The occurrence of such queries tends to be as high as 50% of the total queries (e.g., DBPedia query logs). In this paper, we present \textit{Left Bit Right} (LBR), a technique for \textit{well-designed} nested BGP and OPTIONAL pattern queries. Through LBR, we propose a novel method to represent such queries using a graph of \textit{supernodes}, which is used to aggressively prune the RDF triples, with the help of compressed indexes. We also propose novel optimization strategies -- first of a kind, to the best of our knowledge -- that combine together the characteristics of \textit{acyclicity} of queries, \textit{minimality}, and \textit{nullification}, \textit{best-match} operators. In this paper, we focus on OPTIONAL patterns without UNIONs or FILTERs, but we also show how UNIONs and FILTERs can be handled with our technique using a \textit{query rewrite}. Our evaluation on RDF graphs of up to and over one billion triples, on a commodity laptop with 8 GB memory, shows that LBR can process \textit{well-designed} low-selectivity complex queries up to 11 times faster compared to the state-of-the-art RDF column-stores as Virtuoso and MonetDB, and for highly selective queries, LBR is at par with them.

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

↑