LHD: Optimising Linked Data Query Processing Using Parallelisation

Xin Wang, Thanassis Tiropanis, Hugh DavisePrints 2013

Abstract

In the past few years as large volume of Linked Data has been published, and processing distributed SPARQL queries over the Linked Data cloud is becoming increasingly challenging. The high data traffic cost and response time significantly affect the performance of distributed SPARQL queries as the number of SPARQL end point and the volume of data at each endpoint increase. In this context, parallelisation is promising to fully exploit the potential of connections to SPARQL endpoints and thus improve the efficiency of querying Linked Data. We propose LHD, a distributed SPARQL engine that is built on a highly parallel infrastructure and able to minimise query response time, and we evaluate its performance using a BSBM based environment.

Introduction: The Distributed Query Bottleneck

The "Linked Data" vision aims to transform the Web into a global database. However, querying this distributed landscape is notoriously difficult. Executing SPARQL queries across multiple remote endpoints often encounters two major obstacles: network latency and massive data traffic.

Traditional distributed query engines typically focus on minimising total data transfer. While logical, this approach does not always yield the fastest results, as sequential data fetching leads to cumulative delays. Furthermore, many engines struggle with efficient source selection—identifying which endpoints contain the necessary data for specific query segments.

The LHD Approach: Prioritizing Response Time

LHD (Large-scale High-speed Distributed engine) shifts the focus from traffic minimisation to response time reduction through three core innovations:

  1. Selectivity-Based Cost Model: LHD estimates the response time of parallel query plans by calculating the "selectivity" of triple patterns using metadata from VoID (Vocabulary of Interlinked Datasets) files.
  2. Hybrid Optimization Algorithm: To handle complex queries efficiently, LHD uses a heuristic that schedules "partial-bound" patterns first, followed by dynamic programming to optimize remaining joins.
  3. Parallel Execution System: LHD employs a Communication Manager with dedicated worker threads for every data source. It treats results as asynchronous streams, using multi-stream hash joins to process data as it arrives.
Step-by-step parallel execution of a query plan in LHD.

By implementing pipelined execution, LHD can begin producing final results before remote endpoints have finished sending initial data, effectively hiding network latency through simultaneous data flows.

Evaluation and Key Insights

The researchers evaluated LHD using a distributed extension of the Berlin SPARQL Benchmark (BSBM), involving 40 million triples spread across 10 remote SPARQL endpoints. LHD was compared against state-of-the-art engines FedX and SPLENDID.

Performance and Stability

LHD achieved higher Queries Per Second (QPS) across most test cases and demonstrated superior stability. In complex scenarios (e.g., BSBM Query 5 and 10) where competitors often timed out or failed, LHD completed the queries successfully. Despite the massive parallelization, LHD’s total network traffic remained comparable to FedX, proving that its speed comes from smarter scheduling rather than just "brute-forcing" the network.

The Cost of Speed

A significant finding is the trade-off between speed and local resource consumption. LHD is "greedier" with local resources, utilizing more CPU and memory to maintain active threads and large hash tables to keep the data flowing.

Memory usage comparison highlighting the resource trade-off for performance.

Limitations and Future Work

While LHD offers significant performance gains, several areas for improvement remain:

  • Resource Consumption: Future versions need better throttling mechanisms to avoid "flooding" smaller SPARQL endpoints with concurrent requests.
  • Framework Bottlenecks: LHD is currently built on the Jena framework, which processes OPTIONAL patterns sequentially, limiting parallelization for certain complex queries.
  • Cross-BGP Optimization: The authors plan to explore optimizing across multiple Basic Graph Patterns simultaneously to find even more efficient global execution plans.
  • Metadata Dependency: The optimizer's accuracy depends on the quality of VoID files; missing or inaccurate metadata can lead to sub-optimal plans.

Conclusion

LHD demonstrates that parallelisation is a powerful tool for overcoming the bottlenecks of distributed Linked Data querying. By shifting the optimization goal from data volume to response time, LHD provides a more responsive experience for users of the Semantic Web.

Summary updated

BibTeX
@inproceedings{wang2013lhd,
  author = {Xin Wang and Thanassis Tiropanis and Hugh Davis},
  title = {{LHD: Optimising Linked Data Query Processing Using Parallelisation}},
  booktitle = {ePrints},
  year = {2013},
}
Figure