1 XML warehouse – 2002 1 XML Warehousing and Xyleme S. Abiteboul INRIA and Xyleme December 2002.

Slides:



Advertisements
Similar presentations
Symantec 2010 Windows 7 Migration EMEA Results. Methodology Applied Research performed survey 1,360 enterprises worldwide SMBs and enterprises Cross-industry.
Advertisements

Symantec 2010 Windows 7 Migration Global Results.
1 A B C
Simplifications of Context-Free Grammars
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
AP STUDY SESSION 2.
1
Xyleme, January Zurich1 A Dynamic Warehouse for the XML data of the Web Serge Abiteboul INRIA & Xyleme SA
Distributed Systems Architectures
Chapter 7 System Models.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
Copyright © 2013 Elsevier Inc. All rights reserved.
STATISTICS INTERVAL ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
STATISTICS POINT ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
David Burdett May 11, 2004 Package Binding for WS CDL.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Advanced Tools for Account Searches and Portfolios Dawn Gamache Cindy Bylander.
Media-Monitoring Final Report April - May 2010 News.
Welcome. © 2008 ADP, Inc. 2 Overview A Look at the Web Site Question and Answer Session Agenda.
Break Time Remaining 10:00.
EE, NCKU Tien-Hao Chang (Darby Chang)
Database Performance Tuning and Query Optimization
PP Test Review Sections 6-1 to 6-6
Employee & Manager Self Service Overview
1 IMDS Tutorial Integrated Microarray Database System.
Multicore Programming Skip list Tutorial 10 CS Spring 2010.
Briana B. Morrison Adapted from William Collins
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
 Copyright I/O International, 2013 Visit us at: A Feature Within from Item Class User Friendly Maintenance  Copyright.
Copyright © [2002]. Roger L. Costello. All Rights Reserved. 1 XML Schemas Reference Manual Roger L. Costello XML Technologies Course.
31242/32549 Advanced Internet Programming Advanced Java Programming
FAFSA on the Web Preview Presentation December 2013.
SLP – Endless Possibilities What can SLP do for your school? Everything you need to know about SLP – past, present and future.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
Artificial Intelligence
2004 EBSCO Publishing Presentation on EBSCOadmin.
: 3 00.
5 minutes.
Distributed Database Management Systems
Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
FIGURE 12-1 Op-amp symbols and packages.
Converting a Fraction to %
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Clock will move after 1 minute
famous photographer Ara Guler famous photographer ARA GULER.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
1 © 2006 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID Using the Cisco Technical Support & Documentation Website for Online.
Copyright Tim Morris/St Stephen's School
1.step PMIT start + initial project data input Concept Concept.
WARNING This CD is protected by Copyright Laws. FOR HOME USE ONLY. Unauthorised copying, adaptation, rental, lending, distribution, extraction, charging.
9. Two Functions of Two Random Variables
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
1 Distributed Agents for User-Friendly Access of Digital Libraries DAFFODIL Effective Support for Using Digital Libraries Norbert Fuhr University of Duisburg-Essen,
Advanced Users Training 1 ENTERPRISE REPORTING FINANCIAL REPORTS.
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Xyleme, A Dynamic Warehouse for the XML data of the Web Grégory COBENA INRIA & Xyleme SA ( ) Serge Abiteboul, INRIA & Xyleme.
Xyleme A Dynamic Warehouse for XML Data of the Web.
Presentation transcript:

1 XML warehouse – XML Warehousing and Xyleme S. Abiteboul INRIA and Xyleme December 2002

2 XML warehouse – Organization The context and motivations XML warehouse Xyleme: An XML warehouse Zooms on some aspects of the technology – Scaling – Mass storage of XML – XML query processing – Semantic integration – Web page ranking – Query subscription Xyleme : the company, in very brief

3 XML warehouse – The context The Web and XML are changing dramatically the world of distributed information

4 XML warehouse – The Web of yesterday Protocol: HTTP Documents: HTML Millions of independent web sites and billions of documents Browsing and keyword search (full-text indexing) Publication of databases using forms Data management with the Web –HTML is primarily for humans –Data management applications on the Web Based on hand-made wrappers Expensive, incomplete, short-lived, not adapted to the Web constant change No real support for distributed data management!

