<!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>Well Founded Semantics for P2P Deductive Databases</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>DIMES, University of Calabria</institution>
          ,
          <addr-line>87036 Rende</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper stems from previous works of the same authors in which a declarative semantics for Peer-to-Peer (P2P) systems, de ned in terms of Preferred Weak Models, is proposed. Under this semantics only facts not making the local databases inconsistent can be imported. As in the general case a P2P system may admit many preferred weak models whose computational complexity is prohibitive, the paper looks for a more pragmatic solution. It assigns to a P2P system its Well Founded Model, a partial deterministic model that captures the intuition that if an atom is true in a preferred weak model, but it is false in another one, then it is unde ned in the well founded model.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Di erent works investigate topic related to the integration of information and
the computation of queries in P2P systems [
        <xref ref-type="bibr" rid="ref16 ref18 ref2 ref23 ref25 ref5 ref6 ref8">5, 6, 18, 23, 25, 8, 2, 16</xref>
        ]. This paper
follows the proposal in [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ] in which the Preferred Weak Semantics has been
proposed. Under this semantics only facts not making the local databases
inconsistent can be imported, and the preferred weak models are the consistent
scenarios in which peers import maximal sets of facts not violating constraints.
Example 1. Consider a P2P in which the peer: (i) P3 contains two atoms: r(a)
and r(b); (ii) P2 imports data from P3 using the (mapping) rule q(X) - r(X)
(Please, note the special syntax we use for mapping rules.). Moreover imported
atoms must satisfy the constraint q(X); q(Y ); X 6= Y stating that the relation
q may contain at most one tuple; (iii) P1 imports data from P2, using the
(mapping) rule p(X) - q(X). P1 also contains the rules s p(X) stating that
s is true if the relation p contains at least one tuple, and t p(X); p(Y ); X 6= Y ,
stating that t is true if the relation p contains at least two distinct tuples. The
intuition is that, with r(a) and r(b) true in P3, either q(a) or q(b) could be
imported in P2 and, consequently, only one tuple is imported in the relation p of
the peer P1. Note that whatever is the derivation in P2, s is derived in P1 while
t is not derived. Therefore, s and t are, respectively, true and false in P1. 2
Copyright c 2019 for the individual papers by the papers authors. Copying
permitted for private and academic purposes. This volume is published and copyrighted by
its editors. SEBD 2019, June 16-19, 2019, Castiglione della Pescaia, Italy.
A P2P system may admits many preferred weak models and the computational
complexity is prohibitive. Therefore, a more pragmatic solution is needed. This
paper presents the Well Founded Model Semantics : a deterministic model a
deterministic model whose computation is polynomial time. As for future extension
we plan to extend the semantics of P2P system by considering logic programs
with function symbols [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>P2P Systems: Syntax and Semantics</title>
      <p>
        Familiarity is assumed with deductive database [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], logic programming, stable
models, head cycle free (HCF) program, well founded model and computational
complexity [
        <xref ref-type="bibr" rid="ref17 ref21 ref22 ref24">17, 21, 22, 24</xref>
        ]. A (peer) predicate symbol is a pair i : p, where i is a
peer identi er and p is a predicate symbol. A (peer) atom is of the form i : A,
where i is a peer identi er and A is a standard atom. A (peer) literal is a peer
atom i : A or its negation not i : A. A conjunction i : A1; : : : ; i : Am; not i :
Am+1; : : : ; not i : An; , where is a conjunction of built-in atoms, will be also
denoted as i : B, with B equals to A1; : : : ; Am; not Am+1; : : : ; not An; .
A (peer) rule can be of one of the following three types:
{ standard rule. It is of the form i : H i : B, where i : H is an atom
and i : B is a conjunction of atoms and built-in atoms.
{ integrity constraint. It is of the form i : B, where i : B is a
conjunction of literals and built-in atoms.
{ mapping rule. It is of the form i : H - j : B, where i : H is an atom,
j : B is a conjunction of atoms and built-in atoms and i 6= j.
i : H is called head while i : B (resp. j : B) is called body. Negation is allowed just
in the body of integrity constraints. The de nition of a predicate i : p consists of
the set of rules in whose head the predicate symbol i : p occurs. A predicate can be
of three di erent kinds: base predicate, derived predicate and mapping predicate.
A base predicate is de ned by a set of ground facts; a derived predicate is de ned
by a set of standard rules and a mapping predicate is de ned by a set of mapping
rules. An atom i : p(X) is a base atom (resp. derived atom, mapping atom) if
i : p is a base predicate (resp. standard predicate, mapping predicate). Given
an interpretation M , M [D] (resp. M [LP], M [MP]) denotes the subset of base
atoms (resp. derived atoms, mapping atoms) in M .
      </p>
      <p>De nition 1. P2P System. A peer Pi is a tuple hDi; LPi; MPi; ICii, where
(i) Di is a set of facts (local database); (ii) LPi is a set of standard rules; (iii) MPi
is a set of mapping rules and (iv) ICi is a set of constraints over predicates de ned
by Di, LPi and MPi. A P2P system PS is a set of peers fP1; : : : ; Png. 2
Given a P2P system PS = fP1; : : : ; Png, where Pi = hDi; LPi; MPi; ICii,
D; LP; MP and IC denote, respectively, the global sets of ground facts,
standard rules, mapping rules and integrity constraints, i.e. D = Si2[1::n] Di, LP =
Si2[1::n] LPi, MP = Si2[1::n] MPi and IC = Si2[1::n] ICi. In the rest of this
paper, with a little abuse of notation, PS will be also denoted both with the
tuple hD; LP; MP; ICi and the set D [ LP [ MP [ IC.</p>
      <p>
        We now review the Preferred Weak Model semantics in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. For each peer Pi =
hDi; LPi; MPi; ICii, the set Di [ LPi is a positive normal program, thus it
admits just one minimal model that represents the local knowledge of Pi. It is
assumed that each peer is locally consistent, i.e. its local knowledge satis es ICi
(i.e. Di [ LPi j= ICi). Therefore, inconsistencies may be introduced just when
the peer imports data. The intuitive meaning of a mapping rule i : H - j : B 2
MPi is that if the body conjunction j : B is true in the source peer Pj the atom
i : H can be imported in Pi only if it does not imply (directly or indirectly) the
violation of some constraint in ICi.
      </p>
      <p>Given a mapping rule r = H - B, the corresponding standard logic rule H
B will be denoted as St(r). Analogously, given a set of mapping rules MP,
St(MP) = fSt(r) j r 2 MPg and given a P2P system PS = D [ LP [ MP [ IC,
St(PS) = D [ LP [ St(MP) [ IC.</p>
      <p>Given an interpretation M , an atom H and a conjunction of atoms B:
- valM (H B) = valM (H) valM (B),
- valM (H - B) = valM (H) valM (B).</p>
      <p>Therefore, if the body is true, the head of a standard rule must be true, whereas
the head of a mapping rule could be true. Intuitively, a weak model M is an
interpretation that satis es all standard rules, mapping rules and constraints of
PS and such that each atom H 2 M [MP] (i.e. each mapping atom) is supported
from a mapping rule H - B whose body B is satis ed by M . A preferred weak
model is a weak model containing a maximal subset of mapping atoms.
De nition 2. (Preferred) Weak Model. Given a P2P system PS =
D [ LP [ MP [ IC, an interpretation M is a weak model for PS if fM g =
MM(St(PSM )), where PSM is the program obtained from ground(PS) by
removing all mapping rules whose head is false w.r.t. M . Given two weak models
M and N , M is said to preferable to N , and is denoted as M w N , if M [MP]
N [MP]. Moreover, if M w N and N 6w M , then M = N . A weak model M is
said to be preferred if there is no weak model N such that N = M . The set of
weak models for a P2P system PS will be denoted by WM(PS), whereas the
set of preferred weak models will be denoted by PWM(PS). 2
Theorem 1. For every consistent P2P system PS, PWM(PS) 6= ;.
Example 2. Consider a P2P system PS in which the peer: P2 contains the facts
q(a) and q(b), whereas P1 contains the mapping rule p(X) - q(X) and the
constraint p(X); p(Y ); X 6= Y . WM(PS) are: M0 = fq(a); q(b)g, M1 =
fq(a); q(b); p(a)g and M2 = fq(a); q(b); p(b)g, whereas PWM(PS) are M1 and
M2 as they import maximal sets of atoms from P2. 2</p>
    </sec>
    <sec id="sec-3">
      <title>Computing the Preferred Weak Model Semantics</title>
      <p>This section presents an alternative characterization of the preferred weak model
semantics, that allows to model a P2P system PS with a single logic program
Rewt(PS). Let's rstly introduce some preliminaries. Given an atom A = i :
p(x), At denotes the atom i : pt(x) and Av denotes the atom i : pv(x). At will
be called the testing atom, whereas Av will be called the violating atom.
De nition 3. Given a conjunction
B = A1; : : : ; Ah; not Ah+1; : : : ; not An; B1; : : : ; Bk; not Bk+1; : : : ; not Bm; (1)
where Ai (i 2 [1:: n]) is a mapping atom or a derived atom, Bi (i 2 [1:: m]) is a
base atom and is a conjunction of built in atoms, we de ne
Bt = At1; : : : ; Ath; not Ath+1; : : : ; not Atn; B1; : : : ; Bk; not Bk+1; : : : ; not Bm; (2)
Therefore, given a negation free conjunction B = A1; : : : ; Ah; B1; : : : ; Bk; : : : ; ,
then Bt = At1; : : : ; Ath; B1; : : : ; Bk; . In the following, the rewriting of a P2P
system is reported.</p>
      <p>De nition 4. Rewriting of an integrity constraint. Given an
integrity constraint i = B (that is of the form (1)) its rewriting is de ned
as Rewt(i) = fA1v _ : : : _ Avh Btg. 2
If Bt (of the form (2)), is true, at least one of the violating atoms A1v; : : : ; Avh is
true. Therefore, at least one of the atoms A1; : : : ; Ah cannot be inferred.
De nition 5. Rewriting of a standard rule. Given a standard rule s =
H B, its rewriting is de ned as Rewt(s) = fH B; Ht Bt; A1v_: : :_Avh
Bt; Hv g. 2
In order to nd the mapping atoms that, if imported, generate some
inconsistencies (i.e. in order to nd their corresponding violating atoms), all possible
mapping testing atoms are imported and the derived testing atoms are inferred.
In the previous de nition, if Bt is true and the violating atom Hv is true, then the
body of the disjunctive rule is true and therefore it can be deduced that at least
one of the violating atoms A1v; : : : ; Avh is true (i.e. to avoid such inconsistencies
at least one of atoms A1; : : : ; Ah cannot be inferred).</p>
      <p>De nition 6. Rewriting of a mapping rule. Given a mapping rule m =
H - B, its rewriting is de ned as Rewt(m) = fHt B; H Ht; not Hv g. 2
Intuitively, to check whether a mapping atom H generates some inconsistencies,
if imported in its target peer, a testing atom Ht is imported in the same peer.
Rather than violating some integrity constraint, it (eventually) generates, by
rules obtained from the rewriting of standard rules and integrity constraints, the
atom Hv. In this case H, cannot be inferred and inconsistencies are prevented.
De nition 7. Rewriting of a P2P system. Given a P2P system PS =
DSs[2LLPPRe[wMt(sP), R[eIwCt(,ItCh)en=: RSeiw2tI(CMRPew)t(=i) aSnmd2RMewPtR(PewSt)(=m)D, [RRewe wt(tL(LPP) )=[
Rewt(MP) [ Rewt(IC) 2
De nition 8. Total Stable Model. Given a P2P system PS and a stable
model M for Rewt(PS), the interpretation obtained by deleting from M its
violating and testing atoms, denoted as T (M ), is a total stable model of PS.
The set of total stable models of PS is denoted as T SM(PS). 2
Example 3. Consider the P2P system PS in Ex. 2. From Def. (7) we obtain:
Rewt(PS) =fq(a); q(b); pt(X) q(X); p(X) pt(X); not pv(X);
pv(X) _ pv(Y ) pt(X); pt(Y ); X 6= Y g
The stable models of Rewt(PS) are: M1 = fq(a); q(b); pt(a); pt(b); pv(a); p(b)g;
M2 = fq(a); q(b); pt(a); pt(b); p(a); pv(b)g. Then, the total stable models of PS
are T SM(PS) = ffq(a); q(b); p(b)g; fq(a); q(b); p(a)gg. 2
Theorem 2. For every P2P system PS, T SM(PS) = PWM(PS).
2
4</p>
    </sec>
    <sec id="sec-4">
      <title>Well Founded Semantics and Distributed Computation</title>
      <p>
        A P2P system may admit many preferred weak models whose computational
complexity has been shown to be prohibitive [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Therefore, a deterministic model
whose computation is guaranteed to be polynomial time is needed. In more
details, the rewriting presented in Section 3 allows modeling a P2P system by a
single disjunctive logic program. By assuming that this program is HCF, it can
be rewritten into an equivalent normal program for which a Well Founded Model
Semantics can be adopted. Such a semantics allows to compute in polynomial
time a deterministic model describing the P2P system, by capturing the intuition
that if an atom is true in a total stable (or preferred weak) model of PS and is
false in another one, then it is unde ned in the well founded model.
Theorem 3. Let PS = D [ LP [ MP [ IC be a P2P system, then Rewt(PS)
is HCF i there are not two distinct atoms occurring in the body of a rule in
ground(LP [ IC) mutually dependent by positive recursion. 2
we assume each P2P system PS is s.t. Rewt(PS) is HCF. PS will be called as
HCF P2P system. From previous hypothesis, it follows that Rewt(PS) can be
normalized as SM(Rewt(PS)) = SM(N ormalized(Rewt (PS))).
De nition 9. Rewriting of an HCF P2P system. Given an HCF P2P
system PS, Reww(PS) = N ormalized(Rewt(PS)). 2
Therefore, the preferred weak models of an HCF P2P system PS corresponds to
the stable models of the normal program Reww(PS). Next step is to adopt for
Reww(PS) a three-valued semantics that allows computing deterministic models
and in particular the well founded model.
      </p>
      <p>De nition 10. Well Founded Semantics. Given an HCF P2P system PS
and the well founded model of Reww(PS), say hT; F i, the well founded model
semantics of PS is given by hT (T ); T (F )i. 2
Example 4. The rewriting of the HCF P2P system PS in Example 3 is:
Reww(PS) =fq(a); q(b); pt(X) q(X); p(X) pt(X); not pv(X);
pv(X) pt(X); pt(Y ); X 6= Y; not pv(Y );
pv(Y ) pt(X); pt(Y ); X 6= Y; not pv(X)g
The well founded model of Reww(PS) is hfq(a); q(b); pt(a); pt(b)g; ;i and the
well founded semantics of PS is given by hfq(a); q(b)g; ;i. The atoms q(a) and
q(b) are true, while the atoms p(a) and p(b) are unde ned. 2
Theorem 4. Let PS be a HCF P2P system, then deciding: (i) whether an
interpretation M is a preferred weak model of PS is P -time; (ii) whether an atom
A is true in some preferred weak model of PS is N P-complete; (iii) whether
an atom A is true in every preferred weak model of PS is coN P-complete; (iv)
whether an atom A is true in the well founded model of PS is P -time. 2
Reww(PS) allows to compute the well founded semantics of PS in polynomial
time. In this section we present a technique allowing to compute the well founded
model in a distributed way. The basic idea is that each peer computes its own
portion of the \unique logic program", sending to the other peers the result.
De nition 11. Let PS= be an HCF P2P system, where Pi = hDi; LPi; MPi;
ICii, for i 2 [1::n]. Then, Reww(Pi) = Reww(Di [ LPi [ MPi [ ICi).
Previous de nition allows to derive a single normal logic program for each peer.
Observe that, Reww(PS) = Si2[1::n] Reww(Pi).</p>
      <p>Example 5. The rewritings located on peers P1 and P2 of Ex. 2 are:
Reww(P1) = fpt(X) q(X); p(X) pt(X); not pv(X);
pv(X) pt(X); pt(Y ); not pv(Y ); X 6= Y ;
pv(Y ) pt(X); pt(Y ); not pv(X); X 6= Y g:
Reww(P2) = fq(a); q(b)g:
2
The idea is the following: if a peer receives a query, then it will recursively query
the peer to which it is connected through mapping rules, before being able to
calculate its answer. Formally, a local query submitted by a user to a peer does
not di er from a remote query submitted by another peer. Once retrieved the
necessary data from neighbor peers, the peer computes its well founded model
and evaluates the query (either local or remote) on that model; then if the query
is a remote query, the answer is sent to the requesting peer. For the sake of
presentation, a partial model reports, using the syntax [T; U ], the sets of true
and unde ned atoms, instead of the sets of true and false atoms.
Example 6. Consider the P2P system in Example 2. If P1 receives the query
p(X), it submits the query p(X) to the peer P2. Once P2 receives the query
q(X), it computes its well founded model W2 = [fq(a); q(b)g; ;]. P1 receives
the data, populates its local database and computes its well founded model
W1 = [fpt(a); pt(b)g; fpv(a); pv(b); p(a); p(b)g] and nally, evaluates the query
p(X) over W1. The answer will be [;; fp(a); p(b)g]. Observe that, the peer replies
providing two unde ned atoms: p(a) and p(b). 2
Algorithm: ComputeAnsweri
input: 1) i : q(X) - a query</p>
      <p>2) s - a sender which is a peer Pk (remote query) or null (local query)
output: [T; U ] where T (resp. U ) is the set of true (resp. unde ned ) atoms
begin
while true
wait for an input i : q(X) and s;
P = Reww(Pi);
for each (i : h(X) - j : b(X)) 2 MPi
[T; U ] = ComputeAnswerj(j : b(X); Pi);</p>
      <p>P = P [ T [ fa not a j a 2 U g;
end for
[Tw; Uw] = ComputeW ellF oundedM odel(P );
answer = [fi : q(x) j i : q(x) 2 Twg; fi : q(x) j i : q(x) 2 Uwg];
if isN ull(s) then show(answer);
else send(answer; Pk);
end if
end while
end
We associate to a P2P system, PS, a graph g(PS) whose nodes are the peers
of PS and whose edges are the pairs (Pi; Pj) s.t. (i : H - j : B) 2 PS. We
say that PS is acyclic if g(PC) is acyclic. In order to guarantee the termination
of the computation, from now on we assume that our P2P systems are acyclic.
Without loss of generality, we assume that each mapping rule is of the form
i : p(X) - j : q(X). The behavior of the peer Pi = hDi; LPi; MPi; ICii within
the P2P system can be modeled by the algorithm ComputeAnsweri, running on
the peer Pi. It receives in input a query i : q(X) submitted by a sender s which
can be another peer or a user. For each mapping rule i : h(X) - j : b(X), the
peer Pi queries the peer Pj asking for j : b(X). Pi will receive true and unde ned
tuples that will enrich the local knowledge. Observe that, true atoms will be
simply inserted into P while for each unde ned atom a, a rule a not a allowing
to infer the correct truth value for a (unde ned) in the well founded model, is
inserted. Once the local knowledge has been updated, the local well founded
model is computed by means of the function ComputeW ellF oundedM odel and
the answer for the query is extracted. If the sender is a user then the answer is
simply shown, otherwise (if it is a peer) it is sent back to it. A system prototype
for query answering in a P2P network based on the proposed semantics has been
implemented. The system has been developed using Java.</p>
      <p>
        The communication among peers is performed by using JXTA libraries [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ].
XSB [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] is a logic programming and deductive database system used for
computing the answer to a given query using the well founded semantics. InterProlog
[
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] is an open source front-end that provides Java with the ability to interact
with XSB engine.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Abiteboul</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hull</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vianu</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <source>Foundations of Databases. Addison-Wesley</source>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bertossi</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Bravo</surname>
            ,
            <given-names>L. Query</given-names>
          </string-name>
          <article-title>Answering in Peer-to-Peer Data Exchange Systems</article-title>
          .
          <source>EDBT Workshops</source>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>M.</given-names>
            <surname>Calautti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Greco</surname>
          </string-name>
          ,
          <string-name>
            <surname>I.</surname>
          </string-name>
          <article-title>Trubitsyna: Detecting Decidable Classes of Finitely Ground Logic Programs with Function Symbols</article-title>
          .
          <source>ACM Trans. Comput. Log</source>
          .
          <volume>18</volume>
          (
          <issue>4</issue>
          ):
          <volume>28</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>28</lpage>
          :
          <fpage>42</fpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>M.</given-names>
            <surname>Calautti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Greco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Spezzano</surname>
          </string-name>
          ,
          <string-name>
            <surname>I.</surname>
          </string-name>
          <article-title>Trubitsyna: Checking termination of bottomup evaluation of logic programs with function symbols</article-title>
          .
          <source>TPLP</source>
          <volume>15</volume>
          (
          <issue>6</issue>
          ):
          <fpage>854</fpage>
          -
          <lpage>889</lpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Cal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <article-title>On the decidability and complexity of query answering over inconsistent and incomplete databases</article-title>
          .
          <source>PODS</source>
          ,
          <fpage>260</fpage>
          -
          <lpage>271</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <article-title>Logical foundations of peer-to-peer data integration</article-title>
          .
          <source>PODS</source>
          ,
          <fpage>241</fpage>
          -
          <lpage>251</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>A Logic Framework for P2P Deductive Databases</article-title>
          ,
          <string-name>
            <surname>TPLP</surname>
          </string-name>
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>Modeling Cooperation in P2P Data Management Systems</article-title>
          .
          <source>ISMIS</source>
          <year>2008</year>
          :
          <fpage>225</fpage>
          -
          <lpage>235</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          , P2P Deductive Databases:
          <article-title>Well Founded Semantics and Distributed Computation</article-title>
          .
          <source>ADBIS</source>
          <year>2017</year>
          :
          <fpage>91</fpage>
          -
          <lpage>99</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>A Declarative Semantics for P2P Systems</article-title>
          . CD-MAKE
          <year>2017</year>
          :
          <fpage>315</fpage>
          -
          <lpage>329</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>Computing a Deterministic Semantics for P2P Deductive Databases</article-title>
          .
          <source>IDEAS</source>
          <year>2017</year>
          :
          <fpage>184</fpage>
          -
          <lpage>191</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>P2P deductive databases: a system prototype</article-title>
          .
          <source>iiWAS</source>
          <year>2017</year>
          :
          <fpage>258</fpage>
          -
          <lpage>265</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <source>Integration of Unsound Data in P2P Systems. ADBIS</source>
          <year>2018</year>
          :
          <fpage>278</fpage>
          -
          <lpage>290</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>Generalized Maximal Consistent Answers in P2P Deductive Databases</article-title>
          .
          <source>DEXA (2)</source>
          <year>2016</year>
          :
          <fpage>368</fpage>
          -
          <lpage>376</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Caroprese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zumpano</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <article-title>A Deterministic Model for P2P Deductive Databases</article-title>
          .
          <source>IDEAS</source>
          <year>2016</year>
          :
          <fpage>193</fpage>
          -
          <lpage>198</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Franconi</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuper</surname>
            ,
            <given-names>G. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lopatenko</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaihrayeu</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <article-title>A Robust Logical and Computational Characterisation of Peer toPeer Database Systems</article-title>
          . DBISP2P,
          <fpage>64</fpage>
          -
          <lpage>76</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Gelfond</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lifschitz</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <article-title>The Stable Model Semantics for Logic Programming</article-title>
          ,
          <source>Proc. Fifth Conf. on Logic Programming</source>
          ,
          <fpage>1070</fpage>
          -
          <lpage>1080</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Halevy</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ives</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Suciu</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Tatarinov</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <article-title>Schema mediation in peer data management systems</article-title>
          .
          <source>int. Conf. on Database Theory</source>
          , pages
          <fpage>505</fpage>
          -
          <lpage>516</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>19. InterProlog. http://www.declarativa.com/interprolog/.</mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Project</surname>
            <given-names>JXTA</given-names>
          </string-name>
          , http://www.jxta.org/.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Lonc</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Truszczynski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <article-title>On the Problem of Computing the Well-Founded Semantics</article-title>
          .
          <source>Computational Logic</source>
          <year>2000</year>
          :
          <fpage>673</fpage>
          -
          <lpage>687</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <given-names>J. W.</given-names>
            <surname>Lloyd</surname>
          </string-name>
          ,
          <source>Foundations of Logic Programming</source>
          . Springer-Verlag,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <surname>Madhavan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Halevy</surname>
            ,
            <given-names>A. Y.</given-names>
          </string-name>
          ,
          <article-title>Composing mappings among data sources</article-title>
          .
          <source>VLDB</source>
          ,
          <fpage>572</fpage>
          -
          <lpage>583</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Papadimitriou</surname>
            ,
            <given-names>C. H.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Computational</given-names>
            <surname>Complexity</surname>
          </string-name>
          . Addison-Wesley,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <surname>Tatarinov</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          , Halevy.,
          <string-name>
            <surname>A.</surname>
          </string-name>
          ,
          <article-title>E cient Query reformulation in Peer Data Management Systems</article-title>
          , SIGMOD, pages
          <fpage>539</fpage>
          -
          <lpage>550</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>26. XSB Project. http://xsb.sourceforge.net.</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>