Introduction
As the Resource Description Framework (RDF) becomes the standard for the Semantic Web, datasets have ballooned into the billions and even trillions of triples. Managing this data requires distributed databases, but distribution introduces a massive bottleneck: communication cost.
When splitting a graph across multiple machines, a single SPARQL query often requires "joins" between data residing on different nodes. Traditional graph partitioning methods (like min-cut) try to minimize the number of edges severed between machines. However, these "global" goals often fail to align with how queries actually behave. SPARQL queries exhibit strong locality—they usually look for specific local subgraphs. If the system doesn't understand the query workload, it can't place related data together, resulting in sluggish performance.
Proposed Methodology
The authors propose a system that moves away from generic graph partitioning toward a "workload-aware" model. The architecture is divided into offline fragmentation and online execution phases, focusing on minimizing inter-node communication by understanding query patterns.
The approach consists of four main stages:
1. Frequent Access Pattern Mining
The system analyzes query logs to identify "Frequent Access Patterns" (FAPs). In the DBpedia workload, the authors found that 97% of queries were isomorphic to just 163 frequent subgraph patterns. This discovery justifies a workload-centric design, as real-world query workloads are highly repetitive.
2. Pattern Selection
Since materializing every pattern would consume too much storage, selection is treated as a constrained optimization problem. The authors prove this is NP-hard and provide a greedy heuristic algorithm based on submodular optimization to select the most beneficial patterns within a storage budget.
3. Fragmentation Strategies
The system employs two distinct strategies to handle the selected patterns:
- Vertical Fragmentation (VF): Groups all matches of a specific pattern into the same fragment. This is optimized for throughput, as it allows different queries to be processed on different sites simultaneously.
- Horizontal Fragmentation (HF): Distributes the matches of a single pattern across multiple sites. This is optimized for latency, using parallelism to speed up a single complex query.
4. Allocation and the Hot/Cold Graph
A "Fragment Affinity Metric" determines which fragments are often accessed together. A clustering algorithm then assigns these "high-affinity" fragments to the same physical site to minimize cross-site joins. The system also divides the RDF repository into a "hot graph" (frequently accessed properties) and a "cold graph" (infrequent properties), focusing optimization energy where it matters most while maintaining data integrity for rare queries.
Experimental Evaluation
The researchers evaluated their system using DBpedia (164 million triples) and WatDiv (up to 250 million triples). The proposed workload-based strategies consistently outperformed state-of-the-art distributed RDF systems like SHAPE and WARP.
- Response Time: On DBpedia, the proposed methods answered queries in roughly 0.6 to 0.8 seconds, compared to 1.8 seconds for WARP and 2.5 seconds for SHAPE.
- Throughput: The system handled approximately 46 queries per minute on DBpedia, nearly doubling the capacity of SHAPE (~24 queries/min).
- Scalability: Performance remained stable as the dataset size increased from 50M to 250M triples, proving the approach is viable for "Big Data" scenarios.
- Efficiency: Unlike some replication-heavy systems, these fragmentation strategies maintained a low redundancy ratio (between 1.04 and 1.42), saving significant disk space.
Conclusion and Future Work
This paper demonstrates that leveraging query repetition through structural minterm predicates and affinity-based allocation can significantly reduce inter-node communication. While the "cold graph" remains a minor bottleneck and workloads are currently processed offline, future research will focus on dynamic re-partitioning to handle evolving query patterns without taking the system offline.
Summary updated