130 likes | 226 Views
Template-Based Wrappers in the TSIMMIS System. Joachim Hammer Hector Garcia-Molina Svetlozer Nestorov Ramana Yerneni Marcus Breunig Vasilia Vassalos. SIGMOD97. Wrapper. Problem: A lot of effort required to develop and write a wrapper Solution Wrapper implementation toolkit
E N D
Template-Based Wrappers in the TSIMMIS System Joachim Hammer Hector Garcia-Molina Svetlozer Nestorov Ramana Yerneni Marcus Breunig Vasilia Vassalos SIGMOD97
Wrapper • Problem: A lot of effort required to develop and write a wrapper • Solution • Wrapper implementation toolkit • Template-based translation technology
OEM • Every object has an OID, type, label, and value. • OEM Object Example (omitting the type and OID)
MSL • A rule-based language • MSL rule • Head • Tail
Example • Assumption • A relational database contains bibliographic information about books and papers • The database accepts SQL queries • The wrapper accepts MSL queries • Parser • Matcher • Engine
MSL Query Find all publications labeledbookwhich have subobjectsyearandauthor, and for which the author field has value “Jones” and the year field value is less than1984. Parser
Template Rule “Parameterized MSL query” Matcher
Template Rule (Cont.) “Parameterized MSL query” Action: // $$ = “select * from book Where author = ” $X “Parameterized SQL query” “Jones”
Native SQL Query select * from book where author = “Jones”
Postprocessing B: -B: <book { <year Y>}> AND lt(Y, 1984) Engine select * from book where author = “Jones”
Demo • A university-owned legacy system called FOLIO, which is accessible through an interactive front-end (called INSPEC) • A Sybase relational DBMS which is accessible through SQL • A collection of UNIX files which is accessible through a Perl script file • A World-Wide Web source which is accessible through a WWW extraction utility
Conclusion • Wrappers hide all source specific details from the application/end user • Quickly enhance the query capabilities of a wrapper • Change the resulting answer structures • MOBIE