satisfjability checking and conjunctive query answering
play

Satisfjability Checking and Conjunctive Query Answering in - PowerPoint PPT Presentation

Satisfjability Checking and Conjunctive Query Answering in Description Logics with Global and Local Cardinality Constraints Franz Baader Bartosz Bednarczyk Sebastian Rudolph Technische Universitt Dresden and University of Wrocaw


  1. Satisfjability Checking and Conjunctive Query Answering in Description Logics with Global and Local Cardinality Constraints Franz Baader Bartosz Bednarczyk Sebastian Rudolph Technische Universität Dresden and University of Wrocław Description Logic Workshop 2019 Oslo, June 18th, 2019

  2. answering Agenda 2 / 16 ∎ Introduction to the logic ALCSCC ++ ∎ Expressivity examples ∎ Satisfjability is NExpTime-complete ... ∎ but conjunctive query entailment is undecidable ∎ Nice sub-fragment ALCSCC with decidable fjnite query

  3. QFBAPA QBFBAPA formula = boolean comb. of set and cardinality constr. Sat of QFBAPA is NP-complete [Kuncak&Rinard CADE 2007] 3 / 16 ∎ We recall quantifjer-free fragment of Boolean Algebra with Presburger Arithmetic (QFBAPA) ∎ Set terms, boolean operations ∩ , ∪ , ⋅ c on them, constants ∅ , U ∎ Set terms can be used to state set constraints, s = t , s ⊆ t ∎ Presburger arithmetic (PA) expressions are build from: ◻ Integer constants. ..., − 2 , − 1 , 0 , 1 , 2 ,... ◻ set cardinalities ∣ s ∣ , for s being a set terms ∎ We can express Cardinality constraints k = l , k < l , Ndvdl

  4. 4 / 16 The defjnition of ALCSCC ++ ALCHQ + concepts of the form sat ( c ) for a QFBAPA set/cardinality constaint c and c uses role names and ALC SCC ++ concept descriptions in place of set variables ( ≥ nr . C ) I = sat (∣ C ∩ r ∣ ≥ n ) I - number restrictions ∎ sat (∣ r ∣ dvd2 ) - even number of r successors ∎ sat (∣ ⊺ ∣ dvd2 ) - the total number of elements is even ∎ sat (∣ A ∣ = 1 ) - nominals ∎ ∎ sat ( ⊺ ⊆ sat ( r ∩ s ⊆ ∅ )) - role disjointness ∎ sat ( ⊺ ⊆ sat (∣ r ∣ + ∣ r c ∣ = ∣ U ∣)) - role complementation ∎ sat ( ⊺ ⊆ sat (∣ r ∣ = ∣ U ∣)) - universal role

  5. GCAI’17] which is the conjunction of all the elements of t. 5 / 16 ALCSCC ++ is NExpTime-complete ∎ We provide an exponential reduction to QFBAPA ∎ Matching lower bound from previous work [Baader&Ecke, ∎ We defjne a notion of types and write a formula describing them ∎ M = set of all subconcepts from the input concept E ∎ If M is a set of concepts, then t ⊆ M is a type if: ◻ If ¬ C ∈ M then C ∈ t ∨ ¬ C ∈ t ◻ If C ⊓ D ∈ M then C ⊓ D ∈ t ifg C ∈ t and D ∈ t ◻ If C ⊔ D ∈ M then C ⊔ D ∈ t ifg C ∈ t or D ∈ t ∎ Such a type t can also be seen as a concept description C t ,

  6. X C Encoding types in QFBAPA Overall, we translate the concept E into the QFBAPA elements), the constraints of this type are satisfjed Last two conjuncts = for any type that is realized (i.e., has First conjunct = witness for E t 0 X C C t t types E 1 X E E E : X C c C M X D X C X C D C D M X D X C X C D C D M We can ensure boolean structure of types with with X t 6 / 16 ∎ Given a type t, we replace concepts C with X C and roles r r . The resulting formula is ψ t .

  7. Encoding types in QFBAPA E : elements), the constraints of this type are satisfjed Last two conjuncts = for any type that is realized (i.e., has First conjunct = witness for E t 0 X C C t t types E 1 X E E Overall, we translate the concept E into the QFBAPA 6 / 16 with X t ∎ Given a type t, we replace concepts C with X C and roles r r . The resulting formula is ψ t . ∎ We can ensure boolean structure of types with β ∶ = X C ⊓ D = X C ∩ X D ∧ X C ⊔ D = X C ∪ X D ∧ ⋀ X ¬ C = ( X C ) c ⋀ ⋀ C ⊓ D ∈ M C ⊔ D ∈ M ¬ C ∈ M

  8. Encoding types in QFBAPA First conjunct = witness for E elements), the constraints of this type are satisfjed Last two conjuncts = for any type that is realized (i.e., has 6 / 16 with X t ∎ Given a type t, we replace concepts C with X C and roles r r . The resulting formula is ψ t . ∎ We can ensure boolean structure of types with β ∶ = X C ⊓ D = X C ∩ X D ∧ X C ⊔ D = X C ∪ X D ∧ ⋀ X ¬ C = ( X C ) c ⋀ ⋀ C ⊓ D ∈ M C ⊔ D ∈ M ¬ C ∈ M ∎ Overall, we translate the concept E into the QFBAPA δ E : δ E ∶ = (∣ X E ∣ ≥ 1 ) ∧ β ∧ (∣ ⋂ X C ∣ = 0 ) ∨ ψ t . ⋀ C ∈ t t ∈ types ( E )

  9. Encoding types in QFBAPA elements), the constraints of this type are satisfjed 6 / 16 with X t ∎ Given a type t, we replace concepts C with X C and roles r r . The resulting formula is ψ t . ∎ We can ensure boolean structure of types with β ∶ = X C ⊓ D = X C ∩ X D ∧ X C ⊔ D = X C ∪ X D ∧ ⋀ X ¬ C = ( X C ) c ⋀ ⋀ C ⊓ D ∈ M C ⊔ D ∈ M ¬ C ∈ M ∎ Overall, we translate the concept E into the QFBAPA δ E : δ E ∶ = (∣ X E ∣ ≥ 1 ) ∧ β ∧ (∣ ⋂ X C ∣ = 0 ) ∨ ψ t . ⋀ C ∈ t t ∈ types ( E ) ∎ First conjunct = witness for E ∎ Last two conjuncts = for any type that is realized (i.e., has

  10. Lemma is satisfjable. The sat problem for is NExpTime-complete. Satisfjablity of 7 / 16 Conclusion: satisfjability for ALCSCC ++ The QFBAPA formula δ E is of size at most exponential in the size of E, and it is satisfjable ifg the ALC SCC ++ concept description E

  11. Lemma is satisfjable. 7 / 16 Conclusion: satisfjability for ALCSCC ++ The QFBAPA formula δ E is of size at most exponential in the size of E, and it is satisfjable ifg the ALC SCC ++ concept description E Satisfjablity of ALC SCC ++ The sat problem for ALC SCC ++ is NExpTime-complete.

  12. Query answering is undecidable undecidable whether DTM is looping 8 / 16 ∎ Source of undecidability: Universal role is expressible in ALCSCC ++ (as we have seen before) ∎ Proof by [Pratt-Hartmann, Inf. Comput. 207] for FO 2 without equality - sketchy, it is not clear whether it is correct ∎ So we prove it on our own! for ALC cov , i.e., ALC extended by role cover axioms of the form cov ( r , s ) ∎ An interpretation I satisfjes cov ( r , s ) if r I ∪ s I = ∆ I × ∆ I . ∎ Role cover axioms can be expressed in ALCSCC ++ via sat (⊺ ⊆ sat (∣ r ∪ s ∣ = ∣ U ∣)) ∎ Reduction from the looping Turing machines, i.e. it is

  13. How decidability could be regain? It is equivalent to write: But still useful to express statistical knowledge-bases. 9 / 16 ∎ We move to a less expressive, e.g., ALCSCC with RCBoxes. ∎ In ALCSCC all QFBAPA constraints must be local! C new = C old ∩ ( ⋃ r ) r ∈ N R ∎ RCBoxes = fjnite sets of restricted cardinality constraints N 1 ∣ C 1 ∣ + ... + N k ∣ C k ∣ ≤ N k + 1 ∣ C k + 1 ∣ + ... + N k + l ∣ C k + l ∣ , ∎ Not able to express nominals!

  14. Decidable query answering arbitrary girth, while preserving satisfjability query tree-shaped matches 10 / 16 ∎ We reduce query entailment to satisfjability ∎ We enrich our knowledge-base with ability to block all tree-shaped query matches (so-called rolling-up technique) ∎ Then we employ pumping technique to obtain models with ∎ So if there is a counter-model, there is be a model without

  15. Blocking tree-shaped query matches 11 / 16 ∎ We take an arbitrary CQ q. ∎ Consider all the possible ways q ′ how q can match as a tree ∎ We create a concept C q ′ , x , with the supposed meaning that d ∈ C I q ′ , x if variable x from q ′ can be mapped to d in a query match represented by q ′ . ∎ We roll them into concepts in bottom-up way: ∎ C q ′ , x equals ⊓ C ( x )∈ q ′ C if x is a leaf (i.e. ≺ -minimal), otherwise: C ⊓ ( ∃ ⋂ s . C q ′ , y ) ⊓ ( ∃⋂ s − . C q ′ , y ) ⊓ ⊓ ⊓ C ( x )∈ q ′ s ( x , y )∈ q ′ s ( y , x )∈ q ′ ( x , y )∈ Eq ′ ( y , x )∈ Eq ′ y ≺ x y ≺ x

  16. Correctness (1) q Lemma Lemma q 12 / 16 We defjne R Match q as: q ′ ⊑ Match q ⊔ C q ′ , x r q ′ ∈ trees ( q ) Assume that R ∪ R Match has a model I such that Match I q is empty. Then I does not have any tree-shaped query matches. If there is a model I of R without any tree-shaped query matches, then R ∗ = R ∪ R Match ∪ {⊺ ⊑ ¬ Match q } is satisfjable.

  17. Pumping lemma for graphs u f Easy to generalize to structures. Then, the girth of H is at twice that of G. f e . 1 fmipped: f e edge of E and f is the same as f except that the value at e is is in u u such that e u f E be the set of edges F V V as follows: V E Construct H 0 1 . V E be a graph, F be the set of functions f E Let G 13 / 16 The girth of I is the length of a shortest (undirected) proper cycle contained in ∆ I . Below we present pumping method for graphs:

  18. Pumping lemma for graphs Then, the girth of H is at twice that of G. Easy to generalize to structures. 13 / 16 The girth of I is the length of a shortest (undirected) proper cycle contained in ∆ I . Below we present pumping method for graphs: Let G = ( V , E ) be a graph, F be the set of functions f ∶ E → { 0 , 1 } . Construct H = ( V ′ , E ′ ) as follows: ∎ V ′ = V × F ∎ E ′ be the set of edges (( u , f ) , ( u ′ , f ′ )) such that e = ( u , u ′ ) is in edge of E and f ′ is the same as f except that the value at e is fmipped: f ′ ( e ) = 1 − f ( e ) .

  19. Properties of pumping Lemma Lemma 14 / 16 Let I be an interpretation with girth k. Then the girth of pump ( I ) is at least 2k. Let R be an RCBox with a model I . Then pump ( I ) is a model of R .

  20. Decidable query answering matches. 15 / 16 ∎ We check enriched kb for satisfjability. ∎ If it is satisfjable, it does not have any tree-shaped query ∎ We pump it at least ∣ q ∣ times to obtain a countermodel. ∎ Thus satisfjable = query is not entailed. Querying for ALC SCC RCBoxes Conjunctive Querying is decidable for ALC SCC RCBoxes.

Recommend


More recommend