• Keine Ergebnisse gefunden

Existential Rules

N/A
N/A
Protected

Academic year: 2022

Aktie "Existential Rules"

Copied!
14
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Rewriting the Description Logic ALCHIQ to Disjunctive

Existential Rules

David Carral and Markus Krötzsch Knowledge-Based Systems Group

September 14, 2020

Check out the chat for a link to download the slides!

(2)

Rewritings

Definition

Consider fragmentsLandL0 of FOL. AnL0-theoryT0 is a

rewritingof anL-theoryT if, for all fact setsFover the signature ofT, we have thatT ∪ F andT0∪ F are equisatisfiable.

If we can always compute such a rewriting,LisrewritabletoL0.

Motivation

Theoretical: understand the expressivity of FOL fragments.

Practical: reuse existing reasoners across FOL fragments.

I Assume thatLis rewritable toL0.

I ConsiderT ∪ F withT anL-theory andFa fact set.

I Compute an equisatisfiable theoryT0∪ F withT0 ∈ L0.

I Use anL0-reasoner to decide ifT0∪ Fis satisfiable.

I The result determines whetherT ∪ F is satisfiable.

(3)

Rewritings

Definition

Consider fragmentsLandL0 of FOL. AnL0-theoryT0 is a

rewritingof anL-theoryT if, for all fact setsFover the signature ofT, we have thatT ∪ F andT0∪ F are equisatisfiable.

If we can always compute such a rewriting,LisrewritabletoL0.

Motivation

Theoretical: understand the expressivity of FOL fragments.

Practical: reuse existing reasoners across FOL fragments.

Contribution

Establish thatALCHIQis rewritable into rule-based languages.

(4)

The DL ALCHIQ: Syntax and Semantics

Definition:ALCHIQ

AuBvC A(x)B(x)C(x)

AvBtC A(x)B(x)C(x)

Av ∀R.B A(x)R(x,y)B(y) Av ∃R.B A(x)→ ∃y.R(x,y)B(y) Av61R.B A(x)R(x,y)B(y)R(x,z)B(z)yz

RuSvV R(x,y)S(x,y)V(x,y)

RvStV R(x,y)S(x,y)V(x,y)

R vS R(y,x)S(x,y)

In the above,A,B, andCare unary predicates (i.e., concept names) and R,S, andVare binary predicates (i.e., role names)

(5)

Datalog

∨∃

: Syntax and Semantics

Definition

Adisjunctive existential ruleis a FOL formula of the form

∀~x.

β[~x]→_n

i=1∃~yii[~xi, ~yi] .

whereβ[~x]andηi[~xi, ~yi]are atom conjunctions using variables in the lists~x(i)and~yi, such that~xi ⊆~xand~x∩~yi =∅for all 1≤in.

Definition

Datalog∨∃: all sets of disjunctive existential rules.

Datalog: Datalog∨∃without disjunction.

Datalog: Datalog∨∃without existential quantifiers.

Datalog: Datalogwithout disjunctions.

(6)

Rewritings of DL-Type Logics to Rule Languages

[Hustadt et al., 2007] ALCHIQ Datalog exp. † [Eiter et al., 2012] Horn-SHIQ Datalog exp. † [Rudolph et al., 2012] SHIQbs Datalog exp. † [Bienvenu et al., 2014] SHI Datalog exp. † [Carral et al., 2018] Horn-ALCHOIQ Datalog exp. † [Carral et al., 2019b] Horn-SHIQ Datalog exp. †

[Ortiz et al., 2010] Horn-ALCHOIQ Datalog poly.

[Ahmetaj et al., 2016] ALCHIO Datalog poly.

[Krötzsch, 2011] EL++ Datalog poly.† [Carral et al., 2019a] Horn-ALC Datalog poly.†

†: rules of bounded size that does not depend on input

Remark

All rewriting techniques for expressive DLs produce rule sets of exponential size or rules of unbounded arity.

(7)

Results

Theorem 1

ALCHIQis poly-time rewritable into terminating Datalog∨∃

rulesof bounded size.

Definition: Terminating Datalog∨∃

Language of all setsRof disjunctive existential rules that terminate with respect to the Datalog-first restricted chase.

Theorem 2

ALCHIQis poly-time rewritable to Datalog rules (of unbounded size).

(8)

Results

Simplified Theorem

ALCis poly-time rewritable into terminating Datalog∨∃rules of bounded size.

Definition: ALC

AuBvC A(x)B(x)C(x) AvBtC A(x)B(x)C(x) Av ∀R.B A(x)R(x,y)B(y)

Av ∃R.B A(x)→ ∃y.R(x,y)B(y) In the above,A,B, andCare unary predicates (i.e., concept names) andRis a binary predicate (i.e., role name)

(9)

Rewriting ALC into Datalog

∨∃

Definition: ALC Rewritings

