Contextual Itemset Mining in DBpedia

Julien Rabatel, Madalina Croitoru, Dino Ienco, Pascal PonceletLD4KD 2014

Introduction

Data mining within the Linked Open Data (LOD) ecosystem, particularly in large-scale repositories like DBpedia, often treats RDF triples as a flat pool of data. While standard frequent itemset mining can identify groups of items that appear together often, this global perspective frequently overlooks the inherent structure of the data. For instance, a pattern like "hating Bill" might appear frequent globally simply because it is a common trait among "Cats," even if it is entirely absent among "Dogs."

This paper addresses this limitation by introducing Contextual Itemset Mining. By leveraging the existing ontological hierarchy as a "context," the proposed method identifies frequent patterns specific to certain classes (e.g., Musical Artists) and determines the exact level of the taxonomic tree where these patterns remain valid.

Methodology: Contextual Frequent Patterns

The core of the approach is the definition of a Contextual Frequent Pattern (CFP). The authors utilize the DBpedia class hierarchy—represented as a Directed Acyclic Graph (DAG)—to define contexts. A pattern is considered a CFP for a specific context if it remains frequent within that context and all its more specific sub-contexts.

Figure 1: A sample fact base and its corresponding ontology hierarchy used to define contexts for pattern mining.

To manage redundancy, the framework focuses on context-maximality, identifying the highest possible node in the hierarchy where a pattern holds true. The mining process is optimized through a three-step bottom-up approach:

  1. Mining Leaf Contexts: Frequent patterns are first identified in the "minimal contexts" (the leaves of the hierarchy) using the APriori algorithm.
  2. Indexing: These patterns are stored in a hash table, indexed by their respective minimal contexts.
  3. CFP Generation: The system traverses the ontology upwards. A pattern is validated for a parent context if it is frequent across all its constituent child contexts.

Dataset and Evaluation

The framework was evaluated using a pre-processed version of DBpedia. To ensure statistical significance, contexts with fewer than 10 elements were removed. The final hierarchy comprised 331 contexts (278 of which were minimal) and a database of over 2.5 million transactions.

Figure 2: Histograms showing the distribution of elements per minimum context (left) and the number of triples associated with each subject (right).

As shown in the data distribution, the dataset contains a high volume of transactions with varying triple counts per subject, providing a robust environment for testing scalability and pattern discovery.

Key Insights and Results

The research highlights several critical advantages of contextual mining:

  • Efficiency through Upward Refinement: By deducing parent frequency from child contexts, the algorithm avoids the computational cost of mining every node in the tree. For a 10% frequency threshold, the system processed 2.5 million transactions in under 100 seconds.
  • Automated Scoping: Context-maximality provides an automatic "scope" for discovered knowledge. For example, the system identified that while 33% of DartsPlayers were born in England, this was not a valid generalization for the broader Athlete category.
  • Real-World Pattern Discovery: Meaningful patterns were extracted, such as the high frequency (72%) of the {(location, UnitedStates)} pattern within the WineRegion context.

Conclusion and Future Directions

While the current algorithm is highly efficient, its performance is tied to the shape of the ontology, performing best on hierarchies with significant height. Future work will focus on translating these frequent itemsets into formal logical rules and exploring alternative context definitions beyond subject class types, such as specific predicate-object pairs.

Summary updated

BibTeX
@inproceedings{rabatel2014contextual,
  author = {Julien Rabatel and Madalina Croitoru and Dino Ienco and Pascal Poncelet},
  title = {{Contextual Itemset Mining in DBpedia}},
  booktitle = {LD4KD},
  year = {2014},
}
Figure