NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Querying Distributed RDF Graphs: The Effects of Partitioning

Anthony Potter, Boris Motik, Ian HorrocksSSWS@ISWC 2014

Abstract

Distributed RDF databases face a critical trade-off between query efficiency and storage overhead. Traditional hashing methods often lead to high network traffic, while graph partitioning with $n$-hop duplication incurs massive storage bloat. This paper introduces a novel partitioning scheme using vocabulary-based min-cut and a "wildcard" resource ($*$) to represent cross-partition links. This approach maximizes local query execution while maintaining a storage overhead of less than 4%, significantly outperforming existing duplication-heavy methods.

Introduction

As Resource Description Framework (RDF) datasets grow to web-scale, they outgrow the capacity of single-machine databases, necessitating distributed "shared-nothing" architectures. The core challenge in these systems is data partitioning: how to split a massive graph across multiple servers efficiently. Poor partitioning leads to excessive data shuffling during SPARQL query execution.

Existing solutions typically fall into two camps: hashing and graph partitioning with duplication. Hashing distributes triples based on subject IDs, which is effective for simple "star queries" but ignores graph structure, leading to heavy network traffic for complex joins. Conversely, graph partitioning with $n$-hop duplication keeps connected nodes together but relies on copying neighboring nodes across server boundaries. This reduces network traffic but causes massive storage bloat—sometimes increasing dataset size by over 400%. This paper addresses the challenge of achieving high locality without the crippling storage overhead of duplication.

Methods

The authors propose a two-part solution: a new partitioning scheme and a complementary query answering strategy.

Vocabulary-based Min-Cut Partitioning

Instead of partitioning triples directly, the system strips out schema, class, and literal triples. It uses a min-cut algorithm (METIS) to partition the remaining vocabulary nodes to minimize severed edges. Schema triples are replicated across all partitions to ensure fast local schema queries.

Subject Core Ownership and the Wildcard (*) Resource

To ensure "star queries" (queries joining on the same subject) can always be executed locally, the partition "owning" a subject node contains all triples where that node acts as the subject. To avoid $n$-hop duplication, the authors introduce a wildcard resource ($*$) to represent any node that lives on a different server. This effectively leaves a pointer at the edge of a partition, tracking where the graph connects to other servers without replicating the remote data.

Figure 1: Example graph G and its partition elements using the wildcard (*) resource to represent cross-partition links.

Query Answering

Queries are first executed completely locally on each server. If a match hits a wildcard, it becomes a "partial match." These partial matches are gathered on a single designated server and joined to form the final cross-partition answers. Mathematical checks are introduced to drop redundant partial matches early, saving computation.

Results

The approach was evaluated using two standard synthetic benchmarks, LUBM (267 million triples) and SP2B (200 million triples), partitioned across 20 simulated servers.

  • Negligible Storage Overhead: While the state-of-the-art SHAPE method required 84.2% storage overhead for LUBM and 38.6% for SP2B due to 2-hop duplication, the proposed method required only 3.6% and 0.6% overhead, respectively.
  • High Local Answer Rates: On LUBM, the proposed method answered 100% of the benchmark queries locally. On SP2B, it vastly outperformed standard hashing and beat SHAPE on several complex queries (e.g., yielding 73% local answers vs 9.7% for SHAPE on SP2B Q5).
  • Efficient Execution: For many queries, the system produced zero or very few partial matches, meaning distributed processing was virtually eliminated.

Conclusion

The wildcard resource effectively replaces massive data duplication, maintaining high query locality with negligible storage costs. While "long chain queries" remain a challenge due to potential partial match explosions, the system demonstrates that structural partitioning combined with minimal replication is a viable path for web-scale RDF management. Future work will focus on dynamic query planning to further optimize cross-partition joins.

Summary updated

BibTeX
@inproceedings{potter2014querying,
  author = {Anthony Potter and Boris Motik and Ian Horrocks},
  title = {{Querying Distributed RDF Graphs: The Effects of Partitioning}},
  booktitle = {SSWS@ISWC},
  year = {2014},
}
Figure