Papers
Topics
Authors
Recent
Search
2000 character limit reached

Deductive Ontology Bases (DOBs) Overview

Updated 14 July 2026
  • DOBs are a deductive-database formalism where explicit ontology assertions (facts) and inference rules represent and operationalize ontological knowledge.
  • Research on DOBs focuses on cost-based query optimization, applying adaptive sampling and join estimation to minimize intermediate inferred facts.
  • Hybrid DOB models translate OWL/SWRL axioms into Datalog rules, unifying heterogeneous knowledge sources with a common deductive reasoning framework.

Searching arXiv for the cited DOB-related papers and closely related Semantic Web/deductive database work. A Deductive Ontology Base (DOB) is a deductive-database formalization of an ontology in which explicit ontology assertions are represented as facts and ontology axioms are represented as inference rules. In the formulation introduced for Web ontology query processing, an ontology knowledge base O=F,IO=\langle \mathcal{F},\mathcal{I}\rangle is modeled as a Datalog program partitioned into an Extensional Ontology Base (EOB), containing ground predicates corresponding to F\mathcal{F}, and an Intensional Ontology Base (IOB), containing Datalog rules corresponding to I\mathcal{I} (0711.2087). In later hybrid-database work, the notion is broadened into a tuple DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau) that combines a Datalog rule base, an OWL/SWRL ontology, and a translation τ\tau that compiles ontology axioms into Datalog facts or rules for uniform reasoning inside a deductive engine (Seipel, 2017). Across these formulations, the defining idea is the same: ontological knowledge is flattened into a rule-based substrate so that query answering, optimization, explanation, and cross-source integration can be handled within deductive-database machinery.

1. Formal characterization

In the Web ontology query-processing formulation, a DOB is a pair (EOB,IOB)(\mathrm{EOB},\mathrm{IOB}) in which every EOB predicate is a ground nn-ary predicate whose extension is known a priori, and every IOB predicate is defined by one or more Datalog rules of the form

Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).

Here Xˉ\bar{X} are head variables and Yˉ\bar{Y} are variables appearing only in the body (0711.2087). Valid instantiations are substitutions mapping variables to constants that make all body atoms true in the minimal model; these instantiations generate intermediate inferred facts. This model places ontology querying squarely in the setting of deductive databases, with explicit separation between stored assertions and inferred consequences.

The EOB/IOB split is exemplified by predicates such as isClass(C,O), subClassOf(C₁,C₂), isOProperty(P,Dom,Range), isDProperty(P,Dom), isIndividual(I,C), and isStatement(I,P,J) for the extensional layer, alongside recursive intensional predicates such as areSubClasses, areImpOntologies, areClasses, and areIndividuals (0711.2087). For example, transitive subclass closure is expressed by the two rules

F\mathcal{F}0

F\mathcal{F}1

This illustrates that a DOB is not merely a storage format; it is a deductive theory whose operational behavior depends on the evaluation of recursive rules.

In the hybrid deductive-database formulation, the DOB is generalized as

F\mathcal{F}2

where F\mathcal{F}3 is a many-sorted first-order signature, F\mathcal{F}4 is a finite Datalog rule base, F\mathcal{F}5 is a finite set of ontology axioms in an OWL/SWRL fragment, and F\mathcal{F}6 maps ontological axioms into Datalog facts or rules over F\mathcal{F}7 (Seipel, 2017). The resulting flattened rule base is

F\mathcal{F}8

This formulation makes explicit that ontological knowledge is not handled by a separate reasoner in the core execution model; instead, ontology axioms are translated into the same rule language as the rest of the deductive program.

A plausible implication is that the two definitions describe different points on a spectrum rather than incompatible notions. The earlier EOB/IOB account emphasizes efficient query evaluation over OWL Lite ontologies, whereas the later tuple-based definition emphasizes heterogeneous integration, provenance, and explanation.

2. Representation of ontology semantics in Datalog

A DOB models ontology semantics by encoding ontological constructs as facts and Datalog rules. In the OWL Lite setting, import closure, class inheritance across imported ontologies, and inheritance of individuals along subclass hierarchies are all represented as recursive intensional predicates (0711.2087). For example, import closure is captured by

F\mathcal{F}9

I\mathcal{I}0

Inheritance of classes via imports and inheritance of individuals via subclass entailment are then expressed with further rules over these closures. The result is a rule-theoretic encoding of ontology reasoning that can be evaluated through standard deductive techniques.

The later hybrid formulation makes the translation step explicit. Under I\mathcal{I}1, class inclusion I\mathcal{I}2 is mapped to the Datalog rule

I\mathcal{I}3

property inclusion I\mathcal{I}4 is mapped to

I\mathcal{I}5

domain axioms are translated to rules of the form

I\mathcal{I}6

range axioms to

I\mathcal{I}7

and SWRL implications

I\mathcal{I}8

are translated to

I\mathcal{I}9

(Seipel, 2017). This encoding strategy places OWL/SWRL fragments and conventional Datalog rules into a single inferential space.

