<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Defeasible disjunctive datalog</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>CAIR</institution>
          ,
          <country country="ZA">South Africa</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Cape Town</institution>
          ,
          <addr-line>Cape Town</addr-line>
          ,
          <country country="ZA">South Africa</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Datalog is a declarative logic programming language that uses classical logical reasoning as its basic form of reasoning. Defeasible reasoning is a form of non-classical reasoning that is able to deal with exceptions to general assertions in a formal manner. The KLM approach to defeasible reasoning is an axiomatic approach based on the concept of plausible inference. Since Datalog uses classical reasoning, it is currently not able to handle defeasible implications and exceptions. We aim to extend the expressivity of Datalog by incorporating KLM-style defeasible reasoning into classical Datalog. We present a systematic approach to extending the KLM properties and a well-known form of defeasible entailment: Rational Closure. We conclude by exploring Datalog extensions of less conservative forms of defeasible entailment: Relevant and Lexicographic Closure.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>2.1</p>
      <sec id="sec-2-1">
        <title>Propositional Logic</title>
        <p>
          Propositional logic [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] is a simple logic which is built up from a nite set P
of propositional atoms, denoted by meta-variables p; q; : : :. The language L of
propositional logic is the set of all formulas, denoted by ; ; : : :, which are
recursively de ned as usual: ::= &gt; j ? j p j : j ^ j _ j ! j $ .
        </p>
        <p>An interpretation is a function I : P ! fT; F g which assigns a single truth
value to each atom. A formula 2 L is satis ed by an interpretation I, denoted
I , if it can be evaluated to true by I in the usual recursive truth-functional
way. We de ne the models of a nite set of formulas X to be JXK = fI : I
; 2 Xg. We say that a set of formulas X entails a formula , denoted by
X j= , if JXK Jf gK.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>KLM-style Defeasible Entailment</title>
        <p>
          The KLM approach [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] is based on the concept of plausible inference, which is
represented by defeasible implication operators of the form j . This is read
as \typically, if , then ".
        </p>
        <p>Let a knowledge base K be a nite set of defeasible implications. The KLM
framework answers the question: \What does it mean for a defeasible implication
j to be entailed by a knowledge base K?". This is referred to as defeasible
entailment, and denoted by K j j .</p>
        <p>
          Unlike classical entailment, it is well-accepted that defeasible entailment is