5 XML warehouse – What is changing Information used to live in islands and a lot of its value was wasted 1.Different formats: relational, meta data, documents and text, data exchange formats… –A Web standard for data exchange, XML, is fixing it –XML can capture all kinds of information over a wide spectrum of information –XML comes with a family of emerging standards: XML schema, XSL/T, Xquery, domain specific schemas… 2.Different computers, platforms, languages, applications –Web services, e.g., SOAP, are fixing it –SOAP allows ubiquitous computing on the Internet –SOAP comes with a family of emerging standards: WSDL, UDDI

6 XML warehouse – What is changing XML and Web services provide a uniform access to information, independent of platform, system, language, communication protocol and data format… The dream for distributed data management The gathering, integration, consolidation, analysis of distributed information become feasible at a much lower cost

7 XML warehouse – (1) XML covers the information spectrum Structured Data Minimal structure Meta dataHierarchy + BooksContractsCatalogs Bank accounts s Financial Reports Insurance Policies Economical Analysis Derivatives Inventory Political analysis Insurance Claims Financial NewsSports News Resumes

8 XML warehouse – Very structured information such as databases –Most DBMS now export in XML Semi-structured data such as data exchange formats (ASN.1, SGML), e.g., technical documentation Documents –Meta-data: Author, date, status –Existing structure in them: chapter, section, table of content and index –Possibly tagging of elements in it (citation, lists) –Links to other documents Meta data for unstructured data such as images and sound Plain text XML covers the information spectrum XML

9 XML warehouse – XMLs asset: the marriage of text and structure labeled ordered trees where leaves are text Marriage of document and database worlds Marriage of full text indexing (keyword search) and structure indexing (SQL-style query) Is it the ultimate data model? No Purely syntax – more semantics needed Is it OK for now? Definitely yes (because it is a standard)

10 XML warehouse – XMLs asset: typing Applications need typing and XML data can be typed if needed (DTD and XML schema) Trees Logical Granularity – neither page or document level – but the piece of information that is needed Semantics and structure are in tags and paths –product-table/product/reference –product-table/product/price product designation description price reference product-table

11 XML warehouse – HTML Ref Name Price X23 Camera R2D2 Robot Z25 PC Information System HTML The X23 new camera replaces the X22. It comes equipped with a flash (worth by itself $ ) and provides great quality for only $. The new robot R2D2 … Text + presentation - Where is the data ? hard

12 XML warehouse – XML Ref Name Price X23 Camera R2D2 Robot Z25 PC Information System XML camera … Robot …... Data + Structure = Semistructured (presentation elsewhere) easy

13 XML warehouse – (2) Web services and ubiquitous distributed computing Possibility to activate a method on some remote web server Exchange information in XML: input and result are in XML Ubiquitous XML distributed computing infrastructure 2 main applications –E-commerce –Access to remote data With XML and Web services, it is possible –To get information from virtually anywhere –To provide information to virtually anywhere

14 XML warehouse – Accessing remote information Application using gene banks Query some data services that provide candidate genes Gene banks processing Use some processing services Heterogeneous formats, protocols, etc.

15 XML warehouse – Same with web services Query some data services that provide candidate genes Gene banks processing Use some processing services Web Application using gene banks Uniform access to information

16 XML warehouse – XML and Web services Exchange of information –E-commerce, B2B, G2C –Cooperative work Information brokers –Web sites, portals –Content publication in general Mediation mode: get the XML pages when needed Warehouse mode: load them in advance

17 XML warehouse – Advantages of a warehouse approach Allows for support of complex query processing with high performance Allows for complex analysis of the data Allows for enriching the information Allows for better monitoring of information Allows for versioning, archiving, temporal queries if needed Mediator approach is preferable or compulsory in some applications –Supply chain –Comparative shopping –Typically for volatile information such as plane ticket price

18 XML warehouse – XML warehouse

