Introduction
In the Semantic Web, the Web Ontology Language (OWL) is fundamental for representing complex knowledge and relationships. Reasoning—the process of uncovering implicit facts from explicit data—is essential for fully utilizing these ontologies. However, as datasets scale to billions of triples, traditional reasoning engines struggle with computational overhead. RORS (Rule-based OWL Reasoning on Spark) addresses this by optimizing rule execution order within a distributed framework.
The Challenge of Rule Execution Order
The primary goal of OWL reasoning is to achieve "deductive closure," where rules are applied iteratively until no further inferences can be made. The efficiency of this process is highly dependent on the order of rule application. For the OWL-Horst rule set, which contains 27 standard rules, there are over 259 million possible execution sequences. An inefficient order leads to redundant iterations and excessive memory usage, particularly when the output of one rule is a prerequisite for another. Previous systems often relied on MapReduce, which suffered from performance bottlenecks due to frequent disk I/O, or early Spark implementations that lacked deep rule dependency analysis.
Methodology
RORS leverages Apache Spark to implement a "locally optimal executable strategy." The approach is divided into three key phases:
1. Data and Rule Partitioning
Triples are categorized into SPO (standard relationships), Type (class memberships), and sameAs (identity aliases). Correspondingly, the 27 OWL rules are grouped into four classes: SPO, Type, sameAs, and Schema. This partitioning acknowledges that different data types have different frequencies; for instance, SPO triples often constitute approximately 80% of a dataset like LUBM-50, while Type triples account for roughly 20%.
2. Dependency Analysis
For each rule class, RORS constructs a dependency graph to identify how rules interact. By applying a Depth-First Search (DFS) algorithm, the system determines the longest execution paths, ensuring that rules are executed in an order that minimizes the need for repeated passes over the data. This "locally optimal" approach breaks down the combinatorial explosion of the global rule set into manageable sub-problems.
3. Global Integration and Join Optimization
The local optimal orders are integrated into a global workflow: Schema → SPO → Type → sameAs. To further enhance performance, RORS utilizes Spark’s broadcast variables for schema data. By sending small, frequently used schema data to every node in the cluster, the system avoids expensive data shuffling across the network during join operations.
Experimental Evaluation
The system was evaluated using the Lehigh University Benchmark (LUBM), the industry standard for testing semantic web reasoners. The researchers tested five scales of synthetic data, ranging from LUBM-10 (1.4 million triples) to LUBM-200 (27.6 million triples).
Results and Discussion
RORS achieved a significant performance improvement, demonstrating a 30% speedup over the KP (Kim & Park) algorithm, a leading Spark-based reasoner. Furthermore, it showed a 26% increase in reasoning efficiency (triples inferred per second) compared to the "Cichlid" system.
The results highlight two critical insights. First, the "80/20 rule" of data distribution means that prioritizing rules for the most common data types (SPO) yields the highest returns. Second, while in-memory frameworks like Spark provide a baseline speedup, software-level logic—specifically intelligent rule ordering—is vital for maximizing throughput. The system also exhibited near-linear scalability, confirming its suitability for large-scale knowledge bases.
Conclusion and Future Work
RORS demonstrates that partitioning rules and analyzing their dependencies can drastically reduce the computational cost of OWL reasoning on distributed systems. While the current strategy is "locally optimal," future research will focus on automating the discovery of global optimal strategies and testing performance on datasets with high identity alias (owl:sameAs) density, which may present different bottleneck characteristics.
Summary updated