Computing Capabilities of Mediators: Ramana Yerneni Chen Li Hector Garcia-Molina Jeffrey Ullman
Computing Capabilities of Mediators: Ramana Yerneni Chen Li Hector Garcia-Molina Jeffrey Ullman
Computing Capabilities of Mediators: Ramana Yerneni Chen Li Hector Garcia-Molina Jeffrey Ullman
of Mediators
Ramana Yerneni
Chen Li
Hector Garcia-Molina
Jeffrey Ullman
Wrapper Architecture
User Query
Mediator Catalog
Wrapper Wrapper
Attribute Adornments:
– Adornment f : for free
– Adornment u: for unspecifiable
– Adornment b: for bound
– Adornment c[s] : for compulsory constant
– Adornment o[s] : for optional constant
Capabilities of Data Sources
R ( x1, Y, Z ) R ( X, Y, Z )
R(X Y Z) {b u f }
R(X Y Z) {u b f }
Exported Views
Data Source
Pathway
Union Views
– Variable Adornments in Union View are
computed from base view adornments
– Mapping Function
Simple Mediators
Mapping Function:
f o[s3] b c[s4] u
f f o[s3] b c[s4] u
o[s1] o[s1] o[s1Is3] c[s1] c[s1Is4] u
b b c[s3] b c[s4] -
c[s2] c[s2] c[s2Is3] c[s2] c[s2Is4] -
u u u - - u
Simple Mediators
R(X, Y, Z) {b f u} R(X, Y, Z) {f b u}
Data Data
Source Source
Simple Mediators
Union of two base views with multiple
templates
– Cross product of two template sets
– For each pair apply mapping function
Join Views
– Non-join attribute adornments are copied as
they are in join view
– Join attributes are computed using mapping
function
R1R2(X, Y, Z) { b b u }
Mediator Join View
R1(X,Y) {b f } R2(Y,Z) {b u}
Data Data
Source Source
Simple Mediators
Selection Views
– Pass the query to underlying data source as it is
if it fits the template
– Filter the results according to selection
predicates
Projection Views
– Hidden attributes are left unspecified
– Works only if hidden attribute adornments are
f, u, o
Pathway
Dynamic mediators
R(X, Y, Z) { b u u } {bff}
Mediator Union View
R(x1,y1,Z) R(x1,Y,z1)
R(X,Y,Z){b f u } R(X,Y,Z){b u f }
Data Data
Source Source
Advance Techniques in
Mediators
f o[s3] b c[s4] u
f f f b c[s4] f
o[s1] f f b c[s4] b
b b b b c[s4] b
c[s2] c[s2] c[s2Is3] c[s2] c[s2Is4] c[s2]
u f f b c[s4] f
Advance Techniques in
Mediators
Join Views
– Non-join attribute adornments are copied
as they are
– Passing join attribute bindings from left
to right view
– Join attribute adornments are computed
using mapping function
Advance Techniques in
Mediators
Join views: passing bindings
R(x1,Z,V)
R(X, Z, V) { b b f } { bff}
Mediator Join View
R(x1,Z) R(z1,V)
R1(X,Z){b f } R2(Z,V){b f }
Data Data
Source Source
Pathway
Dynamic mediators
Liberal templates
– Answerability depends on state of data in
data source
– Can’t be always answered
Conservative templates
– Can always be answered
– Computed using techniques discussed in
earlier slides
Dynamic Mediators
R(X, Y, Z) { b c[s] f } { b f f }
Mediator Join View
R1(x1,Y) R(y1,Z)
R1(X,Y){b f } R2(Y,Z){c[s] f }
Data Data
Source Source
Dynamic Mediators
Simple Mediators
Mediators employing advanced
techniques
– Post Processing
– Passing bindings
Dynamic mediators
– Liberal Templates
Pathway
Dynamic mediators
b O[s2]
C[s1] u
Concise Capability
Description
Subsumption test
– Template T subsumes T1 iff
Every attribute x in T1 is atleast as
restrictive as T
Subsumption test partitions the set of
templates
Select the template which subsumes
all other templates in a partition
Pathway
Dynamic mediators