Abstract
Distributed SPARQL query evaluation often suffers from "intermediate result explosion," where servers generate massive amounts of partial matches that cannot be joined globally, leading to excessive network and computational overhead. This paper introduces an optimized "partial evaluation and assembly" framework that utilizes a novel data structure called the Local Partial Match Equivalence Class (LEC). By compressing partial results into LEC features, the system significantly reduces communication costs. Our implementation, gStoreD, demonstrates orders-of-magnitude speedups on complex queries across massive real-world and synthetic datasets.
Introduction and Problem Statement
The Resource Description Framework (RDF) represents data as a graph of triples (subject-predicate-object). As these datasets scale into the billions, they are increasingly distributed across multiple servers. Querying these distributed graphs using SPARQL is a significant challenge.
A standard approach is "partial evaluation," where each server identifies partial matches within its local fragment. However, without global knowledge, servers often produce millions of "dangling" partial matches that fail to join with data on other sites. This leads to a bottleneck in the assembly phase.
The goal is to prune these irrelevant results early and assemble the remaining ones efficiently, regardless of how the data is partitioned.
Methodology: The LEC Framework
The core innovation of this work is the Local Partial Match Equivalence Class (LEC). Instead of transmitting every individual partial match to a coordinator, the system groups matches that are structurally identical relative to the distributed join.
1. LEC Features
An LEC groups matches that share the same "crossing edges"—links that connect nodes in one fragment to nodes in another. This is illustrated in the partitioned graph below:
By representing these groups as compact bitstrings, the system avoids redundant processing of structurally similar data.
2. LEC-Based Pruning and Communication
Before a full join, the coordinator assembles only the high-level LEC features to construct a "join graph." If an LEC cannot contribute to a complete match, all associated individual partial matches are discarded. Additionally, the system uses Variable Candidate Communication, where sites exchange bit vectors representing potential candidates for query variables to further narrow the local search space.
The authors prove that this method is partition-bounded, meaning communication costs scale with the query complexity and the number of crossing edges, rather than the total graph size.
Experimental Evaluation
The researchers evaluated gStoreD using three major benchmarks:
- LUBM: Synthetic data (100M to 1B triples) for scalability testing.
- YAGO2: Real-world data from Wikipedia (284M triples).
- BTC (Billion Triples Challenge): Heterogeneous real-world data (1B triples).
Key Results
- Performance: LEC-based optimizations provided orders-of-magnitude speedups over baseline partial evaluation. In BTC queries, pruning reduced assembly time from seconds to milliseconds.
- Scalability: Query response times grew proportionally with data size, validating the partition-bounded claim.
- Competitive Analysis: gStoreD outperformed state-of-the-art systems like S2X and S2RDF on selective queries and handled complex, multi-hop query shapes more efficiently than replication-heavy systems like DREAM.
Conclusion
By leveraging structural redundancy through LEC features, gStoreD addresses the fundamental bottleneck of distributed SPARQL evaluation. The framework is partitioning-tolerant and significantly reduces the intermediate result explosion, making it a robust solution for large-scale, distributed RDF data management.
Summary updated