[Paper Review] PRoST: Distributed Execution of SPARQL Queries Using Mixed Partitioning Strategies
PRoST is a distributed RDF store built on Apache Spark that combines Vertical Partitioning and Property Table strategies to optimize SPARQL query performance. It achieves superior query runtime across diverse query types without extensive precomputing, outperforming state-of-the-art systems like SPARQLGX and Rya, and matching S2RDF’s performance while enabling faster data loading.
The rapidly growing size of RDF graphs in recent years necessitates distributed storage and parallel processing strategies. To obtain efficient query processing using computer clusters a wide variety of different approaches have been proposed. Related to the approach presented in the current paper are systems built on top of Hadoop HDFS, for example using Apache Accumulo or using Apache Spark. We present a new RDF store called PRoST (Partitioned RDF on Spark Tables) based on Apache Spark. PRoST introduces an innovative strategy that combines the Vertical Partitioning approach with the Property Table, two preexisting models for storing RDF datasets. We demonstrate that our proposal outperforms state-of-the-art systems w.r.t. the runtime for a wide range of query types and without any extensive precomputing phase.
Motivation & Objective
- To address the challenge of efficiently querying large-scale RDF graphs in distributed environments.
- To design a storage model that balances fast loading and high query performance across diverse SPARQL query types.
- To eliminate reliance on time-consuming precomputations while maintaining or improving query efficiency.
- To evaluate the performance of a novel hybrid data model against existing Hadoop-based RDF systems.
- To provide a practical, scalable solution suitable for real-world applications with unknown or variable data and query workloads.
Proposed method
- The system uses a hybrid storage model that integrates Vertical Partitioning (VP) and Property Tables, storing RDF triples by subject, predicate, and object in separate, partitioned relations.
- It leverages Apache Spark SQL to translate SPARQL queries into optimized execution plans using Catalyst optimizer and physical execution plans.
- The Property Table structure enables efficient equi-joins on predicates by grouping triples with the same predicate, reducing shuffle overhead.
- The system avoids precomputing semi-joins or materializing intermediate results, minimizing loading time and storage overhead.
- Query execution is optimized through predicate pushdown, predicate-based pruning, and efficient join order selection using statistics.
- The implementation is built on Spark’s in-memory processing model, exploiting main-memory computation for faster execution compared to disk-based MapReduce.
Experimental results
Research questions
- RQ1Can combining Vertical Partitioning and Property Tables improve SPARQL query performance in a distributed Spark-based system?
- RQ2Does the proposed hybrid model maintain high performance across diverse SPARQL query types without relying on precomputation?
- RQ3How does PRoST compare in query runtime and loading time to existing systems like S2RDF, Rya, and SPARQLGX?
- RQ4To what extent does the Property Table component enhance performance for complex, star, and snowflake queries?
- RQ5Can the system achieve consistent performance across datasets with varying numbers of predicates and query patterns?
Key findings
- PRoST outperforms SPARQLGX by approximately one order of magnitude across all query types, confirming the benefit of the hybrid data model.
- For Complex (C) queries, PRoST achieved 9,364ms average query time, compared to 3,392ms for S2RDF, indicating strong performance despite not using precomputed semi-joins.
- PRoST significantly outperformed Rya, which had an average query time of 2,195,322ms, due to Rya’s inefficiency in handling complex joins.
- For Snowflake (F) queries, PRoST achieved 5,923ms on average, compared to 1,564ms for S2RDF, showing that S2RDF’s precomputation gives it an edge in specific cases.
- The introduction of the Property Table improved performance across all query types, especially for Star (S) and Complex (C) queries, where shared predicates enabled efficient join processing.
- PRoST demonstrated consistent performance across all query types and was not dependent on dataset characteristics such as the number of predicates, unlike systems relying on precomputation.
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.