Abstract
As the Linked Open Data cloud expands, the traditional centralized approach of downloading and indexing massive RDF dumps becomes increasingly impractical. This paper evaluates the feasibility of large-scale federated SPARQL query processing using the FedX mediator. By querying a federation of 29 Bio2RDF datasets totaling over 4.1 billion triples across local and hybrid cloud environments, we demonstrate that optimized federated querying is not only possible but highly performant in real-world, high-latency scenarios.
Introduction
The growth of the Semantic Web necessitates efficient ways to query distributed datasets. While centralized triple stores offer high performance, they suffer from high resource requirements and data obsolescence. Federated query processing offers a virtualized alternative, treating distributed SPARQL endpoints as a single database. However, the scalability of such systems to billions of triples across dozens of endpoints remained largely untested. This report details an evaluation of the FedX system in a large-scale, 29-endpoint federation.
The FedX Mediator Architecture
FedX is a highly optimized Linked Data federation mediator designed for high performance without requiring precomputed statistics. Its workflow involves several key stages: parsing the SPARQL request, performing source selection via on-demand ASK queries, applying global optimizations (grouping and join ordering), and finally executing the query using bound joins.
A critical component of FedX is its "source selection" mechanism. By sending lightweight ASK queries, the system identifies which endpoints contain relevant data for specific triple patterns, effectively pruning the search space and minimizing unnecessary network traffic.
Experimental Setup
The evaluation utilized 29 life science datasets from the Bio2RDF domain, including major sources like UniProt, PubMed, and KEGG. Collectively, these datasets comprise approximately 4.1 billion RDF triples and 1.1 billion entities.
Two environments were tested:
- Local Federation: 29 endpoints on a local cluster (low latency).
- Hybrid Federation: A mix of local and remote Amazon AWS EC2 endpoints, simulating a realistic enterprise scenario with significant network latency.
The benchmark included 17 queries: 7 from the FedBench Life Science (LS) suite and 10 from the Linked Life Data (LLD) project, covering various structural complexities.
Key Findings
Performance and Scalability
In the local setup, FedX demonstrated exceptional speed, with all queries finishing in under 15 seconds and the majority (10 out of 17) taking less than one second. In the hybrid setup, while network latency increased execution times (e.g., a ~100% slowdown for query LS7), the system remained practical for real-world use.
The Role of Network Latency and Parallelism
Interestingly, the hybrid setup outperformed the local setup in certain cases. Distributing heavy datasets to dedicated EC2 instances reduced the compute load on the local cluster, suggesting that the benefits of parallel processing can sometimes outweigh the costs of network latency.
Source Selection and Caching
Source selection proved to be the linchpin of scalability. Even with 29 available endpoints, FedX typically queried fewer than 10 sources per triple pattern. While caching source selection results provided significant speedups for simpler queries by reducing network requests, the system maintained high performance even without it, supporting ad-hoc federation scenarios.
Conclusion and Future Work
This experience report confirms that federated SPARQL querying can scale to billions of triples across dozens of endpoints. The primary bottleneck remains the volume of network requests for complex joins. Future optimizations may include leveraging URI namespaces to bypass ASK queries and using query log analysis to automatically co-locate frequently joined datasets.
Summary updated