Heuristics-based Query Reordering for Federated Queries in SPARQL 1.1 and SPARQL-LD

Thanos Yannakis, Pavlos Fafalios, Yannis Tzitzikas
10/23/2018
8 citations
cs.DB
federated

Official code: fafalios/sparql-ld (20 stars, Java, last commit 2023-07-03). 1 more implementation below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
fafalios/sparql-ldOfficial20Java–2023-07-03
TYannakis/SPARQL-LD-Query-OptimizerOfficial0Java–2018-05-02
fafalios/sparql-ldOfficial100%

SPARQL-LD: A SPARQL Extension for Fetching and Querying Linked Data

203JavaApr 17, 20153 years ago
01JavaFeb 11, 20188 years ago

Similar Papers

Cite this paper

@article{yannakis2018heuristicsbased,
  title  = {Heuristics-based Query Reordering for Federated Queries in SPARQL 1.1 and SPARQL-LD},
  author = {Thanos Yannakis and Pavlos Fafalios and Yannis Tzitzikas},
  year   = {2018},
  eprint = {1810.09780},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.09780}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1810.09780.svg)](https://codeofpaper.com/paper/1810.09780)

Discussion