Efficient Processing of Large RDF Streams Using Memory Management Algorithms

Vaibhav Khadilkar, Murat Kantarcioglu, Latifur Khan, Bhavani Thuraisingham

Abstract

This paper presents a "unified model" for processing large RDF streams by dynamically transitioning data between in-memory storage, Lucene-based disk indexing, and relational databases. By employing cache-management algorithms and social network centrality measures, the system optimizes performance for both standard SPARQL queries and complex inference tasks, addressing the scalability limitations of purely in-memory or disk-based approaches.

Introduction

Processing RDF streams—continuous flows of graph-based data—presents a "Goldilocks" problem. Pure in-memory storage lacks scalability for large streams, while disk-based relational databases (RDB) often suffer from poor query performance for recent, smaller data subsets. This research addresses the lack of a middle ground by proposing a system that dynamically adapts to stream size, providing the speed of memory for small datasets and the stability of disk storage for massive ones, while supporting complex SPARQL queries and automated reasoning.

Methods

The proposed tool, integrated with the Jena framework, utilizes a three-tiered architecture to manage data flow:

  1. In-Memory Tier: Incoming triples are initially stored in Jena’s in-memory triple store for immediate access.
  2. Lucene Tier: Upon reaching a memory threshold (writeThreshold), memory management algorithms select "less important" nodes to migrate to a Lucene-based disk index.
  3. RDB Tier: If data volume exceeds a second threshold (dbThreshold), the system migrates data to a Jena RDB graph for long-term storage and stability.
Architecture of the unified RDF stream processing model.

To determine which data to move from RAM to Lucene, the authors evaluated standard algorithms like LRU (Least Recently Used) and FIFO (First-In-First-Out) alongside Social Network Centrality measures, specifically Degree Centrality (DC) and Clustering Coefficient (CC).

Evaluation

The system was evaluated using two industry-standard benchmarks: Sp2Bench for non-inference SPARQL query performance (tested with ~50,000 triples) and LUBM (Lehigh University Benchmark) for inference performance (tested with ~103,000 triples).

Key Insights and Ideas

Experimental results revealed that algorithm effectiveness is highly context-dependent. For standard queries (Sp2Bench), Degree Centrality performed best by retaining highly connected nodes in RAM. Conversely, for inference tasks (LUBM), MRU (Most Recently Used)—an algorithm usually considered inefficient—outperformed others. This is attributed to the Pellet reasoner's frequent need to access older nodes to complete logic chains.

Comparison of query performance across different memory management algorithms for Sp2Bench and LUBM.

The system also employs hybrid querying, rewriting SPARQL requests on the fly to pull results from both RAM and Lucene indices simultaneously. Furthermore, Schema data (TBox) is prioritized for in-memory storage to ensure the reasoning engine maintains constant access to graph rules.

Key Results

The unified model demonstrated "graceful degradation" of performance, successfully scaling from memory to RDB tiers as data volume increased. Using the "C-S-Eff" persistence strategy (incremental index creation), query times for Sp2Bench remained comparable to pure in-memory storage. For LUBM, the "C-S" strategy proved most effective for inference due to the reasoner's reliance on large predicate indices.

Limitations and Future Work

While the model proves the viability of algorithmic data migration, current testing is limited to relatively small datasets (~100k triples). Future work will focus on scaling to millions of triples, implementing self-tuning thresholds based on real-time hardware performance, and fully integrating the RDB tier for reasoning tasks.

Summary updated

BibTeX
@inproceedings{khadilkar2010efficient,
  author = {Vaibhav Khadilkar and Murat Kantarcioglu and Latifur Khan and Bhavani Thuraisingham},
  title = {{Efficient Processing of Large RDF Streams Using Memory Management Algorithms}},
  booktitle = {ISWC (Posters \& Demos)},
  year = {2010},
}
Figure