SPARQL 1.1和SPARQL-LD中基于启发式的联邦查询重排序
Heuristics-based Query Reordering for Federated Queries in SPARQL 1.1 and SPARQL-LD
摘要:
SPARQL 1.1的联邦查询扩展允许执行分布在不同SPARQL端点上的查询。SPARQL-LD是SPARQL 1.1的最新扩展,它可以直接查询任何包含RDF数据的HTTP Web源,如嵌入RDFa,JSON-LD或Microformats的网页,而无需声明命名图。这使得通过一个简洁的查询查询大量的数据源(包括SPARQL端点、在线资源,甚至是返回RDF数据的Web API)成为可能。然而,SPARQL 1.1和SPARQL-LD查询的非最佳公式化可能导致对远程资源的大量调用,这反过来又可能导致极高的查询执行时间。在本文中,我们解决这个问题,并提出了一套查询重新排序的方法,使使用的服务图模式的基础上,他们的限制性,而不需要收集和使用的统计数据从远程源重新排序。这样的查询优化方法是广泛适用的,因为它可以在现有的SPARQL 1.1和SPARQL-LD实现之上被利用。评估结果表明,查询重排序可以大大减少查询执行时间,而一种方法,考虑的数量和类型的未绑定变量和连接实现了最佳的查询计划在88%的情况下。
英文摘要:
The federated query extension of SPARQL 1.1 allows executing queries distributed over different SPARQL endpoints. SPARQL-LD is a recent extension of SPARQL 1.1 which enables to directly query any HTTP web source containing RDF data, like web pages embedded with RDFa, JSON-LD or Microformats, without requiring the declaration of named graphs. This makes possible to query a large number of data sources (including SPARQL endpoints, online resources, or even Web APIs returning RDF data) through a single one concise query. However, not optimal formulation of SPARQL 1.1 and SPARQL-LD queries can lead to a large number of calls to remote resources which in turn can lead to extremely high query execution times. In this paper, we address this problem and propose a set of query reordering methods which make use of heuristics to reorder a set of SERVICE graph patterns based on their restrictiveness, without requiring the gathering and use of statistics from the remote sources. Such a query optimization approach is widely applicable since it can be exploited on top of existing SPARQL 1.1 and SPARQL-LD implementations. Evaluation results show that query reordering can highly decrease the query-execution time, while a method that considers the number and type of unbound variables and joins achieves the optimal query plan in 88% of the cases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。