Efficient Semantic Summary Graphs for Querying Large Knowledge Graphs

Emetis Niazmand, Gezim Sejdiu, Damien Graux, Maria-Esther Vidal · DOI

Introduction

Knowledge Graphs (KGs) such as DBpedia and Wikidata have become indispensable for representing complex, interconnected data. However, as these graphs scale to billions of Resource Description Framework (RDF) triples, the computational cost of querying them via SPARQL increases dramatically. In distributed computing environments, the primary performance bottleneck is often "data shuffle"—the high-latency process of transferring massive datasets across network nodes during join operations.

This research addresses these scalability challenges by introducing two novel summarization algorithms: Grouping Based Summarization (GBS) and Query Based Summarization (QBS). These methods leverage semantic similarity to condense large KGs into manageable summaries, significantly reducing query execution time without sacrificing result accuracy.

Methodology

The proposed framework shifts the focus from purely structural graph reduction to semantic-aware summarization.

Grouping Based Summarization (GBS)

GBS is an offline, global approach to graph reduction. It identifies subjects that share similar predicates and objects, merging them into "Super-Nodes." To determine similarity, the algorithm employs embedding models, specifically Word2Vec and RDF2Vec. By calculating the cosine similarity between predicate embeddings, GBS can identify semantically related properties—such as country, nationality, and birthPlace. These properties are then treated as a single representative group, allowing for a broader reduction of the graph's overall footprint.

Query Based Summarization (QBS)

QBS is an optimized, online approach designed to address the limitations of global summarization. Rather than processing the entire graph, QBS focuses exclusively on the subgraph relevant to a specific user query. The core innovation of QBS is its query rewriting mechanism. By identifying semantic similarities within the context of the query, the system simplifies the SPARQL query itself, reducing the number of triple patterns and associated join operations. This targeted approach ensures that the summarization is "lossless," meaning the query results remain identical to those produced by the original, uncompressed graph.

Experimental Evaluation

The researchers evaluated the performance of GBS and QBS across four datasets of varying scales:

  • DBpedia: A small-scale test set (2,047 triples).
  • ESBM (Entity Summarization BenchMark): A standard benchmark (6,584 triples).
  • WatDiv.10M: A medium-scale synthetic dataset (~10.9 million triples).
  • WatDiv.100M: A large-scale synthetic dataset (~108.9 million triples).

The Sparklify query engine, part of the SANSA Stack, served as the baseline for all performance comparisons.

Key Findings

The experimental results demonstrate that semantic summarization offers significant advantages in both storage efficiency and query performance.

Compression and Efficiency

QBS achieved remarkable data reduction, shrinking the DBpedia dataset by 99% and the WatDiv.100M dataset by 97.4% relative to the triples required for specific queries. This massive compression directly translated to faster execution times. On the DBpedia dataset, query latency dropped from 19 seconds on the original graph to just 3 seconds using QBS—an 80% reduction in execution time.

Scalability and Accuracy

While the global GBS approach occasionally resulted in information loss on larger datasets, the QBS approach remained consistently lossless. Furthermore, the performance gains of QBS became more pronounced as the dataset size increased. In the transition from 10 million to 100 million triples, QBS maintained high efficiency, whereas the naive GBS approach struggled with the overhead required to summarize the entire graph structure.

Conclusion and Future Work

The integration of semantic embeddings into graph summarization represents a significant step forward for RDF query optimization. By simplifying both the data and the queries, GBS and QBS mitigate the data shuffle bottleneck in distributed systems.

However, the current implementation faces certain limitations. The effectiveness of the summarization is highly dependent on the presence of synonymous properties within the KG. Additionally, the system currently lacks robust handling for literal values (strings and numbers), as standard embedding techniques are optimized for entities and relations. Future research will focus on extending these algorithms to handle unstructured data, incorporating more diverse evaluation metrics like precision and recall, and testing the framework on massive knowledge bases such as the full Wikidata set.

Summary updated

BibTeX
@article{niazmand2022efficient,
  author = {Emetis Niazmand and Gezim Sejdiu and Damien Graux and Maria-Esther Vidal},
  title = {{Efficient Semantic Summary Graphs for Querying Large Knowledge Graphs}},
  journal = {Int. J. Inf. Manag. Data Insights},
  year = {2022},
  doi = {10.1016/j.jjimei.2022.100082},
}
Figure