[Paper Review] On the Evaluation of RDF Distribution Algorithms Implemented over Apache Spark
This paper evaluates five RDF distribution algorithms—two hash-based, two graph-partitioning, and one hybrid—implemented on Apache Spark to assess data preparation cost, load balancing, replication, and query performance. Results show that hash-based methods offer low preparation overhead and strong scalability, while the hybrid approach achieves near-optimal query performance with minimal replication cost, making it ideal for data warehouses with known workloads.
Querying very large RDF data sets in an efficient manner requires a sophisticated distribution strategy. Several innovative solutions have recently been proposed for optimizing data distribution with predefined query workloads. This paper presents an in-depth analysis and experimental comparison of five representative and complementary distribution approaches. For achieving fair experimental results, we are using Apache Spark as a common parallel computing framework by rewriting the concerned algorithms using the Spark API. Spark provides guarantees in terms of fault tolerance, high availability and scalability which are essential in such systems. Our different implementations aim to highlight the fundamental implementation-independent characteristics of each approach in terms of data preparation, load balancing, data replication and to some extent to query answering cost and performance. The presented measures are obtained by testing each system on one synthetic and one real-world data set over query workloads with differing characteristics and different partitioning constraints.
Motivation & Objective
- To evaluate and compare leading RDF distribution strategies in a unified, scalable framework.
- To assess the impact of data preparation cost, load balancing, replication, and query performance across different distribution techniques.
- To demonstrate Apache Spark's viability as a high-performance platform for distributed RDF processing.
- To identify optimal strategies for large-scale RDF datasets with varying query workloads.
- To evaluate the trade-offs between pure hashing, graph partitioning, and hybrid approaches in real-world and synthetic workloads.
Proposed method
- Reimplemented five RDF distribution algorithms—two hash-based, two graph-partitioning (nHopDB, WARP), and one hybrid—using Apache Spark's API.
- Used Spark’s in-memory processing to improve performance over Hadoop MapReduce, leveraging its fault tolerance and scalability.
- Evaluated systems on one synthetic and one real-world RDF dataset with six diverse SPARQL queries across varying partitioning constraints.
- Measured data preparation time, load balancing, replication rate, and query execution time to compare system behavior.
- Applied K-means clustering for RSG (rooted subgraph) grouping in the graph-partitioning approach, with limitations in high-dimensional vector processing.
- Used Spark’s native support for query rewriting and execution in Scala to streamline end-to-end processing pipelines.
Experimental results
Research questions
- RQ1How do different RDF distribution strategies perform in terms of data preparation cost, load balancing, and replication when implemented on Apache Spark?
- RQ2What is the trade-off between query performance and system overhead in hash-based versus graph-partitioning approaches?
- RQ3Can a hybrid distribution strategy combining hashing and n-hop replication achieve better performance with minimal preparation cost?
- RQ4How does Apache Spark compare to Hadoop MapReduce in handling large-scale RDF data distribution and query processing?
- RQ5To what extent do query characteristics (e.g., star patterns, property chains) influence the performance of distributed RDF systems?
Key findings
- Hash-based distribution achieved the lowest data preparation cost, requiring only triple loading without complex preprocessing.
- The hybrid approach combined the benefits of n-hop replication with minimal preparation overhead, reducing the need for expensive graph partitioning.
- Replication overhead in the hybrid solution was marginal compared to pure WARP, yet it significantly improved query performance for complex patterns.
- Apache Spark demonstrated strong scalability, efficiently handling billions of triples by adding cluster nodes, outperforming Hadoop MapReduce by up to 100 times in some operations.
- Graph-partitioning approaches like nHopDB and WARP faced scalability limitations due to high-dimensional vector processing and reliance on Metis, which failed beyond half a billion triples.
- Query performance varied significantly with pattern type: O-O joins incurred high inter-partition communication, while S-O and S-S joins were more efficient under hash-based schemes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.