1 / 24

Query Answering for OWL-DL with Rules

Query Answering for OWL-DL with Rules. Boris Motik Ulrike Sattler Rudi Studer. Contents. Introduction Preliminaries Decidability Problems DL-safe Rules Decidability of Query Answering Query Answering by Disjunctive Datalog Conclusion & Future Work. Introduction.

Pat_Xavi
Download Presentation

Query Answering for OWL-DL with Rules

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Query Answering forOWL-DL with Rules Boris Motik Ulrike Sattler Rudi Studer

  2. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  3. Introduction • OWL-DL – a decidable fragment of FOL • allows existential and universal quantifiers • quantifier usage restricted to make reasoning decidable • only tree-like axioms allowed • expressivity not sufficient for certain practical problems • Rule systems – a different set of choices • decidability achieved by allowing universal quantifiers only • existential quantifiers possible (function symbols required; easily lead to undecidability) • usually support non-monotonic reasoning

  4. Goals • Extending OWL-DL with rules is needed • query answering should be decidable • SWRL approach is undecidable • In this talk I… • …explain why adding rules to DL leads to undecidability • …present DL-safe rules • …discuss the expressivity of the approach • …show that query answering is decidable • …give an algorithm for query answering

  5. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  6. Preliminaries Concept Expressions TBox Axioms • OWL-DL is SHOIN(D) • My algorithms support SHIQ(D) • Main difference: nominals • Semantics is (KB) by translating KB into FOL Atomic concepts :C C u D C t D 9 R.C 8 R.C · n R.C (R is simple) ¸ n R.C (R is simple) { i1, …, in } C v D C ´ D ABox Axioms C(a) R(a,b) a ¼ b a ¼ b RBox Axioms R v S Trans(R) Roles Atomic roles R– (inverse roles)

  7. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  8. Example for Termination Problems • Question: does KB ² Grandchild(Jane)? • this is the case iff KB [ { :Grandchild(Jane) } is unsatisfiable • show by trying to build a model Grandchild Person Person Person 9 father.Person 9 father.Person 9 father.Person father father father peter x2 x1 • KB implies an infinite sequence of fathers • enumerating all of them leads to non-termination • advanced techniques needed to ensure termination

  9. x1 is blocked by Peter, so reuse successors of Peter. Termination in DL Algorithms • Each father does not need to be distinct, so an infinite model can be wound up to a finite model (using blocking) Grandchild Person Person Person 9 father.Person 9 father.Person 9 father.Person father father father Peter x2 x1 Grandchild Person Person 9 father.Person 9 father.Person father father Peter x1

  10. x S x1 R R x2 x3 Why is Blocking Possible? • In OWL-DL only tree-like axioms are allowed • (modulo technicalities concerning transitivity or nominals) 9S.(9 R.C u9 R.D) v Q , 8x:{[ 9 y: S(x,y) Æ (9 x: R(y,x) Æ C(x)) Æ (9 x: R(y,x) Æ D(x))] ! Q(x)} , 8x,x1,x2,x3:{ S(x,x1) Æ R(x1,x2) Æ C(x2) Æ R(x1,x3) Æ D(x3) ! Q(x) } • This restriction ensures the tree-model property • if there is a model, a tree-like model always exists as well • Tree-like models can always be wound up into finite (representations of) models • SHIQ models can be infinite trees, but can be finitely represented • SHOIN models need not be trees, but can be finitely represented

  11. Jane Mary Ann Reasoning with (function-free) Rules • No existential quantifiers • limited to only explicitly introduced individuals • = a finite number for finite knowledge bases • Can enforce arbitrary-shaped models • for reasoning, examine all possible assignments of individuals to variables (grounding) • reasoning is reduced to propositional logic hasAunt(x,y) Ã hasParent(x,z), hasSibling(y,z), Female(y) propositional clauses hasAunt(Jane,Mary)Ã hasParent(Jane,Ann), hasSibling(Mary,Ann), Female(Mary) hasAunt(Ann,Jane)Ã hasParent(Ann,Mary), hasSibling(Jane,Mary), Female(Jane) …

  12. Combining OWL-DL with Rules OWL-DL + Rules =Decidability due to tree-like axioms+Decidability due to finite number of individuals = Trouble!

  13. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  14. Not DL-safe, since x and y occur only in DL-atoms. We assume that there is a fact O() for each individual  in the ABox. Definition: DL-safe Rules • DL-safe program P contains rules with concepts and roles from KB as unary resp. binary predicates in head or body (DL-atoms) • Each variable occurs in a non-DL-atom in the body (DL-safety) • makes rules applicable only to explicitly introduced individuals • Semantics: (KB, P) is semantically equivalent to (KB) [ P • rules interpreted as clauses (no non-monotonic reasoning) Homeworker(x) Ã Person(x), livesAt(x,y), worksAt(x,y) Homeworker(x) Ã Person(x), livesAt(x,y), worksAt(x,y), O(x), O(y) (KB contains Homeworker, livesAt, Person, worksAt).

  15. Expressivity (I) With normal (DL-unsafe) rules: (KB, P)² BadChild(Cain) (KB, P)² BadChild(Romulus) • Cain is a grandchild (as before) • Cain has a father (Adam) and a sibling that he hates (Abel) • Romulus hates Remus • We do not know who the father of Romulus and Remus is, but we know that he exists

  16. (KB, P)² BadChild’(Romulus) Expressivity (II) With DL-safe rules: (KB, P)² BadChild’(Cain) • We know the identity of Cain’s father (Adam) • We do not know the identity of Cain’s father, so O(y) cannot be matched to an individual Intuitive semantics: BadChild’ is a known child with a known father who hates some of his known siblings.

  17. KB ²GoodChild(Oedipus) KB ² BadChild’(Oedipus) Expressivity (III) • Reasoning with DL-safe rules does not mean “derive DL consequences first, and then apply the rules.” • common misconception; significantly changes semantics Oedipus may be a good or a bad child. Either way, Oedipus is a child.This is not derived by applying the rules to consequences of the DL part. KB ²Child(Oedipus)

  18. Expressivity (IV) • DL-safety does not reduce component languages • DL-safety allows exchanging consequences between components about explicit individuals only • DL-safety does increase expressivity • rules alone cannot derive KB ² BadChild’(Cain) • no existential quantifiers • DL alone cannot derive KB ² BadChild’(Cain) • non-tree-like rules needed

  19. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  20. Decidability of Query Answering • Theorem: Query answering in (KB, P) is decidable. • Proof: By grounding P and reduction to DL satisfiability. (KB, P)² iff (KB) [ P [ {:} is unsatisfiable KB [ { BC’(x) Ã GC(x), par(x,y), par–(y,z), hates(x,z), O(x), O(y), O(z),… } is unsatisfiable • grounding by explicit individuals { Cain, Abel and Adam } • possible since O contains only explicit individuals KB [ { BC’(Cain) Ç:GC(Cain) Ç:par(Cain, Adam) Ç :par–(Adam, Abel) Ç :hates(Cain, Abel), BC’(Abel) Ç:GC(Abel) Ç:par(Abel, Adam) Ç:par–(Adam, Cain) Ç:hates(Abel, Cain)…} • select from each clause don’t-know non-deterministicallya literal and assume it is true KB [ { BC’(Cain), :GC(Abel) …} = KB’ is unsatisfiable KB’ is an OWL-DL knowledge base, so satisfiability can be decided by standard algorithms.

  21. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  22. Query Answering by Disjunctive Datalog • Theorem: (KB, P) ² iff DD(KB) [ P ². • Proof: By adapting slightly the original correctness proof for the reduction. • Expected to be practicable, since it allows reusing deductive database techniques • The algorithm is inefficient due to non-determinism • For SHIQ, query answering can be done by reduction to disjunctive datalog Translation Into Clauses Saturationby BS Elimination of Function Symbols Conversion to DD Elimination of Transitivity Axioms Disjunctive Program DD(KB) SHIQKB

  23. Contents • Introduction • Preliminaries • Decidability Problems • DL-safe Rules • Decidability of Query Answering • Query Answering by Disjunctive Datalog • Conclusion & Future Work

  24. Conclusion • DL-safe rules: • restrict application of rules to individuals explicitly introduced in the ABox to achieve decidability • do not restrict component languages • increase expressivity of component languages • …can be simply appended to the result of the reduction of SHIQ to disjunctive datalog • Future work: • extend reduction to support nominals (to support OWL-DL) • implement KAON2 – a new hybrid reasoner • conduct a thorough performance evaluation • support some kind of non-monotonic reasoning

More Related