Skip to main content
QUICK REVIEW

[Paper Review] Query Workload-based RDF Graph Fragmentation and Allocation

Peng Peng, Lei Zou|arXiv (Cornell University)|Aug 31, 2015
Graph Theory and AlgorithmsComputer Science32 references8 citations
TL;DR

This paper proposes a query workload-driven RDF graph fragmentation and allocation method that mines frequent subgraph patterns from SPARQL query workloads to guide vertical and horizontal fragmentation, minimizing cross-fragment communication. By aligning fragments with common query patterns, 97% of real-world queries avoid inter-fragment communication, significantly improving query performance in distributed RDF systems.

ABSTRACT

As the volume of the RDF data becomes increasingly large, it is essential for us to design a distributed database system to manage it. For distributed RDF data design, it is quite common to partition the RDF data into some parts, called fragments, which are then distributed. Thus, the distribution design consists of two steps: fragmentation and allocation. In this paper, we propose a method to explore the intrinsic similarities among the structures of queries in a workload for fragmentation and allocation, which aims to reduce the number of crossing matches and the communication cost during SPARQL query processing. Specifically, we mine and select some frequent access patterns to reflect the characteristics of the workload. Here, although we prove that selecting the optimal set of frequent access patterns is NP-hard, we propose a heuristic algorithm which guarantees both the data integrity and the approximation ratio. Based on the selected frequent access patterns, we propose two fragmentation strategies, vertical and horizontal fragmentation strategies, to divide RDF graphs while meeting different kinds of query processing objectives. Vertical fragmentation is for better throughput and horizontal fragmentation is for better performance. After fragmentation, we discuss how to allocate these fragments to various sites. Finally, we discuss how to process a query based on the results of fragmentation and allocation. Extensive experiments confirm the superior performance of our proposed solutions.

Motivation & Objective

  • To reduce communication cost in distributed RDF query processing by leveraging query workload patterns.
  • To design fragmentation strategies—vertical and horizontal—that align with frequent access patterns in SPARQL workloads.
  • To balance performance gain against storage overhead through intelligent frequent access pattern selection.
  • To develop an allocation strategy that optimizes fragment distribution across sites for efficient query execution.
  • To enable efficient query processing by exploiting the locality of subgraph matches based on fragmentation and allocation results.

Proposed method

  • Mine frequent subgraph patterns from a real SPARQL query workload (e.g., DBpedia) using a minimum support threshold.
  • Define two fragmentation strategies: vertical fragmentation for throughput and horizontal fragmentation for performance, both guided by mined frequent access patterns.
  • Formulate the frequent access pattern selection problem as an NP-hard optimization task, with a heuristic algorithm ensuring data integrity and approximation ratio.
  • Propose a fragment allocation algorithm that distributes fragments across sites based on access frequency and communication cost minimization.
  • Design a query processing engine that leverages the fragmentation and allocation structure to execute SPARQL queries with minimal cross-fragment communication.
  • Use graph coarsening and pattern matching to project fragment boundaries back to the original RDF graph for consistency.

Experimental results

Research questions

  • RQ1How can frequent subgraph patterns in a SPARQL query workload be effectively mined to guide RDF graph fragmentation?
  • RQ2What fragmentation strategies (vertical vs. horizontal) best balance performance and communication cost in distributed RDF systems?
  • RQ3How can frequent access patterns be selected to minimize data replication while maximizing query locality?
  • RQ4What allocation strategy optimally distributes fragments across sites to reduce communication during query evaluation?
  • RQ5To what extent can workload-driven fragmentation eliminate cross-fragment communication in real-world SPARQL workloads?

Key findings

  • 97% of SPARQL queries in the DBpedia workload are isomorphic to one of 163 frequent subgraph patterns, indicating strong query locality.
  • Using these frequent patterns as fragmentation units eliminates communication cost for 97% of queries, as their matches reside within a single fragment.
  • The proposed heuristic pattern selection algorithm achieves high approximation ratio while preserving data integrity and minimizing space overhead.
  • Extensive experiments confirm that the workload-driven fragmentation significantly reduces communication cost and improves query processing performance over traditional graph coarsening methods.
  • The vertical and horizontal fragmentation strategies outperform baseline methods in throughput and response time, respectively, under real-world workloads.
  • The allocation strategy effectively reduces inter-site communication by placing frequently accessed fragments on the same or nearby sites.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.