A worked example in the hybrid account combines an OWL axiom DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)0, a DL fact DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)1, a SWRL rule for uncle, and a Datalog fact DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)2\mathit{Ancestor}(\mathit{alice},\mathit{bob})DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)3\mathit{uncle}(\mathit{alice},\mathit{charlie})`. This demonstrates the central operational property of a DOB: ontology-derived and rule-derived consequences participate in the same derivation process.

This suggests that a DOB is best understood not as an ontology language but as a compilation and execution discipline. Its semantics arise from how ontology axioms are embedded into the deductive substrate and from the evaluation strategy applied to the resulting program.

3. Query evaluation and cost-based optimization

The principal technical contribution of the query-processing work is a cost-based optimization technique for conjunctive queries over DOBs that minimizes the number of intermediate inferred facts (0711.2087). This objective is specific to deductive ontology querying: inferred facts can dominate execution cost, especially when intensional predicates encode transitive closure or other recursive entailments.

The proposed cost model is hybrid. For intensional predicates in the IOB, cardinality and cost are estimated using adaptive sampling; for extensional predicates in the EOB and for conjunctive ontology queries, techniques from traditional relational cost models are used (0711.2087). The adaptive-sampling component considers the population of valid instantiations of an intensional predicate, partitions it according to a chosen argument, and estimates the expectation of a random variable DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)4 representing either cardinality contribution or derivation cost. The estimator DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)5 is required to satisfy

DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)6

with

DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)7

Sampling proceeds until the cumulative sum DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)8 exceeds a bound based on DOB=(Σ,R,O,τ)\mathit{DOB}=(\Sigma,R,O,\tau)9 and an upper bound τ\tau0 estimated from pilot samples; the sample mean τ\tau1 is then scaled by the number of partitions to estimate predicate cardinality (0711.2087).

For joins, the model adopts System R-style formulas. For two subgoals τ\tau2 and τ\tau3,

τ\tau4

where τ\tau5 is a reduction factor computed under uniformity and independence assumptions on join variables (0711.2087). Cost estimates are given for nested-loop join, block nested-loop join, and hash join. In the nested-loop case,

τ\tau6

For block nested-loop join,

τ\tau7

and for hash join,

τ\tau8

For larger conjunctions, the formulas are applied pairwise according to the chosen plan.

A concrete query example asks which ontology τ\tau9 has a class (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})0 with a traction property:

(EOB,IOB)(\mathrm{EOB},\mathrm{IOB})1

Two join orders are compared: evaluating areClasses(C,O) before isDProperty(traction,C), or vice versa. The reported sampling result is that the second plan produces far fewer intermediate facts because isDProperty(traction,–) has selectivity 1 (0711.2087). The example illustrates the core intuition of DOB optimization: highly selective extensional predicates should constrain recursive intensional predicates as early as possible.

4. Plan generation and search-space pruning

DOB query optimization is implemented by a dynamic-programming algorithm that enumerates conjunctive query plans and retains only partial plans that are not dominated in both cost and cardinality (0711.2087). The algorithm constructs SubPaths_i, the set of best partial plans of length (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})2, and extends each subpath only with predicates that share variables with the current subplan. For each equivalence class of plans containing the same set of subgoals, the algorithm keeps only those plans for which no alternative has both lower cost and lower cardinality.

The pruning criterion is Pareto dominance. Since the objective is to minimize intermediate inferred facts while preserving awareness of result sizes, both estimated cost and estimated cardinality are used in dominance checks (0711.2087). This is important in DOB settings because low immediate cost can lead to high downstream expansion if a plan produces large intermediate inferred relations.

The dynamic-programming formulation is structurally similar to classical relational join-order optimization, but its semantics are tuned to deductive inference. In particular, the estimated cost of a partial plan is not simply an I/O or CPU proxy; it is explicitly the accumulation of intermediate inferred facts produced during join steps (0711.2087). This redefinition of the optimization target differentiates DOB planning from purely relational planning.

A plausible implication is that the DOB framework transfers mature ideas from relational query optimization into ontology-aware deductive settings without assuming that relational access costs alone are adequate. The hybrid model compensates for this by separating the treatment of extensional and intensional predicates.

5. Experimental evaluation and empirical behavior

The reported experimental study modeled a subset of OWL Lite as a DOB and evaluated the cost model and optimization method on synthetic and real-world ontologies (0711.2087). The real-world OWL-Lite ontologies named are Travel, EHR_RM, and GALEN. The measured metrics were the number of intermediate inferred facts and wall-clock time. Sampling and confidence parameters were fixed at (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})3, (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})4, and (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})5.

The predictive capacity of the cost model was evaluated by correlation between estimated and actual cost. The reported values are approximately (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})6 for synthetic ontologies under nested-loop joins only, (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})7 for GALEN under nested-loop joins only, (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})8 for Travel under nested-loop joins and (EOB,IOB)(\mathrm{EOB},\mathrm{IOB})9 for Travel across all three join strategies, and nn0 for EHR_RM under nested-loop joins and nn1 for EHR_RM across all three strategies (0711.2087). These figures indicate that predictive accuracy varied by ontology, with GALEN showing substantially weaker correlation than the other reported cases.

Optimization benefits were expressed as cost ratios. For synthetic queries under nested-loop joins, nn2 in most cases. Across 20 queries, nn3 for 15 queries. On EHR_RM, the mean nn4 under nested-loop joins is given as approximately nn5, and approximately nn6 when all three join strategies are available (0711.2087). The study concludes that the techniques are accurate and improve query performance.

These results support a limited but concrete claim: within the evaluated OWL Lite subset, minimizing intermediate inferred facts through DOB-aware optimization substantially affects execution behavior. This does not establish universal performance guarantees, but it does show that the optimization problem is practically consequential.

6. Hybrid systems, dependency analysis, and proof trees

In the DDbase-oriented account, the DOB concept is extended beyond ontology query optimization to knowledge engineering over heterogeneous sources (Seipel, 2017). DDbase is described as combining four knowledge sources: a relational-database component accessed via ODBC-style calls, an XML/OWL store queried via the FnQ engine, a Datalog rule base stored as Prolog clauses, and an ontology base of OWL/SWRL axioms translated by nn7 into Datalog facts and rules. These four components are interconnected through a unified query language described as essentially Datalog with embedded Prolog calls and FnQ path-expressions.

Two graph abstractions are used to analyze the combined program nn8: the predicate-dependency graph nn9 and the rule-predicate graph Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).0 (Seipel, 2017). In the predicate-dependency graph, vertices are predicate symbols and an edge Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).1 is present whenever a rule with head predicate Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).2 contains a body literal with predicate Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).3. The rule-predicate graph refines this by introducing nodes for rules as well as predicates, with edges from head predicates to rules and from rules to body predicates; default-negated body literals are marked as “not-edges.” The example contrasting

Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).4

with

Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).5

shows that the two programs have the same predicate-dependency graph but different rule-predicate graphs (Seipel, 2017). In DOBs, this distinction matters because ontology translations may preserve coarse predicate dependencies while altering the rule-level structure of derivations.

The same work emphasizes proof-tree based reasoning. A semi-naive bottom-up operator is extended so that each derived atom is paired with a proof term recording the rule name and the proof trees of its premises (Seipel, 2017). Starting from

Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).6

one adds

Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).7

whenever Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).8 and each Xˉ,Yˉ. q(Xˉ): ⁣  B1(Xˉ,Yˉ),,Bk(Xˉ,Yˉ).\forall \bar{X},\bar{Y}.\ q(\bar{X}) :\!-\; B_1(\bar{X},\bar{Y}),\dots,B_k(\bar{X},\bar{Y}).9 is available at the current stage. After fixpoint, Xˉ\bar{X}0 contains all derived atoms paired with their canonical proof trees. This mechanism is presented as an explanation facility for hybrid derivations mixing rules, ontology axioms, built-ins, and path queries.

The same machinery is applied to version comparison. Two DOB versions

Xˉ\bar{X}1

may be compared through predicate-dependency graphs, rule-predicate graphs, and proof-tree differencing (Seipel, 2017). This extends the DOB idea from efficient reasoning to maintenance and evolution analysis in hybrid knowledge bases.

7. Scope, misconceptions, and limitations

A common misconception is that a DOB is simply another name for an ontology stored in a database. The source material instead defines it as a deductive representation in which inference axioms are first-class components of the database program itself (0711.2087). The distinction is substantive: query cost, plan quality, and explanation behavior all depend on how recursive and inferred predicates are evaluated.

A second misconception is that DOBs are tied exclusively to OWL Lite. The query-evaluation work specifically models a subset of OWL Lite as a DOB (0711.2087), but the later DDbase-oriented work explicitly extends the setting to OWL/SWRL fragments and mixed-source hybrid deductive databases (Seipel, 2017). This suggests a family resemblance across systems rather than a single fixed ontology language boundary.

The DDbase-oriented account also states explicit limitations. Materializing OWL entailments as Datalog rules may explode in size for very expressive DL axioms beyond OWL-Lite; recursion through SWRL combined with built-ins may threaten termination under bottom-up evaluation; optimization across relational, XML, and rule-based accesses remains an open challenge; and certain DL constructs such as cardinality constraints and nominals, as well as advanced provenance inferences such as cycle-detection in OPM, cannot be completely unfolded into pure Datalog without extra machinery (Seipel, 2017). These are not incidental engineering caveats; they identify the boundary conditions under which the DOB approach remains tractable.

Taken together, the literature presents DOBs as a deductive formalism for ontological knowledge that is simultaneously representational and operational. In one line of work, the emphasis is cost-based optimization for conjunctive query evaluation over intensional and extensional ontology predicates (0711.2087). In another, the emphasis is hybrid knowledge engineering, provenance, graph-based abstraction, and proof-carrying derivation in a unified deductive engine (Seipel, 2017). The shared foundation is the translation of ontology semantics into a deductive program whose facts, rules, derivations, and query plans can all be analyzed using deductive-database techniques.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Deductive Ontology Bases (DOBs).