Abstract
In this paper, we propose a plugin-based framework for RDF stream processing named PRSP. Within this framework, we can employ SPARQL query engines to process C-SPARQL queries with maintaining the high performance of those engines in a simple way. Taking advantage of PRSP, we can process large-scale RDF streams in a distributed context via distributed SPARQL engines. Besides, we can evaluate the performance and correctness of existing SPARQL query engines in handling RDF streams in a united way, which amends the evaluation of them ranging from static RDF (i.e., RDF graph) to dynamic RDF (i.e., RDF stream). Finally, within PRSP, we experimently evaluate the correctness and the performance on YABench. The experiments show that PRSP can still maintain the high performance of those engines in RDF stream processing although there are some slight differences among them.
Introduction
The Semantic Web relies heavily on the Resource Description Framework (RDF) for data representation. While mature and highly optimized engines exist for querying static RDF graphs using SPARQL, the emergence of the "Real-time Web" introduces RDF Streams—unbounded, time-varying sequences of data such as sensor feeds. Existing RDF Stream Processing (RSP) systems are often complex to implement. PRSP addresses this by providing a middleware framework that leverages existing, high-performance static engines to evaluate continuous queries on dynamic streams.
Methods
PRSP is an extension of SPARQL that functions as a middleware framework. Its architecture is built around three core modules that allow it to treat underlying query engines as "black boxes."
- Query Rewriting: This module decomposes a continuous query (C-SPARQL) into a standard SPARQL query and window parameters.
- Data Transformer: This module bridges the stream and the engine, using a window selector to capture snapshots and transform them into temporary RDF graphs.
- SPARQL API: A unified interface that allows different engines (e.g., Jena, RDF-3X, gStore, TriAD) to be plugged in based on performance requirements.
The framework's core logic is based on the principle that evaluating a continuous query over a stream is equivalent to evaluating a standard SPARQL query over a series of discrete graph windows.
Evaluation and Results
The framework was evaluated using the YABench benchmark and real-world water temperature monitoring data, with loads ranging from 100 to 500 sensors (up to approximately 42,000 triples).
Performance Insights
A key finding was the identification of the "Loading Bottleneck." For several engines, the Data Load Time (LT) represents a significant portion of the total processing time, sometimes rivaling or exceeding the Query Execution Time (ET). This highlights that ingestion speed is as critical as query speed in stream processing contexts.
As the load increases, distributed engines like gStoreD and TriAD demonstrate more stable response times compared to centralized engines, which struggle with the overhead of larger data windows.
Accuracy and Recall
PRSP maintained high precision (90-100%) across all tested engines. However, a trade-off was observed in recall as load increased. For example, gStoreD’s recall decreased from 72% at 100 sensors to 63% at 500 sensors, suggesting that high data volumes can lead to missed data points within processing windows.
Conclusion
PRSP successfully demonstrates that static RDF engines can be effectively repurposed for stream processing without sacrificing their inherent performance. While the framework is functional and accurate, future work will focus on optimizing the data transformation and query rewriting stages to reduce overhead and improve recall under heavy loads. Additionally, expanding support for more complex query types remains a priority.
Summary updated