NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Example-Driven Exploratory Analytics over Knowledge Graphs

Matteo Lissandrini, Katja Hose, Torben Bach Pedersen

Introduction

Knowledge Graphs (KGs) have become a standard for representing large-scale statistical data, such as census results or economic indicators. However, performing On-Line Analytical Processing (OLAP) on these graphs remains a significant hurdle for non-experts. Traditional OLAP tools are built for rigid tabular data, whereas KGs are heterogeneous and flexible. Extracting insights currently requires deep expertise in SPARQL and an intimate knowledge of the underlying, often complex, schema. This creates a "Structural Gap" that prevents domain experts from fully utilizing the rich data stored in KGs.

The Re2xOLAP Framework

Re2xOLAP addresses these challenges by enabling example-driven exploration. Instead of writing complex queries, users provide example entities (e.g., "Germany") to signal their intent. The system then reverse-engineers the analytical patterns required to produce relevant statistical views.

The Re2xOLAP workflow: from user example to query synthesis and interactive refinement.

The framework operates in two primary stages as illustrated in the workflow above:

  1. Query Synthesis (ReOLAP): When a user provides an example, the system identifies the dimensions associated with that entity using a Virtual Schema Graph. This graph is an in-memory summary of the KG's hierarchies (e.g., City -> Region -> Country), allowing the system to find connection paths in milliseconds. It then generates candidate SPARQL queries featuring aggregations like SUM or AVG that match the user's implied context.
  2. Interactive Refinement (ExRef): Once an initial query is established, users can refine the results through intuitive operations:
  3. Disaggregate: A "drill-down" operation that adds new dimensions (e.g., breaking down data by age group).
  4. Subset: Filters results based on statistical thresholds, such as "Top-K" or specific percentiles.
  5. Similarity Search: Discovers other entities that exhibit similar statistical trends to the user's original example.

A key technical innovation is the "Minimalism Constraint," which ensures the system only suggests dimensions relevant to the user's initial input, preventing the user from being overwhelmed by the thousands of possible paths in a complex KG.

Evaluation and Comparative Analysis

The system was evaluated on three diverse, real-world RDF datasets: Eurostat (15 million observations), Production (15 million observations), and DBpedia (541k observations). A critical finding was that query generation time is tied to schema complexity (the number of levels and dimensions) rather than raw data volume. This ensures high scalability for "Big Data" scenarios where the number of observations may be in the hundreds of millions.

Comparison of Re2xOLAP against existing state-of-the-art systems across key analytical features.

As shown in the comparison table, Re2xOLAP is the only system that simultaneously supports large KGs, complex aggregations, query reformulations, and partial user input. In performance tests, query synthesis consistently occurred in under 2.5 seconds, making the exploration process truly interactive.

Key Insights and Results

User validation with domain experts confirmed that the "starting from an entity of interest" workflow is significantly more natural than building queries from scratch. Users were able to navigate over 12,000 distinct exploration paths with just four interactions. While the initial "bootstrap" phase to build the Virtual Schema Graph can take up to an hour for massive datasets, it only needs to be performed once, after which all user interactions are near-instant.

Conclusion and Future Work

Re2xOLAP democratizes KG analytics by shifting the burden of query formulation from the user to the system. By leveraging a pre-computed Virtual Schema Graph and an example-driven interface, it provides a scalable and user-friendly path to discovering insights in semi-structured datasets. Future work will focus on ranking query interpretations based on user history and optimizing the execution of complex SPARQL aggregates on standard triplestores, which currently remain the primary performance bottleneck.

Summary updated

BibTeX
@inproceedings{lissandrini2023example,
  author = {Matteo Lissandrini and Katja Hose and Torben Bach Pedersen},
  title = {{Example-Driven Exploratory Analytics over Knowledge Graphs}},
  booktitle = {EDBT},
  year = {2023},
  doi = {10.48786/edbt.2023.09},
}
Figure