Consider a theoryT ofALCaxioms and a sequenceA1, . . . ,Ancontaining all of the classes inT. Then, the following set of Datalog∨∃rules is a terminating rewriting forT:

{A(x)B(x)C(x)|AuBvC∈ T } ∪ {A(x)B(x)C(x)|AvBtC∈ T } ∪ {A(x)R(x,y)B(y)|Av ∀R.B∈ T } ∪

{A(x)→ ∃y.R(x,y)B(y)Succ(x,y)|Av ∃R.B∈ T } ∪ { →A(x)A¬(x),A(x)A¬(x)→ ⊥ |AClasses(T)} ∪

{A1(x)A1(z)SameClasses1(x,z),A¬1(x)A¬1(z)SameClasses1(x,z)} ∪ {SameClassesi−1(x,z)Ai(x)Ai(z)SameClassesi(x,z),

SameClassesi−1(x,z)A¬i (x)A¬i (z)SameClassesi(x,z)|2in} ∪ {SameClassesn(x,y)SameType(x,y)} ∪

{SameType(x,z)Succ(x,y)R(x,y)Succ(z,y)R(z,y)|RRoles(T)}

(10)

Thank you for your attention!

Link to the paper:

iccl.inf.tu-dresden.de/web/Inproceedings3244/en

(11)

References I

Ahmetaj, S., Ortiz, M., and Simkus, M. (2016).

Polynomial Datalog rewritings for expressive Description Logics with closed predicates.

In Kambhampati, S., editor,Proc. 25th Int. Joint Conf. on Artif. Intell.

(IJCAI 2016), pages 878–885. IJCAI/AAAI Press.

Bienvenu, M., ten Cate, B., Lutz, C., and Wolter, F. (2014).

Ontology-based data access: A study through disjunctive Datalog, CSP, and MMSNP.

ACM Transactions of Database Systems, 39(4):33:1–33:44.

Carral, D., Dragoste, I., and Krötzsch, M. (2018).

The combined approach to query answering in Horn-ALCHOIQ.

In Thielscher, M., Toni, F., and Wolter, F., editors,Proc. 16th Int. Conf.

on Principles of Knowledge Representation and Reasoning (KR 2018), pages 339–348. AAAI Press.

(12)

References II

Carral, D., Dragoste, I., Krötzsch, M., and Lewe, C. (2019a).

Chasing sets: How to use existential rules for expressive reasoning.

In Kraus, S., editor,Proc. 28th Int. Joint Conf. on Artif. Intell.

(IJCAI 2019), pages 1624–1631. ijcai.org.

Carral, D., González, L., and Koopmann, P. (2019b).

From Horn-SRIQto Datalog: A data-independent transformation that preserves assertion entailment.

InProc. 33rd AAAI Conf. on Artificial Intelligence (AAAI 2019), pages 2736–2743. AAAI Press.

Eiter, T., Ortiz, M., Simkus, M., Tran, T.-K., and Xiao, G. (2012).

Query rewriting for Horn-SHIQplus rules.

In Hoffmann, J. and Selman, B., editors,Proc. 26th AAAI Conf. on Artificial Intelligence (AAAI 2012). AAAI Press.

(13)

References III

Hustadt, U., Motik, B., and Sattler, U. (2007).

Reasoning in Description Logics by a reduction to disjunctive Datalog.

J. Automated Reasoning, 39(3):351–384.

Krötzsch, M. (2011).

Efficient rule-based inferencing for OWL EL.

In Walsh, T., editor,Proc. 22nd Int. Joint Conf. on Artif. Intell.

(IJCAI 2011), pages 2668–2673. IJCAI/AAAI.

Ortiz, M., Rudolph, S., and Simkus, M. (2010).

Worst-case optimal reasoning for the Horn-DL fragments of OWL 1 and 2.

In Lin, F., Sattler, U., and Truszczynski, M., editors,Proc. 12th Int.

Conf. on Principles of Knowledge Representation and Reasoning (KR 2010). AAAI Press.

(14)

References IV

Rudolph, S., Krötzsch, M., and Hitzler, P. (2012).

Type-elimination-based reasoning for the Description Logic SHIQbsusing decision diagrams and disjunctive Datalog.

Logical Methods in Computer Science, 8(1).

Referenzen

ÄHNLICHE DOKUMENTE

A fully stratified chase sequence is a standard chase that is based on the set of rules Σ + obtained from Σ by omitting the negative body χ ¯ in each rule, and such that for all steps

Chasing Sets: How to Use Existential Rules for Expressing Reasoning David Carral, Irina Dragoste, Markus Krötzsch, Christian Lewe.. Datalog for

The backward chaining mechanisms classically used in logic programming process rules and queries atom by atom: at each step, an atom a of a query Q is unified with the head of a rule

However, for gbts rules, each sequence of rule applications gives rise to a so-called derivation tree, which is a decomposition tree of the derived set of facts; moreover, this tree