Avalanche: Putting the Spirit of the Web back into Semantic Web Querying

Achille Fokoue, Cosmin Basca, Abraham BernsteinIswc (posters & Demos) 2010

Introduction

The Semantic Web, or "Web of Data," has grown to encompass billions of triples, yet querying this vast, decentralized landscape remains a significant challenge. Current approaches typically fall into two categories: centralized indexing, which is fast but often outdated and expensive, and link traversal, which is "live" but suffers from extreme latency. Avalanche is a decentralized query engine designed to bridge this gap. By prioritizing the "first $K$" results and employing a flexible, real-time planning phase, Avalanche enables querying across independent, uncooperative databases while respecting the open nature of the internet.

System Architecture and Pipeline

Avalanche operates through a parallelized pipeline that manages the lifecycle of a query from initial request to result delivery. Unlike traditional systems that rely on a static global index, Avalanche utilizes a lightweight endpoint-schema inverted index. This index identifies potential data sources based on ontological prefixes and schema invariants.

The Avalanche Mediator Execution Pipeline

The execution pipeline, as shown in Figure 1, begins with a Statistics Requester that "pings" identified endpoints to gather real-time instance counts. This "live" metadata informs the Plan Generator, which produces multiple execution strategies. These strategies are queued and processed by Plan Executors and Plan Materializers, with the Query Stopper monitoring for termination conditions such as timeouts or result saturation.

Query Execution and Molecules

A core innovation of Avalanche is the decomposition of queries into "molecules"—small, coherent subgraphs of the overall query. A "plan" is formed by mapping these molecules to specific physical hosts.

Distributed join execution between molecules across different hosts

As illustrated in Figure 2, the system handles distributed joins by executing sub-queries (molecules) on different hosts. In this example, Molecule 1 (M1) is executed on Host A, and the results are used to filter the execution of Molecule 2 (M2) on Host B. To optimize bandwidth, Avalanche employs Bloom joins and SHA hashes for URIs, reducing the volume of data transmitted during these cross-host operations.

Because the number of potential plans can be exponential, Avalanche uses an objective function to rank them. This function calculates a ratio of Utility (the predicted number of results) to Cost (bandwidth and latency), ensuring that the most promising plans are executed first.

Evaluation and Key Results

The researchers evaluated Avalanche using a 35-million-triple dataset derived from IEEE, ACM, and DBLP. This data was distributed across a five-node cluster to simulate a fragmented web environment.

The evaluation demonstrated several key insights:

  • Feasibility of Live Querying: Avalanche successfully executed complex SPARQL-like queries without prior knowledge of data distribution, proving that real-time planning is a viable alternative to centralized indexing.
  • The "First K" Philosophy: By focusing on delivering the first few results quickly rather than waiting for a complete (and potentially impossible) set, Avalanche aligns Semantic Web querying with the user experience of the traditional Web.
  • Impact of Ranking: The choice of objective function was found to be the most critical factor in performance, directly determining whether results appeared in milliseconds or minutes.

Limitations and Future Work

As a prototype, Avalanche faces several challenges. It relies on the cooperation of remote SPARQL endpoints to provide statistics; uncooperative or slow endpoints can hinder the planning phase. Furthermore, future iterations must address the scalability of the objective function, more sophisticated network latency modeling, and security concerns regarding malicious endpoints providing false statistics.

Despite these limitations, Avalanche represents a significant step toward a truly decentralized and "live" Web of Data, prioritizing responsiveness and openness over the constraints of centralized control.

Summary updated

BibTeX
@inproceedings{fokoue2010avalanche,
  author = {Achille Fokoue and Cosmin Basca and Abraham Bernstein},
  title = {{Avalanche: Putting the Spirit of the Web back into Semantic Web Querying}},
  booktitle = {Iswc (posters \& Demos)},
  year = {2010},
}
Figure