19 XML warehouse – Main functionalities Feeding Enrichment ExploitationRepository Admin GUI User GUI Editing & Pub Access Reporting Sub View & Integration User GUI API Warehousing Analysis (data warehouse) (OLAP)

20 XML warehouse – Main functionalities (1) Feeding Loading from the Web (Internet and Intranet) –Web search –Web crawl –Access Web data via forms or Web services Plug-ins to load from –File systems, document management systems –Data bases, LDAP –Newsgroup, s –Other applications Extraction and transformation –XSL-T or Xquery mappings for XML sources –XML-izers to load data from other formats Monitoring of the feeding

21 XML warehouse – Main functionalities (1) Feeding – continued User feeding –Document editing –Meta data editing –Using WebDAV protocol Publication By GUI or from programs (SOAP-based API)

22 XML warehouse – Main functionalities (2) Repository Storage of massive volume of XML (terabytes) Indexing of massive volume of XML –By structure –By full-text –Linguistic support: stemming, synonyms, etc. Very efficient XML query processing Importance ranking Monitoring of the warehouse (support for subscriptions) Access control and security Versioning, archiving Recovery No full transaction mechanism

23 XML warehouse – Main functionalities (3) Enrichment Global organization –Global schema management Management of collections –Incorporate domain ontologies and thesauri –Document classification –Cleaning by filtering out documents from collections, etc. Document enrichment –Concept extraction and tagging –Cleaning inside de document –Summarization, etc. Relationships between documents –Tables of contents –Tables of index –Cross referencing, etc.

24 XML warehouse – Main functionalities (4) View and integration View management –Document restructuring/mapping –Schema to schema mapping Semantic integration –Manual for complex ones and (semi-) automatic for simple ones –Tools to analyze a set of schemas –Tools to integrate them –Processing for queries on integration view Management of virtual data in a mediator style

25 XML warehouse – Functionalities (5) Exploitation Access to the warehouse –Browsing –Querying by keywords, XPaths or Xquery –Temporal queries Query subscription Reporting –Generation of complex reports with pointers to documents, counts, abstracts… –Organized by collections, content, domains… By GUI or from programs (Web service-based API)

