A partition-based Summary-Graph-Driven Method for Efficient RDF Query Processing

Lei Gai, Wei Chen, Tengjiao Wang · DOI

Abstract

RDF query optimization is a challenging problem. Although considerable factors and their impacts on query efficiency have been investigated, this problem still needs further investigation. We identify that decomposing query into a series of light-weight operations is also effective in boosting query processing. Considering the linked nature of RDF data, the correlations among operations should be carefully handled. In this paper, we present SGDQ, a novel framework that features a partition-based Summary Graph Driven Query for efficient query processing. Basically, SGDQ partitions data and models partitions as a summary graph. A query is decomposed into subqueries that can be answered without inter-partition processing. The final results are derived by perform summary graph matching and join the results generated by all matched subqueries. In essence, SGDQ combines the merits of graph match processing and relational join-based query implementation. It intentionally avoids maintain huge intermediate results by organizing sub-query processing in a summary graph driven fashion. Our extensive evaluations show that SGDQ is an effective framework for efficient RDF query processing. Its query performance consistently outperforms the representative state-of-the-art systems.

Introduction

Querying Resource Description Framework (RDF) data—the backbone of the Semantic Web—is notoriously difficult to scale. Currently, researchers rely on two main strategies: relational approaches, which treat RDF triples like database rows but suffer from memory-intensive joins, and graph-based approaches, which treat queries as subgraph matching problems but face exponential time complexity.

The authors of this paper propose SGDQ (Summary Graph Driven Query), a middle-ground framework. By partitioning data and using a summarized version of the graph to "drive" the query, SGDQ combines the efficiency of relational joins with the localized processing of graph matching.

The SGDQ Framework

The SGDQ framework operates in two main phases: offline data organization and online query processing.

1. Offline Data Organization

The system first classifies RDF triples into two categories to optimize storage and access:

  • R-Triples (Resource-Linkage): Describe relationships between entities.
  • A-Triples (Attributes): Describe properties like names or literal values.
RDF data represented as triples and a graph, distinguishing between resources and attributes.

A-Triples are managed using compressed bitmap indexes, allowing subject-subject joins to be processed as fast bitwise operations. R-Triples are partitioned using the METIS algorithm. To minimize inter-partition complexity, an Undirected One Hop Cover (1-UHC) strategy replicates boundary triples so more subqueries can be answered locally. Finally, a compact Summary Graph (SG) is built where nodes represent partitions and edges represent their connections.

2. Online Query Processing

When a query arrives, it is decomposed into a query graph. Instead of executing the whole query globally, SGDQ performs Summary Graph Matching.

A SPARQL query and its corresponding query graph representation used for matching.

This high-level "map" directs the system to perform small, efficient joins only within relevant partitions. This targeted approach avoids the creation of massive intermediate result sets that typically overwhelm system memory.

Evaluation and Results

SGDQ was evaluated against state-of-the-art systems like RDF-3X, TripleBit, and Virtuoso 7 using large-scale benchmarks (LUBM and SNIB) containing up to 4.8 billion triples.

  • Performance Gains: On complex queries, SGDQ outperformed RDF-3X by 4.1x to 168x.
  • Cold Cache Efficiency: The summary-graph-driven approach minimizes unnecessary disk reads, making it highly effective when data is not pre-loaded in memory.
  • Scalability: As dataset sizes grew, SGDQ's performance remained stable, while competitors often saw exponential increases in query time or failed to complete tasks.

Conclusion

SGDQ demonstrates that a partition-based, summary-graph-driven approach can significantly boost RDF query efficiency. By avoiding huge intermediate results and focusing processing on relevant data partitions, it provides a scalable solution for the growing demands of Semantic Web data.

Summary updated

BibTeX
@misc{gai2015partition,
  author = {Lei Gai and Wei Chen and Tengjiao Wang},
  title = {{A partition-based Summary-Graph-Driven Method for Efficient RDF Query Processing}},
  year = {2015},
  eprint = {1510.07749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1510.07749},
}
Figure