Decomposing federated queries in presence of replicated fragments

Gabriela Montoya, Hala Skaf-Molli, Pascal Molli, Maria-Esther VidalJ. Web Semant 2017

TL;DR

This paper introduces LILAC, a novel framework for federated query processing that explicitly leverages data replication. By understanding where data is replicated, LILAC significantly reduces the amount of data transferred and speeds up query execution in federated systems, outperforming existing approaches.

What Problem Does This Paper Address?

The vast amount of data available through SPARQL endpoints on the Web (Linked Data) presents challenges for efficient querying. Existing federated query engines often struggle with data availability and performance, especially when data is replicated across multiple sources. While replication can improve availability, current engines aren't designed to exploit this redundancy. This leads to inefficient query processing, where engines might fetch the same data multiple times or fail to optimize queries based on where replicated data resides. The core problem is how to intelligently decompose federated queries to take advantage of replicated data fragments, minimizing data transfer and execution time without sacrificing answer completeness.

Methods

The paper proposes LILAC (Federated Query Decomposition against Replicated Data Sources), a replication-aware framework. Key to LILAC is its ability to understand and utilize fragment descriptions – metadata that describes what RDF triples a fragment contains and where its authoritative source is. LILAC formalizes the Query Decomposition Problem with Fragment Replication (QDP-FR), aiming to find sub-queries that minimize transferred tuples.

LILAC's approach involves:

  • Interleaving Source Selection and Query Decomposition: Unlike previous methods that treated these separately, LILAC integrates them.
  • Replication-Aware Fragment Selection: It identifies non-redundant fragments and their potential endpoints.
  • Optimized Sub-query Generation: LILAC aims to create the largest possible, Cartesian-product-free sub-queries that can be executed at specific endpoints, leveraging replicated data.
  • Extending Existing Engines: LILAC's strategies were integrated into state-of-the-art engines FedX and ANAPSID to demonstrate its general applicability.

Datasets

The authors evaluated their approach using a combination of real-world and synthetic datasets:

  • Real-world datasets: Diseasome, Semantic Web Dog Food (SWDF), DBpedia Geo-coordinates (Geo), and LinkedMDB.
  • Synthetic datasets: Two instances from the Waterloo SPARQL Diversity Test Suite (WatDiv1 and WatDiv100).

These datasets vary in size, number of predicates, and structuredness (coherence), providing a diverse testing ground.

Key Insights and Ideas

  • Replication is a Feature, Not a Bug: Instead of treating replicated data as a potential source of redundancy, LILAC views it as an opportunity for optimization.
  • Metadata is King: The effectiveness of LILAC hinges on its ability to leverage detailed metadata about replicated fragments. This allows for precise identification of data sources and intelligent query decomposition.
  • Interleaving is Crucial: Separating source selection from query decomposition is suboptimal when dealing with replication. LILAC's integrated approach allows for more informed decisions that lead to better query plans.
  • Beyond Simple Duplication: LILAC goes beyond just identifying duplicate data; it understands which fragments are replicated and where, enabling more sophisticated optimizations.

Key Results

Experimental results demonstrated significant improvements:

  • Reduced Transferred Tuples: LILAC consistently reduced the number of transferred tuples compared to baseline engines (FedX, ANAPSID) and even other enhanced versions (DAW, FEDRA). For example, in many federations, LILAC+ANAPSID transferred significantly fewer tuples than ANAPSID.
  • Improved Execution Time: This reduction in data transfer directly translated to faster query execution times, especially for "harder" queries that involve substantial data movement.
  • Fewer Timeouts/Errors: LILAC-enhanced engines experienced fewer query timeouts and execution errors, likely due to the reduced data load.
  • Maintained Completeness: LILAC generally maintained answer completeness, a critical aspect of federated query processing.

Limitations and Future Work

  • Assumption of Perfect Synchronization: The current LILAC framework assumes that replicated fragments are perfectly synchronized. The authors acknowledge that in real-world scenarios, divergence (data inconsistencies) can occur. They suggest future work to incorporate divergence metrics for source selection.
  • Scalability of Complexity: While LILAC offers significant benefits, its theoretical time complexity is O(n³m²k), where n is the number of triple patterns, m is the number of fragments, and k is the number of endpoints. This could be a bottleneck in very large federations.
  • Endpoint Capabilities: The approach relies on endpoints supporting SPARQL.
  • Future Work: The authors suggest extending LILAC to handle divergent fragments, exploring user preferences in source selection, and leveraging multiple endpoints for parallel sub-query evaluation.

Summary updated

BibTeX
@article{montoya2017decomposing,
  author = {Gabriela Montoya and Hala Skaf-Molli and Pascal Molli and Maria-Esther Vidal},
  title = {{Decomposing federated queries in presence of replicated fragments}},
  journal = {J. Web Semant.},
  year = {2017},
  url = {https://openreview.net/forum?id=0qtZeVFN5Bi},
}
Figure