46.
Linear
DL-Lite
Sticky-join
FO-rewritable
Guarded
EL
PTIME
47.
Linear
DL-Lite
Sticky-join
FO-rewritable
Guarded
EL
PTIME
We focus on the linear fragment:
• first-order rewriting
• semantic query optimizations
52. DL-Lite: Popular family of DLs with highly tractable data complexity
DL-Lite TBox Datalog Representation
DL-Litecore
promoter v dealsWith professor(X) Y teachesTo(X,Y)
promoter v customer professor(X),student(X)
DL-LiteR
promotes¡ v isAdvertised promotes(X,Y) isAdvertised(Y,X)
DL-LiteF
funct( supervises- ) supervises(Y,X),supervises Y,X Y = Z
62. Schema
SELECT promoter
FROM promotesTo PT, customer C
WHERE PT.promoted = C.name
UNION
SELECT promoter
FROM promotesTo PT1, promotesTo PT2
WHERE PT1.promoted = PT2.promoted
UNION
SELECT name
FROM promoter
63. Schema
Execute Q over D:
SELECT promoter
FROM promotesTo PT, customer C D
WHERE PT.promoted = C.name
UNION
SELECT promoter
FROM promotesTo PT1, promotesTo PT2
WHERE PT1.promoted = PT2.promoted
UNION
SELECT name
FROM promoter
98. person v 9father¡
9father v person
?:- 9father.{John} u person
?:- 9father¡ u 9father.{John} u person
99. person v 9father¡
9father v person
?:- 9father.{John} u person
?:- 9father¡ u 9father.{John} u person
9father¡, 9father.{John}, person
100. person v 9father¡
9father v person
?:- 9father.{John} u person
?:- 9father¡ u 9father.{John} u person
9father¡, 9father.{John}, person
father
101. person v 9father¡
9father v person
?:- 9father.{John} u person
?:- 9father¡ u 9father.{John} u person
father
9father¡, 9father.{John}, person
father
102. person v 9father¡
9father v person
?:- 9father.{John} u person
Model true:- 9father¡ u 9father.{John} u person
father
9father¡, 9father.{John}, person
father