1992_Adding Epistemic Operators to Concept Languages
1992_Adding Epistemic Operators to Concept Languages
net/publication/2275964
CITATIONS READS
57 80
5 authors, including:
All content following this page was uploaded by Francesco M. Donini on 31 May 2013.
someone that is known to be loved by susan that is straint system, and let be an ALC -knowledge base.
not known to be married? Answer: YES (peter). (I ; W ; ) is a solution of S if (I ; W ; ) satis es all of
The answer to Query 1 is justi ed by the explicit as- its constraints. S is said to be -solvable if there is a
sertion 9FRIEND.Male(susan). The answer to Query triple (I ; M(); ) that is a solution of S . If there is
2 is explained by the fact that fp j ( (susan); p) 2 no such solution, then S is said to be -unsolvable.
(KFRIEND)I W g is empty, for any model (I ; W ) of
;
Given an ALC -knowledge base , we de ne S to be
1 . In other words, the knowledge base knows that the constraint system that includes one constraint a: C
susan has a male friend, but it does not know who for each assertion C (a) of , and one constraint aRb
he is, and therefore, when taking the intersection of for each assertion R(a; b) of (see [8]). The next
the extensions of FRIEND in the models of 1 , all the proposition shows that answering a query posed to a
pairs ( (susan); p) are ruled out. On the other hand, knowledge base can be reduced to checking a par-
the answer to Query 3 is YES, since the knowledge ticular constraint system for -solvability.
base knows that susan loves peter, and it does not
know that peter is married, because peter is not in Proposition 3.1 Let be an ALC-knowledge base,
(KMarried)I W . ;
C be an ALCK-concept, and a an individual. Then
j C (a) i S [ fa: :C g is -unsolvable.
3 The Calculus for Query Answering An ALCK-concept is said to be simple if every comple-
The problem of designing methods for epistemic query ment appearing in it is either of the form :A or of the
answering is dealt with in [10, 16]. In [16], a procedure form :KC , where C is simple. Every ALCK-concept
is presented that is sound and complete if the query can be rewritten in linear time into an equivalent sim-
satis es some syntactic constraints. However, not all ple concept. In the rest of the paper we assume to deal
epistemic concepts belonging to ALCK satisfy such only with simple concepts.
constraints (for example, the formula corresponding to We say that wRz holds in a constraint system S if
9P .:KC (a) is not admissible in [16]). On the other either
hand, the method proposed in [10] has been conceived
within a more general framework, and its specializa- 1. R is P , and wPz 2 S , or
tion to the case of concept languages does not provide 2. R is KP , w; z 2 O, and wPz 2 S .
an e ective procedure. It follows that none of these
approaches can be directly applied in our setting. When checking the satis ability of a constraint sys-
As we said in Section 2, one way to answer epis- tem, the following set of completion rules are used (S
temic queries posed to an ALC -knowledge base denotes a constraint system):
1. S !u fw: C1; w: C2g [ S 4. S contains a constraint of the form a: :KC , and
if w: C1 u C2 is in S , and w: C1 and every completion of S [ fa: :C g contains a -
w: C2 are not both in S ; clash;
2. S !t fw: Dg [ S 5. S contains a constraint of the form aKPb, and
if w: C1 t C2 is in S , neither w: C1 aPb 62 S ;
nor w: C2 is in S , 6. S contains x: :KC , x: KC , xKPy, or wKPx,
and D = C1 or D = C2; and for each a 2 O [ fg, every completion of
3. S !9 fwRx; x: C g [ S S [x=a] contains a -clash, where is an individ-
S
then we denote by S [x=a] the constraint system ob- contain any -clash (there must be such an a,
tained from S by substituting every occurrence of the otherwise S would contain a clash of type 6);
variable x with the individual a. (x) = p if x is not involved in any epistemic con-
We now introduce the notion of -clash, which intu- straint, and p is any parameter that is assigned by
itively corresponds to an explicit contradiction in con- neither to an individual in O nor to a variable
y in S such that y 6= x.
S
k, by the induction hypothesis H1 and by Proposi- that (a) 62 J2M() C J M(). It follows that the
;
tion 3.2, S [ fa: :C g is -solvable, which means constraint a: KC cannot be satis ed by any triple
that there is a model J of , such that (a) 2 (I ; M(); ), and therefore S is -unsolvable.
(:C )J M(), andT hence (a) 62 C J M(). Since J 2
; ;
4, 5. If S contains a -clash of the form a: :KC or of
M(), (a) 62 J2M() C J M() , hence, by de ni-
;
the form aKPb, then we can proceed analogously to
tion of (KC )I M(), (a) 62 (KC )I M(). Therefore,
; ; case 3.
(I ; M(); ) satis es a: :KC . 6.1. Suppose S contains a constraint of the form
Consider any constraint of the form a: KC . Since x: :KC , and for each a 2 O [ fg, S [x=a] contains a
-clash, where is an individual in O not appearing in
S
(notice that by the construction of , S [x=a] does lution of S [x=b] too, which means both that the con-
not contain any -clash). Since S [x=a] does not con- straint b: :KC is satis ed by (I ; M(); )|i.e. that
tain any -clash, every completion of S [ fa: :C g S [ fb: :C g is -solvable|and that every constraint
contains a clash. Recall from theTprevious case that in S [x=b] n fb: :KC g is satis ed by (I ; M(); )|i.e.
the last condition implies (a) 2 J2M() C J M(),
;
S [x=b] n fb: :KC g is -solvable|which is a contradic-
and hence (a) 2 (KC )I M(). It follows that
;
tion.
(x) 2 (KC )I M(), that is, (I ; M(); ) satis es
;
Let us assume that the triple (I ; M(); ) is a solution
x: KC . The other forms of epistemic constraints, of S , with (x) = p, and there is no b 2 O such that
namely x: :KC , xKPy, and wKPx can be treated S
(b) = p. It is possible to show that in this case there is
analogously. a solution (I 0 ; M() ; 0) of S0 such that 0 (x) = ().
Now consider the following induction hypotesis H2: 0
It follows that (I ; M(); ) is a solution of S [x=],
for every proper subconcept D of a concept C , every too, which is again a contradiction as in the previous
constraint z : D is satis ed by (I ; M(); ). case.
Suppose w: C is in S and C has the form D u E . 6.2, 6.3, 6.4. If S contains a -clash of the form x: KC ,
Since S is complete, both w: D and w: E are in S . xKPy, or wKPx, then we can proceed analogously to
By the induction hypothesis H2, (I ; M(); ) satis es case 6.1.
both constraints, and therefore, (I ; M(); ) satis es
w: D u E too. The remaining forms of constraints, The results reported in [1] show that it is decidable
namely, E t D; 9R.D, and 8R.D, can be treated anal- whether a constraint system that does not include any
ogously. epistemic constraint is -solvable. In particular, it
is shown that the number of completions obtainable the presence of the K operator, the satis ability of
from such a system is nite. Based on this fact, one constraint systems obtained from the precompletion
can easily prove that the number of completions of an cannot be done by considering the constraints on each
ALCK-constraint system is also nite. Observe that, individual separately. For example, the satis ability
in order to decide whether a complete constraint sys- of a constraint of the form a: 9KP .KC depends on
tem S has a -clash or not, a nite number of - the assertions on other individuals in the knowledge
satis ability checks suces, each involving a constraint base. For instance, its satis ability follows from the
system whose number of epistemic constraints is less two assertions: P (a; b) and C (b).
than the number in S . Therefore, one can show by In the calculus shown in Section 3, this possibility is
induction that the above rules provide us with an al- taken into account by the condition for a -clash of
gorithm for checking an ALCK-constraint system for type 6. In fact, getting back to the above example, the
-solvability. constraint a: 9KP .KC is processed creating the two
Proposition 3.5 Let be an ALC-knowledge base. constraints aKPx and x: KC , and checking whether x
Then it is decidable whether an ALCK constraint sys- can be substituted with an individual without running
tem S is -solvable or not. into a clash.
Nevertheless, answering ALCK-queries can be done in
This in turn implies that we have an e ective method PSPACE. In fact, it is still possible to devise an algo-
both for checking whether j C (a), and for com- rithm that uses polynomial space by keeping a table
puting the answer set of C w.r.t. . The next section with the information concerning substitutions. Such
discusses in more detail the computational complexity a table has a boolean value for every subconcept of
of the method. and of the query C , and every individual in O . The
value of an entry (D; a) is true whenever the comple-
tion process of S [ fa: :C g would add the constraint
4 Complexity and Expressiveness a: D as the result of a substitution [x=a] in a constraint
x: D. Notice that a table represents the set of con-
In this section we rst address the computational com- straints on individuals that are common to all traces
plexity of answering ALCK-queries. Then we discuss of a completion.
how the epistemic operator can be used in the for- The algorithm generates a table and then considers the
mulation of interesting queries to an ALC -knowledge constraint system S [fa: :C g[ T , where T is the set
base. of constraints represented by the table. At this point
Using a technique based on constraint systems, both the algorithm performs the same two steps of the algo-
satis ability and subsumption of ALC -concepts are rithm for ALC , but for a more complex veri cation of
are proved in [18] to be PSPACE-complete problems. clashes in the traces, where all the six types described
That paper also presents a linear space algorithm for in the previous section are considered. Clashes of type
these problems. The basic idea behind the algorithm 1,2,5 are found by inspection. Clashes of type 3,4 re-
is that, although the whole constraint system involved quire a recursive call to the algorithm. Finally in the
in the computation may have exponential size, it is check of clashes of type 6, substitutions which intro-
possible to keep track of only a polynomial part of it duce constraints not already present in the table are
at a time. These parts, called traces, are mutually in- disallowed. If there are no allowed substitutions lead-
dependent, and can be checked for a clash separately. ing to a trace with no -clash, the table is discarded
In [1] a PSPACE algorithm for checking the satis abil- and the algorithm restarts with a new one. If no ta-
ity of an ALC -knowledge base is given, which again ble leads to the construction of a completion with no
is based on the constraint system calculus. Since for -clash, the constraint system S [ fa: :C g is not -
any ALC -concept C we have j= C (a) if and only solvable.
if the ALC -knowledge base [ f:C (a)g is unsatis - The size of the table is polynomially bounded by
able, it follows that answering ALC -queries to an ALC - (jj + jC j) jOj, where jj, jC j and jO j denote the
knowledge base can be done in polynomial space, too. size of , C and O, respectively. Since each recur-
The algorithm for deciding the satis ability of ALC sive call requires a new table but reduces the number
knowledge bases consists of two steps: in the rst one, of K operators, the number of tables that are simul-
which we call precompletion, all the information re- taneously needed is bounded by the nesting of the K
garding each individual is collected in a single con- operator. Therefore, we can conclude that adding the
straint; in the second step these constraints are sep- K operator to the query language does not change the
arately tested for satis ability using the linear-space complexity class of query answering.
algorithm for concept satis ability given in [18]. Proposition 4.1 Let be an ALC-knowledge base,
However, when the query is an ALCK-concept, the C be an ALCK concept, and a be an individual. Then
above method is no longer valid. In fact, because of checking whether j C (a) is PSPACE-complete.
The analysis of the query answering algorithm allows that 1 6j= Married u 9LOVES.:Married(peter), and
us to make an interesting comparison between reason- since 1 6j= 9LOVES.:Married(susan), it follows that
ing with epistemic concepts and reasoning with con- 1 6j= Married u 9LOVES.:Married(susan).
cepts involving collections of individuals. A construct Reasoning in this way would lead to the answer NO.
for collection of individuals, sometimes called \ONE- On the contrary, the correct answer to the query
OF," has been considered in [2] and [9]. If a1; : : :; a is YES, and in order to nd it, one needs to rea-
are individuals, then the concept fa1; : : :; a g is inter-
n
n
preted as the set consisting of the elements denoted son by case analysis. In fact, the query asks if
by a1; : : :; a . Now, the intuition is that a concept in every model M of 1 there is an individual,
of the form KC can be considered equivalent to the
n
say z , such that FRIEND(john; z ), Married(z ), and
concept fa1; : : :; a g, where a1 ; : : :; a are exactly the 9LOVES.:Married(z ) are true in M . Obviously, in
individuals for which j= C (a ) holds. Indeed, we
n n
every model M of 1 , either Married(peter) or
have proved that if L is any sublanguage of ALC , LK is
i
:Married(peter) is true. In the rst case, it is easy to
the language obtained from L by adding the constructs see that z is simply peter (and the unmarried person
KC , :KC , and KP , and LO is the language obtained he loves is mary), while in the second case z is susan
from L by adding the constructs fa1 ; : : :; a g and (and the unmarried person she loves is just peter).
:fa1; : : :; a g for concepts, and f(a1; b1); : : :; (a ; b )g
n
Therefore, such an individual z exists in every model
for roles, then the two problems of querying an L-
n n n
of 1 , and the query gets the answer YES.
knowledge base using LK-concepts and using LO- Note that, even if none of the individuals related to the
concepts are in the same complexity class. In particu- individual john through the role FRIEND is in the con-
lar, Proposition 4.1 implies that reasoning in ALCO is dition requested by the query, it happens that the com-
PSPACE-complete, which represents a new complexi- bination of the assertions on the individuals (susan
ty result for concept languages. and peter) in the knowledge base is such that in ev-
ery model either one or the other is in that condition.
The previous considerations allow us to conclude that On the other hand, Query 5 asks whether there
the use of epistemic operators does not substantially is an individual, say z , such that in every model
increase the complexity in query answering. This is M 2 M(1 ), both FRIEND(john; z ) and Married u
extremely interesting, especially in light of the greater 9LOVES.:Married(z ) are true. It is easy to see that
expressive power gained (see also next section). In the no such z exists in 1 , and therefore the answer is NO.
rest of this section we show how the use of the epis- Query 6 is similar to Query 5, but the concept
temic operator allows us to express queries that have :Married is replaced with the concept :KMarried.
both natural interpretation and good computational In this case, since :KMarried(peter) holds in 1, we
properties. In particular, we have found that there have that the above mentioned individual z exists. In
are situations where the use of the epistemic operator particular, it is susan, and therefore the answer is YES.
helps lessening the computational complexity of query
answering. Queries 4,5 and 6 show how the K operator is able to
Consider the following three queries posed to the ALC - modify the semantics of a query (note that, apart from
knowledge base 1 of Example 2.2: the presence of K, the queries are identical).
Query 4: Queries 4, 5, and 6 show how to use the K operator to
9FRIEND.(Married u 9LOVES.:Married)(john). modify the semantics of a query (note that they dif-
Answer: YES. fer only in the occurrences of the K operator): Query
4 respects the standard rst order semantics of con-
Query 5: cept languages, Query 5 uses an intuitionistic seman-
9KFRIEND.K(Married u 9LOVES.:Married)(john). tics which rules out the reasoning by case analysis,
Answer: NO. and nally, Query 6 makes use of a sort of negation as
Query 6: failure.
9KFRIEND.K(Married u 9LOVES.:KMarried)(john). As another example of this fact consider the following
Answer: YES. pair of queries:
Query 4 asks whether john has a married friend Query 7: (9LOVES.:Male) t (:9LOVES.>)(john).
who loves an unmarried person. At rst glance, Answer: YES.
since susan and peter are the only known friends of Query 8: K(9LOVES.:Male) t K(:9LOVES.>)(john).
john, it seems that the answer to the query is to be
found by checking whether either 1 j= Married u Answer: NO.
9LOVES.:Married(susan) or 1 j= Married u The di erence between Query 7 and 8 is similar to
9LOVES.:Married(peter). the di erence between Query 4 and 5. Query 7 asks
Since 1 6j= Married(peter), we have in particular whether in every model M 2 M(1) the assertion
(9LOVES.:Male) t (:9LOVES.>)(john) is true. 5 Closed World Reasoning, Relational
Again, reasoning by case analysis, one realizes that Databases, and Integrity
such a query gets the answer YES: indeed, due to the Constraints
assertion 8LOVES.:Male(john) in 1, for every mod-
el M of 1 , either 9LOVES.:Male(john) is true in The reason for the open world semantics of concept
M , or :9LOVES.>(john) is true in M . On the oth- languages is that they are generally used in appli-
er hand, Query 8 asks whether it is the case that cations where incomplete information have to be ac-
9LOVES.:Male(john) is true in every model M 2 counted for. For example, even if all the known friends
M(1 ), or whether :9LOVES.>(john) is true in every of John are male, one does not want to conclude that
model M 2 M(1 ). Therefore, the answer to Query 8 all friends of John are male.
is NO.
On the other hand, there are situations where it is
The above examples (Queries 5 and 8) show that the natural to query a knowledge base under the closed
use of K may allow us to express queries whose an- world assumption. It is important to note the di er-
swer does not require reasoning by case analysis. In ence between assigning a closed world semantics to the
[6], we analyze in detail the situations where this kind knowledge base and allowing one to pose queries un-
of reasoning makes deductions in concept languages der the assumption that part of the knowledge base is
problematic from the computational point of view. complete.
For example, we prove that the problem of checking
if j= C (a), when is an AL-knowledge base and C We argue that the use of epistemic operators as de-
is an ALE -concept, is coNP-hard w.r.t. the size of .5 scribed in the previous sections is a natural way to
achieve such a exible way of interacting with the
On the other hand, we have the following result: knowledge base. Referring to the knowledge base 1
of Example 2.2, consider the following examples:
Proposition 4.2 Let be an AL-knowledge base, a Query 9: 8FRIEND.9LOVES.>(john).
be an individual, and C be an ALEK-concept where Answer: UNKNOWN.
the only quali ed existential quanti cations are of the Query 10: 8KFRIEND.K9LOVES.>(john).
form 9KR.KE . Then checking whether j C (a) can Answer: YES.
be done in polynomial time w.r.t. the size of .
Query 9 gets the answer UNKNOWN because there is a
model of 1 where john is related to an individual
Notice that if C is an ALE -concept, and (C ) is the z and z is not an instance of the concept 9LOVES.>.
ALEK-concept obtained from C by replacing every oc- On the other hand, the reading of Query 10 is as fol-
currence of the construct 9R.E with 9KR.KE , then lows: is it true that for every individual z known to be
j (C )(a) implies j= C (a). >From this obser- related to john through the role FRIEND, it is known
vation and the above theorem we can derive an inter- that 9LOVES.>(z ) holds 1? It is easy to see that the
esting property: the algorithm for checking whether answer to this query is YES.
j (C )(a) is a tractable, sound and incomplete The above example shows that the use of K allows one
procedure for checking whether j= C (a). to pose queries to a knowledge base under the as-
Following the above idea, we can use the K operator sumption that has complete knowledge on a certain
to build sound and incomplete query answering pro- individual a and a certain role P (john and FRIEND in
cedures for any concept language. Given a knowledge the example), i.e. under the assumption that for every
base and a query C , both expressed in a language pair (a; b) such that 6j= P (a; b), P (a; b) is false in
L, the query can be replaced by a suitable concept . Notice that this is not the same as assuming that
L (C ) in the language LK such that j L (C )(a)
the knowledge about every role is complete, like for
implies j= C (a) and deciding j L (C )(a) can example in [13].
be done more eciently w.r.t. the size of . The ad- In [11] the problem of translating Circumscription into
vantage compared to other incomplete procedures is epistemic theories is discussed. We show here that our
the precise semantical characterization of the source query language allows us to achieve at least the expres-
of incompleteness. sive power of the (naive) Closed World Assumption
(CWA) (see [15]). We do so by considering knowledge
bases expressed in the simple language AL0 , whose
concepts are formed according to the rule:
5 ALE is the sublanguage of ALC that consists of all C; D ?! A j :A j C u D j 8R.C:
simple concepts which do not contain the union constructor
\t", whereas AL consists of all ALE concepts that only More complex languages and more powerful forms of
contain existential quanti cations of the form 9R.>. closed world reasoning (e.g. Careful CWA) require a
more sophisticated treatment, which is outside the method described in Section 3 is needed in order to
scope of this paper. evaluate ALCK+ -queries.
Let be an AL0 -knowledge base, C be any ALC - ALCK+ -queries constitute a superset of relational
concept, and a be an individual. entails C (a) under calculus queries [19]. Indeed, let us denote with
the CWA, written j=CWA C (a), if C (a) is true in rdb() the relational database obtained from the AL0-
every minimal model of . knowledge base as follows. First, for every primitive
Given a simple ALC -concept C , we de ne the ALCK- concept A in , we introduce a relation rel(A) of arity
concept C as follows: 1, and for every role R in , we introduce a relation
rel (R) of arity 2. Second, let rel (A) consist of the tu-
1. A = KA ples hai such that a: A is in the completion S ,6 and
let rel (R) consist of the tuples ha; bi such that aRb is
2. :A = :KA in S . It is possible to show that, for every satis able
3. (C u D) = KC u KD AL0-knowledge base , and for any relational+ calculus
expression r over rdb(), there is an ALCK -query q
4. (C t D) = KC t KD over such that the set of tuples in the answer to
5. (9P .C ) = 9KP .C r is equal to the answer set of q. This proves that
ALCK+ has at7least the expressive power of the rela-
6. (8P .C ) = 8KP .C . tional calculus.
Proposition 5.1 Let be an AL0-knowledge base, Another interesting feature of ALCK+ -queries is that
C be an ALC -concept, and a be an individual. Then they provide a formal setting for extracting informa-
j=CWA C (a) if and only if j C (a). Moreover, tion from a knowledge base where part of the knowl-
checking if j C (a) can be done in polynomial time.
edge is expressed in a concept language, and part is
stored in a relational database.
One interesting consequence of the above result is A further aspect that is usually considered in databas-
that epistemic queries allow us to achieve the expres- es but not in concept languages, is that of integrity
sive power of relational query languages. Let us call constraints, which are sentences specifying the set of
ALCK+ the language whose syntax is as follows (C , admissible database states. In [16] it is argued that
D denote concepts, R, Q denote roles, and a denotes integrity constraints are naturally viewed as epistemic
an individual): sentences specifying what the knowledge base is sup-
posed to know about a particular aspect of the world,
C; D ?! A j fag j C u D j C t D j :C j 8R.C j rather than a direct property of the world.
9R.C j KC For example, if the we want to rule out those knowl-
R ?! P j Q edge bases which are uncertain about the sex of every
Q; Q1 ?! KP j Q u Q1 j Q t Q1 j Q Q1 j :Q j person who is known to be student, we cannot simply
Q j Q?1 ; state that every student has a sex. Rather, we need to
specify that for every known student a, the knowledge
where fag denotes the concept whose extension is con- base either knows that a is a male, or knows that a is
stituted by the single individual a (see Section 4), a female.
denotes role concatenation, Q denotes the transitive In order to represent this idea in our setting, we pro-
closure of Q, and Q?1 denotes the inverse of Q. pose to model integrity constraints as ALCK concepts.
An ALCK+ -query over a knowledge base is an ex-
pression of the form De nition 5.2 An integrity constraint is an ALCK-
concept. Given an ALC -knowledge base and an in-
hx1 ; : : :; x j i
n tegrity constraint C , satis es C if for every individ-
where is a rst order formula whose free variables ual a 2 O , j C (a). If IC = fC1; : : :; C g is a set
n
are among x1; : : :; x , whose constants are symbols of integrity constraints, then is said to be legal with
in O , and whose atomic formulas are of+ the form
n
respect to IC if satis es C for each i 2 f1; : : :; ng.
i
KC (t) or KQ(s;+ t), where C is an ALCK -concept, For example, the previous integrity constraint can be
Q is an ALCK -role or is the predicate symbol =, expressed as:
and s; t are either constants or+ variables. The an-
swer set of the above ALCK -query is the set of (:KStudent) t (KMale t K:Male):
tuples ha1 ; : : :; a i, where each a 2 O, such that
j [x1 =a1; : : :; x =a ]. We are using here a straight-
n i
6 Note that, due to the language constructs of AL0 ,
forward extension of the j relation de ned in Section 2
n n
of integrity constraints) can be easily realized through and (chips) 2 JunkFoodI W , i.e., both the as-
;