not unique. There are multiple formalizations of defeasible entailment, such
as Rational Closure [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], Lexicographic Closure [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], and Relevant Closure [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
Lehmann and Magidor [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] proposed a set of rationality properties known as the
KLM properties. They argue that if a defeasible entailment algorithm satis es
all the properties it is believed to be an acceptable form of defeasible
entailment. We adopt this approach and refer to these forms of defeasible entailment
as LM-rational. The KLM properties for propositional logic are stated below:
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Rational Closure</title>
        <p>
          Rational closure is the most conservative form of defeasible entailment. We use
the algorithmic de nition [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], which we refer to as the Rational Closure
Algorithm, as the sole de nition of Rational Closure. The algorithm is split into two
distinct sub-algorithms, proposed by Casini et al. [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. The BaseRank algorithm
is used to construct a ranking of the classical versions ( !K) of the statements in
the defeasible knowledge base (K), according to typicality of the statements.
        </p>
      </sec>
      <sec id="sec-2-4">
        <title>Algorithm 1: BaseRank</title>
        <p>Input: A knowledge base K</p>
        <p>Output: An ordered tuple (R0; : : : ; Rn 1; R1; n)
1 i := 0;
2 E0 := !K := f !
3 repeat
4 Ei+1 := f !
5 Ri := Ei n Ei+1;
6 i := i + 1;
7 until Ei 1 = Ei;
8 R1 := Ei 1;
9 if Ei 1 = ; then
10 n := i 1;
11 else
12
n := i;
j j</p>
        <p>2 Kg;
2 Ei j Ei j= : g;
13 return (R0; : : : ; Rn 1; R1; n)</p>
        <p>The RationalClosure algorithm is used to compute whether a defeasible
implication is entailed by the knowledge base and uses the BaseRank algorithm.</p>
        <sec id="sec-2-4-1">
          <title>Algorithm 2: RationalClosure</title>
          <p>Input: A knowledge base K and a defeasible implication j</p>
          <p>Output: true, if K j j , and false, otherwise
1 (R0; : : : ; Rn 1; R1; n) := BaseRank(K);
2 i := 0;
3 R := Sij=&lt;0n Rj;
4 while R1 [ R j= : and R 6= ; do
5 R := R n Ri;
6 i := i + 1;
7 return R1 [ R j=</p>
          <p>! ;</p>
          <p>
            Note that while the query passed to RationalClosure must be expressed in
terms of the defeasible implication operator, we can express any classical sentence
as a defeasible implication : j ? [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ]. Thus, the algorithm can be used to
check classical queries as well. Also note that the RationalClosure algorithm
just reduces to a sequence of classical entailment checks.
Datalog [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ] is a more expressive logic than propositional logic and a popular
query language for deductive databases [
            <xref ref-type="bibr" rid="ref12 ref13">12,13</xref>
            ]. Datalog is a simpli ed version
of general logic programming. The language of Disjunctive Datalog is made
up of function-free Horn clauses with the general form: l0 ^ l1 ^ ^ lm !
lm+1 _ lm+2 _ _ ln. Each literal li is either ? or is a positive atom of the form
pi(t0; : : : ; tki ), where pi is a predicate symbol and t0; : : : ; tki are terms. A term is
either a constant or a variable. In our version of Datalog, the left-hand side of
the clause is referred to as the body and the right-hand side as the head. Horn
clauses with a body are called rules and those without a body are called facts.
          </p>
          <p>A Herbrand Base BP is the set of all ground facts constructible from the
symbols in a Datalog program P . A Herbrand interpretation assigns each constant
symbol to itself and each predicate symbol to a set of predicates ranging over
constant symbols, and is identi ed with a subset BP . For any Herbrand
interpretation , we de ne that ? is not in . A rule l0 ^l1 ^ ^lm ! lm+1 _lm+2 _ _ln
is true for Herbrand interpretation if and only if, for each substitution which
replaces variables by constants, if l0 2 ; l1 2 ; : : : ; lm 2 then at least one
of lm+1 2 ; lm+2 2 ; : : : ; ln 2 holds. A fact l0 ^ l1 ^ ^ lm is true for
Herbrand interpretation if and only if, for each substitution which replaces
variables by constants, l0 2 ; l1 2 ; : : : ; lm 2 all hold. A Herbrand
interpretation is a Herbrand model of a set of Horn clauses X if and only if every
clause in X is true for .</p>
          <p>
            Entailment of Horn Clauses The semantics of standard Datalog only de nes
entailment of ground facts. However, for the purposes of this paper, we extend
the semantics of Datalog to allow for classical entailment of non-ground clauses.
We use the de nition of entailment under Herbrand semantics for rst-order
logic [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ]. A set of Horn clauses X entails Horn clause , denoted by X j= , if
and only if each Herbrand model of X is also a model of .
          </p>
        </sec>
      </sec>
      <sec id="sec-2-5">
        <title>Molecules as Combinations of Literals We introduce the idea of molecules</title>
        <p>as a shorthand for a combination of literals. A disjunctive molecule, denoted
_, is a combination of literals of the form: l1 _ l2 _ _ ln. A conjunctive
molecule, denoted ^, is a combination of literals of the form: l1 ^ l2 ^ ^ ln. A
molecule, denoted , is either a disjunctive molecule or a conjunctive molecule.
Now a Disjunctive Datalog rule can be written as ^ ! _.
3
3.1</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Defeasible Disjunctive Datalog</title>
      <sec id="sec-3-1">
        <title>KLM-style Defeasible Rules</title>
        <p>We represent plausible inference in Disjunctive Datalog using defeasible rules of
the form: b1 ^ ^bm j h1 _ _hn. This is read as \typically, if all of b1; : : : ; bm
are true, then at least one of h1; : : : ; hn is true". We do not consider a semantic
de nition of defeasible rules. We will instead de ne defeasible rules by adapting
rational defeasible entailment algorithms for Disjunctive Datalog.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Defeasible Entailment</title>
        <p>
          Let knowledge base K be a nite set of defeasible rules. The main question of
this paper is to algorithmically analyse defeasible entailment K j j . That
is, how do we answer the question: \Can we conclude j from a defeasible
knowledge base K? ". When analysing di erent defeasible entailment algorithms,
Lehmann and Magidor [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] advocate that the KLM properties be used to assess
the rationality of these algorithms. We adopt this approach for Datalog and
provide an extension of the KLM properties for Disjunctive Datalog.
A Motivation for Extending Disjunctive Datalog We nd that, due to
the restrictive nature of Datalog's syntax, none of the KLM properties can be
expressed using Disjunctive Datalog without violating the syntax. However, we
need to ensure that LM-rational forms of defeasible entailment satisfy all of
the KLM properties. We argue that this is necessary, even though the
reasoning described by some of these properties will never be computed by defeasible
entailment algorithms for Disjunctive Datalog.
        </p>
        <p>Let us consider an example where we can come to a conclusion that cannot be
expressed in Datalog's syntax. Even though we cannot express that conclusion,
we still want the algorithm to be able to compute it, otherwise the algorithm
would not be rational. For example, we would want to be able to conclude
t(X) j s(X) ^ e(X) from ft(X) j s(X); t(X) j e(X)g.</p>
        <p>Datalog+ Our proposed extension to Datalog, Datalog+, introduces the idea
of compounds. Compounds, denoted by A; B; : : :, are recursively de ned from
base literals l as follows: A ::= l j :A j A ^ A j A _ A. In Datalog+ a fact is a
compound A and rules have the form A ! B.</p>
        <p>Let be a Herbrand interpretation and consider some substitution which
replaces variables by constants. We say that compound A is in under , denoted
A 2 , if and only if one of the following conditions holds, where B; are
compounds and l is a literal:</p>
        <p>A = l and l 2
A = :B and B 62
A = B ^ , B 2
A = B _ and B
and
2
or
2</p>
        <p>2</p>
        <p>Herbrand interpretation is a model of fact A if and only if A 2 for every
possible . Herbrand interpretation is a model of rule A ! B if and only if,
whenever A 2 for some , then B 2 for the same . A knowledge base K
entails Datalog+ Horn clause (rule or fact) , denoted by K j= , if and only if
each Herbrand model of K is also a model of .</p>
      </sec>
      <sec id="sec-3-3">
        <title>The KLM Properties Expressed in Datalog+ We state the KLM prop</title>
        <p>erties (in Datalog+) for Datalog below, where molecules ; ; are used as a
shorthand.</p>
        <p>(LLE) j=
In the propositional case, we can rewrite a classical statement as the defeasible
statement : j ? and, hence, we can assume that all of the statements in
our knowledge base are defeasible. It is not possible to rewrite classical clauses
as defeasible rules for the Datalog case. Instead, the adapted version of the
BaseRank algorithm, Algorithm 1, ranks the statements in a knowledge base
K = D[C, where D is the set of defeasible rules and C the set of classical clauses.
It forms a ranking using only the defeasible statements by setting E0 := !D on
line 2. Then, since the classical statements are all de nite, it adds them to the
the most typical level (the in nite level).</p>
        <p>In the propositional case, a statement is exceptional with respect to a set
of statements X if X j= : . Datalog_'s syntax does not include the negation
connective :, so we use the ? literal to de ne a notion of falsehood, and hence
exceptionality.</p>
        <p>Proposition 1. Let be a Herbrand interpretation. Then, is a model of :
under Datalog+ semantics i is a model of ! ? under Datalog_ semantics.</p>
        <p>The exceptionality of molecule is now assessed using the entailment check
Ei [ C j= ! ? on line 4. Finally, when all the defeasible rules are ranked,
BaseRank adds the classical clauses to the in nite level by setting R1 := Ei 1[C
on line 8.
4.2</p>
      </sec>
      <sec id="sec-3-4">
        <title>Rational Closure Algorithm</title>
        <p>As with the BaseRank algorithm, we choose to represent falsehood using the ?
literal. The RationalClosure algorithm now uses the entailment check R1[R j=
! ? on line 4. Under the assumption that we can compute classical entailment
for Datalog_, this adapted version of the RationalClosure algorithm can be
used to check whether a rule j is defeasibly entailed by the knowledge base
K = D [ C.
Proposition 2. The adapted RationalClosure algorithm is LM-rational.</p>
        <p>The adapted algorithms and proof of LM-rationality (proofs for satisfaction
of each KLM property) are provided in Appendix A and B.
5</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Lexicographic Closure</title>
      <p>
        It seems unnecessary for the Rational Closure algorithm to throw away an entire
level of statements when there is a con ict. While it is true that a statement
within the level is causing the con ict, there are other statements in the level that
may have no e ect on the con ict occurring. Lexicographic closure [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] takes a
ner-grained approach to removing statements. It considers all possible subsets of
worst-ranked statements and removes the smallest possible subset such that there
is no longer a con ict. The semantic and algorithmic de nitions of Lexicographic
Closure for propositional logic are known and have been shown to be LM-rational
[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. In this section we provide an extension of Lexicographic Closure to the
Datalog_ case.
5.1
      </p>
      <sec id="sec-4-1">
        <title>Lexicographic Closure for Propositional Logic</title>
        <p>
          We adapt the de nition of Lexicographic Closure for propositional logic
provided by Casini et al.[
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. The new de nition, in terms of the sub-algorithms
SubsetRank and LexicographicClosure, can easily be adapted for Datalog_.
        </p>
        <p>The SubsetRank algorithm, Algorithm 3, constructs a new ranking of
statements by using the base ranks R0; : : : ; Rn 1; R1 computed by the BaseRank
algorithm. It adds new rank levels Di;ni 1, Di;ni 2,..., Di;1 in between each
existing rank level Ri and Ri+1. Each level Di;j represents all the di erent ways
of removing jRij j statements from Ri. The Subsets(X; k) function nds all
possible subsets of size k &lt; n of a set X of size n.</p>
      </sec>
      <sec id="sec-4-2">
        <title>Algorithm 3: SubsetRank</title>
        <p>Input: A knowledge base K</p>
        <p>Output: An ordered tuple (R0; : : : ; Rk; R1; k + 1)
1 (B0; : : : ; Bm 1; B1; m) := BaseRank(K);
2 i := 0; k := 0;
3 repeat
4 for j := jBij to 1 do
5 Si;j := Subsets(Ri; j);
6 Di;j := WX2Si;j Vx2X x;
7 Rk := Di;j;
8 k := k + 1;
9 i := i + 1;
10 until i := m;
11 R1 := B1;
12 return (R0; : : : ; Rk; R1; k + 1)</p>
        <p>The LexicographicClosure algorithm ranks the statements in the input
knowledge base K using the SubsetRank algorithm. It then checks whether the
defeasible implication j is defeasibly entailed by K in a manner equivalent
to that used by the RationalClosure algorithm (LexicographicClosure is the
same as RationalClosure, barring the use of SubsetRank instead of BaseRank.)
5.2</p>
      </sec>
      <sec id="sec-4-3">
        <title>Lexicographic Closure for Datalog</title>
        <p>In section 5.2 we extend the Lexicographic Closure algorithm for the
propositional case to the Datalog case. We conclude the section by showing that our
extended algorithm is LM-rational.</p>
      </sec>
      <sec id="sec-4-4">
        <title>Rephrasing SubsetRank for Datalog The de nition of Lexicographic Clo</title>
        <p>sure for the propositional case cannot directly be applied to the Datalog case.
The statement Di;j is formed by combining statements from subset Si;j using ^
and _ connectives. It will violate Datalog_'s syntax if Si;j contains multiple rules
or multiple subsets of facts. However, the statement Di;j can be transformed into
Conjunctive Normal Form (CNF) Di;j := D1 ^ D2 ^ : : : ^ Dn, where:
Di := :ai;1 _ : : : _ :ai;ri _ bi;1 _ : : : _ bi;si
:= :(ai;1 ^ : : : ^ ai;ri ) _ (bi;1 _ : : : _ bi;si )
:= ai;1 ^ : : : ^ ai;ri ! bi;1 _ : : : _ _bi;si
:= i^ ! i_</p>
        <p>Thus, Di;j can be rewritten as a conjunction of Disjunctive Datalog rules.
Checking entailment from a conjunction of rules is equivalent to checking
entailment from a set of the same rules. Hence, we can replace each statement Di;j
with a set of Datalog_ rules. On line 7 of the SubsetRank algorithm, Algorithm
3, we now set Rk := RNF(Di;j). The Rule Normal Form function RNF( ) takes an
\extended" Disjunctive Datalog statement as input and does the following:
1. Computes the Conjunctive Normal Form CNF( ).
2. Converts CNF( ) into a conjunction of clauses of the form ( 1^ ! 1_)^( 2^ !
2_) ^ : : : ^ ( k^ ! k_).
3. Converts the conjunction of clauses into a set of clauses f 1^ ! 1_; 2^ !
2_; : : : ; k^ ! k_g.
4. Returns the set of clauses.</p>
      </sec>
      <sec id="sec-4-5">
        <title>Rephrasing LexicographicClosure for Datalog LexicographicClosure is</title>
        <p>the same as RationalClosure for the Datalog_ case, with the exception that
the adapted SubsetRank algorithm is used to rank statements on line 1 instead
of the BaseRank algorithm.</p>
        <p>Proposition 3. The adapted LexicographicClosure algorithm is LM-rational.</p>
        <p>The adapted algorithms and proof of LM-rationality are provided in
Appendix C and D.
6.1</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Relevant Closure for Datalog</title>
      <sec id="sec-5-1">
        <title>Motivation for Relevant Closure</title>
        <p>
          Here, we give the de nition for Relevant Closure as provided by Casini et al. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
The algorithm is based on RationalClosure, with some slight changes. The
main idea behind it is that not all statements in a level are responsible for being
able to prove R1 [ R j= : , given the query j . This is the motivation for
only throwing away the \relevant" statements in a level.
6.2
        </p>
      </sec>
      <sec id="sec-5-2">
        <title>Algorithmic De nition</title>
        <p>
          The algorithm for Relevant Closure, provided by Casini et al. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], is de ned in
terms of ALC, a description logic. To make the algorithm easier to understand
and convert to Datalog, we will rst express it in terms of propositional logic.
        </p>
        <sec id="sec-5-2-1">
          <title>Algorithm 4: RelevantClosure</title>
          <p>Input: A knowledge base K, a defeasible implication</p>
          <p>&lt; R; R &gt; of K</p>
          <p>Output: true, if K j j , and false, otherwise
1 (R0; : : : ; Rn 1; R1; n) := BaseRank(K);
2 i := 0;
3 R0 := R;
4 while R1 [ R [ R0 j= : and R0 6= ; do
5 R0 := R0 n fRi \ Rg;
6 i := i + 1;
7 return R1 [ R
[ R0 j=
! ;
j
, and a partition</p>
          <p>In the partition &lt; R; R &gt; of K, R represents all statements relevant to the
query j . When throwing away statements from a level, the algorithm only
considers these statements in R as eligible for removal. We say that a statement
j is in the Relevant Closure of K if and only if the RelevantClosure
algorithm returns true when given j and K.
6.3</p>
        </sec>
      </sec>
      <sec id="sec-5-3">
        <title>De ning Relevance</title>
        <p>
          Now that the algorithm has been de ned, the only work remaining is to de ne
how to calculate the partition &lt; R; R &gt; for a given query j . Based on
the ideas explored by Casini et al. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], we would want R to contain exactly all
the statements used to prove : . To formalize this, we present a sequence of
de nitions to gradually build up the idea of relevance.
        </p>
      </sec>
      <sec id="sec-5-4">
        <title>De nition 1.</title>
        <p>is said to be exceptional for K if K j= : .</p>
        <p>De nition 2. Let K be a knowledge base, J K such that J only contains
defeasible implications, and a propositional sentence. Then J is said to be an
-justi cation w.r.t.K if is exceptional for J and for any J 0 J , is not
exceptional for J 0.</p>
        <p>De nition 3. For a sentence and knowledge base K, let
J K( ) = fJ j J is an -justi cation w.r.t. Kg. Then j is said to be in the
Basic Relevant Closure of K if it is in the Relevant Closure of K w.r.t. S J K( ).
6.4</p>
      </sec>
      <sec id="sec-5-5">
        <title>Minimal Relevant Closure</title>
        <p>It could be argued that for Basic Relevant Closure, we are still considering too
many statements as relevant to the query. This is because we consider all the
statements in all -justi cations as relevant to proving that is exceptional.
However, we could instead consider only the statements of minimal rank from
each -justi cation as relevant, and still x the exceptionality of .
De nition 4. For some set of justi cations J K, let JmKin = f j j
rK( ) rK( ) for every j 2 J g.</p>
        <p>For a sentence , let JmKin( ) = SJ 2J K( ) JmKin.</p>
        <p>Then j is said to be in the Minimal Relevant Closure of K if it is in
the Relevant Closure of K w.r.t. S JmKin( ).
6.5</p>
      </sec>
      <sec id="sec-5-6">
        <title>Relevant Closure for Datalog</title>
        <p>In terms of adapting the RelevantClosure algorithm for Datalog, no further
work needs to be done beyond what has already been said for Rational Closure.
To de ne a molecule being exceptional, we simply need to be able to check
entailment of negated molecules, which is something we already know how to do.
The remainder of the de nitions for both Basic and Minimal Relevant Closure
only entail manipulating sets and checking the rankings of statements.
6.6</p>
      </sec>
      <sec id="sec-5-7">
        <title>LM-Rationality</title>
        <p>
          For this, we will use Minimal Relevant Closure as the de nition for Relevant
Closure. As shown by Casini et al. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], Relevant Closure for propositional logic
satis es the properties Ref, LLE, And, and RW, and does not satisfy Or, CM,
or RM. We will show that the same holds true for Relevant Closure for Datalog.
        </p>
        <p>Let us consider the proofs that show that Rational Closure ful lls the KLM
properties of Ref, RW, and And. The only di erence RelevantClosure has from
RationalClosure is the inclusion of the \relevance partition". Thus, the proofs
can be re-used without editing, provided that the relevance partition is the same
throughout the various queries.</p>
        <p>The relevance partition is fully determined by the antecedent of the query
(e.g. in j ), as can be seen in the de nition of Minimal Relevant Closure.
In the aforementioned properties, the antecedent is the same in all queries made
to the algorithm. Hence, the proofs can be directly re-used to show that Relevant
Closure ful lls the KLM properties of Ref, RW, and And.</p>
        <p>
          The proof for satisfaction of the property LLE and the counter-examples for
satisfaction of the properties Or, CM, and RM can be found in Appendix F.
The counter-examples were adapted from the ALC case [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusions</title>
      <p>The main focus of this paper was to provide versions of defeasible reasoning
for Disjunctive Datalog. To be able to express the KLM properties and the
algorithm in Datalog, we motivated for extensions that would have to be made
to the syntax and semantics of Datalog. We proved that Rational Closure for
Datalog was LM-rational (i.e. it conforms to the KLM properties).</p>
      <p>We introduced Relevant Closure and Lexicographic Closure as alternatives
for computing defeasible entailment and adapted both of the algorithms for
Datalog. We found that Lexicographic Closure is still LM-rational, but that
Relevant Closure does not satisfy some of the KLM properties.
8</p>
    </sec>
    <sec id="sec-7">
      <title>Future Work</title>
      <p>Future work on this topic would most likely include nding a semantic de
nition of Rational Closure for Datalog, based on minimal models. Other future
work could include an attempted adaptation of the Relevant Closure method for
computing defeasible entailment, done in such a way that it satis es the KLM
properties, while still maintaining the basic ideas of Relevant Closure.</p>
      <p>
        As another option, Casini et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] showed that LM-rationality is necessary
but not su cient. The additional properties for Basic Defeasible Entailment
proposed by Casini et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] can be extended to Datalog. Furthermore, other
properties that are speci c to defeasible entailment for Datalog should be explored.
Finally, there is also potential for an implementation of defeasible reasoning in
Datalog. In a paper submitted to this conference, Harrison and Meyer present
an implementation of a defeasible Datalog reasoner for Rational Closure.
9
      </p>
    </sec>
    <sec id="sec-8">
      <title>Appendices</title>
      <p>This full paper, with appendices, can be accessed online here.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Ben-Ari</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          : Mathematical Logic for Computer Science. Springer Science &amp; Business
          <string-name>
            <surname>Media</surname>
          </string-name>
          , Rehovot, Israel (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Casini</surname>
          </string-name>
          , G., Meyer, T.,
          <string-name>
            <surname>Moodley</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nortje</surname>
          </string-name>
          , R.:
          <article-title>Relevant closure: A new form of defeasible reasoning for description logics</article-title>
          .
          <source>In: JELIA 2014: Logics in Arti cial Intelligence</source>
          . pp.
          <volume>92</volume>
          {
          <fpage>106</fpage>
          . Springer, Funchal, Madeira, Portugal (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Casini</surname>
          </string-name>
          , G., Meyer, T.,
          <string-name>
            <surname>Moodley</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Varzinczak</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Towards practical defeasible reasoning for description logics</article-title>
          .
          <source>In: Proceedings of the 26th International Workshop on Description Logics</source>
          . pp.
          <volume>587</volume>
          {
          <fpage>599</fpage>
          . CEUR Workshop Proceedings, Ulm, Germany (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Casini</surname>
          </string-name>
          , G., Meyer, T.,
          <string-name>
            <surname>Varzinczak</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Taking defeasible entailment beyond rational closure</article-title>
          .
          <source>In: JELIA 2019: Logics in Arti cial Intelligence</source>
          . pp.
          <volume>182</volume>
          {
          <fpage>197</fpage>
          . Springer, Rende, Italy (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Ceri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tanca</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>What you always wanted to know about datalog (and never dared to ask)</article-title>
          .
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>1</volume>
          ,
          <issue>146</issue>
          {
          <fpage>166</fpage>
          (
          <year>1989</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Freund</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Preferential reasoning in the perspective of Poole default logic</article-title>
          .
          <source>Articial Intelligence</source>
          <volume>98</volume>
          ,
          <fpage>209</fpage>
          {
          <fpage>235</fpage>
          (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Genesereth</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eric</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          : Introduction to Logic. Morgan &amp; Claypool, Stanford, California (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Kraus</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Magidor</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Nonmonotonic reasoning, preferential models and cumulative logics</article-title>
          .
          <source>Arti cial Intelligence</source>
          <volume>44</volume>
          ,
          <fpage>167</fpage>
          {
          <fpage>207</fpage>
          (
          <year>1990</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Another perspective on default reasoning</article-title>
          .
          <source>Annals of Mathematics and Arti cial Intelligence</source>
          <volume>15</volume>
          (
          <issue>1</issue>
          ),
          <volume>61</volume>
          {
          <fpage>82</fpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Magidor</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>What does a conditional knowledge base entail?</article-title>
          <source>Articial Intelligence</source>
          <volume>55</volume>
          ,
          <issue>1</issue>
          {
          <fpage>60</fpage>
          (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Moodley</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Practical Reasoning for Defeasible Description Logics</article-title>
          .
          <source>Ph.D. thesis</source>
          , University of KwaZulu-Natal (
          <year>2015</year>
          ). https://doi.org/10.31237/OSF.IO/DW5P2, https://thesiscommons.org/dw5p2/
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Pasarella</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lobo</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>A Datalog Framework for Modeling Relationshipbased Access Control Policies</article-title>
          .
          <source>In: Proceedings of the 22nd ACM on Symposium on Access Control Models and Technologies - SACMAT '17 Abstracts</source>
          . pp.
          <volume>91</volume>
          {
          <fpage>102</fpage>
          . ACM Press, New York, New York, USA (
          <year>2017</year>
          ). https://doi.org/10.1145/3078861.3078871
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Shkapsky</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Interlandi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chiu</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Condie</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaniolo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Big Data Analytics with Datalog Queries on Spark</article-title>
          .
          <source>In: Proceedings of the 2016 International Conference on Management of Data - SIGMOD '16</source>
          . pp.
          <volume>1135</volume>
          {
          <fpage>1149</fpage>
          . ACM Press, New York, New York, USA (
          <year>2016</year>
          ). https://doi.org/10.1145/2882903.2915229, http://dl.acm.org/citation.cfm?doid=
          <volume>2882903</volume>
          .
          <fpage>2915229</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Straccia</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Casini</surname>
          </string-name>
          , G.:
          <article-title>Defeasible inheritance-based description logics</article-title>
          .
          <source>Journal of Arti cial Intelligence Research</source>
          <volume>48</volume>
          ,
          <volume>415</volume>
          {
          <fpage>473</fpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>