26 XML warehouse – Admin: Specify the lifecycle of information in the warehouse starting from its acquisition Specify with parameters (in red): documents to process Add from a toolbox, some processing to apply (in pink) Specify when processing should be applied (in green) Loading from /u/news/* start now Transformation By some XML-izer X flow Storage in Collection Z flow Classification off flow Concept Tagging off flow Indexing flow Monitoring of Y flow

27 XML warehouse – Specifying the enrichment What processing should be performed –Applications that come with the system –Arbitrary processing provided as Web services Interface of services –XML input: the documents or collection of documents in the warehouse to be processed –XML output: the result Where to plug the result –Where to store the new documents (collections, names) –Where to put enrichments in existing documents When to start the processing –At the time the document is loaded –At some later time, assuming some information has already been gathered (dependencies)

28 XML warehouse – Choose presentation style User: queries and reporting Choose the collections of interest Classify/group results for presentation and drilling Quantity of results Preference ranking and possible relaxation Choose the criteria of selection Choose what to extract as a result WHERE CLAUSESELECT CLAUSEFROM CLAUSE PREFER CLAUSE ORGANIZE CLAUSE STYLE CLAUSE

29 XML warehouse – Example From collections MuséeRodin, WebMuseum, LACMA Where Art_Item/ artist [Name=Rodin] Select Name, Owner, Annotations Prefer 1.Rodin in title page 2.Owner is public or owner is in France –Get first 20 Organize as 1.Art_Item/material sculpture, painting, others 2.Owner Present as …

30 XML warehouse – Xyleme An XML warehouse Zooms on some aspects of the technology

31 XML warehouse – Xyleme: a dynamic XML warehouse Scaling Feeder –E.g., loading with a single PC millions of Web documents per day – and scale up with more machines Repository –E.g., storing and indexing of tera Bytes of XML (other formats, e.g., pdf) Enrichment –E.g., tools (together with partner) for classification and concept extraction View and semantic integration –E.g., a suite of tools of XML integration Exploitation –E.g., access via SOAP and graphic interfaces

32 XML warehouse – An architecture to scale

33 XML warehouse – The scaling Size of data: billions of XML documents Size of data and index: terabytes Number of customers –thousands of simultaneous queries –millions of subscriptions An architecture based on distribution

34 XML warehouse – Architecture Cluster of PCs Runs on Linux and C++ (also Solaris) Communications –local: Corba (Orbacus) –external: HTTP, SOAP Distribution between autonomous machines

35 XML warehouse – Functional architecture Repository and Index Manager Change Control Query Processor Semantic Module User Interface Xyleme Interface I N T E R N E T Web Interface Acquisition & Crawler Loader

36 XML warehouse – Architecture and scaling Index I N T E R N E T Change Control and Semantic Integration Change Control and Semantic Integration ETHERNETETHERNET Repository RepositorryRepository Loader |Query Acquisition and Maintenance Acquisition and Maintenance

37 XML warehouse – Data Acquisition and Maintenance of Web pages (internet or intranet)

38 XML warehouse – Discover HTML/XML pages on the web (intranet or internet) Parse/load pages and follow links Manage metadata for the known pages Do this under bounded resources –Network bandwidth –Memory and disk resources Tested on the Internet in October 2001 –Millions of pages crawled per day on each crawler –Up to 10 crawlers and close to 1 billion HTML/XML pages discovered in a couple of months Crawl le Web

39 XML warehouse – Optimization problem –Decide which page to crawl or refresh next to optimize the quality of the warehouse Criteria: –Read more often important pages Based on customers preferences Page importance can also be used to order query results –Dont read a page that is probably up-to-date Uses an estimate of the change frequency for each page Advantages –Have a fresh view of useful portions of information Page Scheduling Optimization

40 XML warehouse – Determine which page to read next –minimize a particular cost function under some constraint (bandwidth of crawlers) The penalty for a page takes into account: –importance of the page (to be defined next) –customer needs (obtained via pub/sub) –staleness of the data penalty for being out of date penalty for aging The page scheduler fully controls the crawling –vs. random crawling in classic search engines Page scheduling

41 XML warehouse – Based on customers criteria and on the link structure of the web Intuition: a page is important if many important pages reference it Fixpoint definition: importance vector Imp –Proposed by IBM; used by search engines such as Google –Link matrix: M(i,j) if page i refers to page j –Outdegree of page i: out(i) –Imp 0 (k) = 1/N (initialization) –Imp m (k) = i [M(i,k) * Imp m-1 (i)/out(i) ] (iteration) –Imp is the limit Page Importance

42 XML warehouse – Novel technology developed by Xyleme Patent pending On-line evaluation of page importance Use much less resources Faster reaction to changes on the web Page Importance

43 XML warehouse – XML Repository

44 XML warehouse – Document systems –Good for keyword search –No or inefficient support for structure search Relational store (e.g., Oracle 8i) –Well adapted for some applications –Very typed data and Tables: efficient –Otherwise: too many joins and inefficient Object database store (e.g., Excellon) and Native XML databases (e.g., Tamino) –Same issues Xyleme XML Native storage Storing XML

45 XML warehouse – Goal –minimize I/O for direct access and scanning –efficient direct accesses both with fulltext indexing and structure indexing –good compaction but not at the cost of access Efficient storage of trees –use fixed length storage pages –variable length records inside a page Main issue: tree balancing Repository

46 XML warehouse – Record 1 Record 3Record 2 Tree Balancing

47 XML warehouse – Large collections may use several records Tree Balancing

48 XML warehouse – Semantic Data Integration

49 XML warehouse – Based on word occurrences in document and statistical resources –Classification by semantic domain –Classification by language Use the XXX classifier Classification

50 XML warehouse – Semantic Integration Web Heterogeneity Many possible types for data in a particular domain, many DTDs Semantic Integration –one abstract DTD for the domain –gives the illusion that the system maintains an homogeneous database for this domain 1 domain = 1 abstract DTD

51 XML warehouse – Choose an abstract DTD for each domain –For each concrete DTD in a domain, find how it relates to the abstract DTD using linguistic tools such as WordNet –Provide relationships between paths in the concrete and abstract DTD –Possibly automatic, manual or hybrid With manual mapping, a domain expert may specify much more complex views Query processing: process queries on the Abstract DTD Views

52 XML warehouse – Query Processing

53 XML warehouse – Today: A mix of OQL and XQL Tomorrow: the future W3C standard Example select product/name, product/price from doc in catalogue, product in doc/product where product//components contains flash and product/description contains camera Query Language

54 XML warehouse – Cluster of documents = physical collection of documents ( semantic domain) Distribution Storage machine –in charge of a cluster of documents Index machine –index for a cluster Data Distribution

55 XML warehouse – Standard inverted index –word documents that contain this word Xyleme index –word elements that contain this word document + element identifier Goal: more work can be performed without accessing data Step0: Indexing

56 XML warehouse – Query on an abstract dtd Localization of machines that host concrete DTDs that will participate in the query global query on abstract dtd union of queries on local machines local queries catalogue/product/price relevant for machine 56 machine 45 Step1: Localization

57 XML warehouse – Algebraic rewriting Linear search strategy based on simple heuristics –use in memory indexes –minimize communication Optimization of the global plan Optimization of the local plans Step2: Optimization

58 XML warehouse – A plan usually consists of: 1. parallel translation from abstract queries to concrete patterns on the relevant index machines 2. parallel index scans to identify the relevant elements for a concrete pattern 3. parallel construction of resulting elements 4. pipeline evaluation (i.e., no intermediate data structure) Note: 2. Requires smart indexes Step3: Execution

59 XML warehouse – For each concrete pattern, the local plan is optimized dynamically for each concrete pattern scan the element ids &234 &177 for catalogue/product/price scan relevant concrete pattern d1//camera/price d2/product/cost d3/piano/price... Abstract2Concrete

60 XML warehouse – Essential for query processing Identifier = (preorder rank/postorder rank) –X ancestor of Y pre(X) post(Y) –E.g., 2 2 => (2,4) ancestor (5,2) A B C D E F G Text Identifiers

61 XML warehouse – Change Control

62 XML warehouse – Users are often interested in changes to the web Change monitoring –query subscription Soon to come: Version management –representation and storage of changes Change management

63 XML warehouse – Users subscribe to certain events such as Update of a particular page, a page in a given site Discovery of a new page containing some specific words Insertion of a particular element in some pages (new products in a catalog) Detection of illegal copies of selected documents Users may request to be notified Immediately at the time the event is detected Regularly, e.g., weekly After a certain number of event detections Query Subscription

64 XML warehouse – subscription myPariscope % what are the new movie entries in Pariscope site monitoring newMovies select URL where URL extends and new(self) % manage the changes in the movies showing in Paris continuous delta Showing select... from... where when daily notify daily% send me a daily report Examples

65 XML warehouse – HTML parser XML loader metadata manager d/46 complex event detection atomic event 46: URL matches pattern atomic event 67: XML document contains the tag soccer d/46,67 Loading of millions of pages/day d loading document Atomic Events

66 XML warehouse – HTML parser XML loader complex event detection complex event 12: 67 & 46 (XML document contains the tag soccer and URL matches pattern Several millions of pages crawled per day Hundreds of millions of alerts raised Millions of subscriptions Complex Events

67 XML warehouse – Very efficient/scalable algorithm for complex event detection Notifications by – –Web posting –Web services in SOAP notification processor Millions of notifications/day complex event detection alerts notifications Notification Processing

68 XML warehouse – Xyleme in short Spin-off of lINRIA (National Research Institute) –Technology developed in research project of 60 man/years Creation of Xyleme SA in September 2000 Now about 25 persons : 13 R&D, 4 Services, 10 marketing, sales & admin. Customers include: Press agency (AFP), Newspaper groups (Moniteur, Le Monde), National library (BNF) First round of capital in 2000 (SGAM & Viventures). Second round in 2002 (Deutsche Bank)

69 XML warehouse – Thank you (*) If you want to know more about Xyleme