![Page 1: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/1.jpg)
Holistic Twig Joins:Optimal XML Pattern Matching
Written by:Nicolas BrunoNick Koudas
Divesh Srivastava
Presented by:Jose Luna
John Bassett
![Page 2: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/2.jpg)
What is XML?
• Extensible Markup Language
• Tag-based markup language that allows you to share structured information
• Information is easily transferred across systems
![Page 3: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/3.jpg)
XML Example
![Page 4: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/4.jpg)
Twigs
• A twig is simply a subtree• Example (ignore numbers for now):
![Page 5: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/5.jpg)
What is XQuery?
• Query language designed to query collections of XML data
• XQuery is a full-fledged query language, but we are only concerned with ancestor-descendent and parent-child relationships.
![Page 6: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/6.jpg)
XQuery Relationships
• Single line indicates parent-child relationship
• Double line indicates an ancestor-descendent relationship
![Page 7: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/7.jpg)
XQuery Example 1
• Query:book[title = ‘XML’ and year = ‘2000’]
• Associated query tree:
![Page 8: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/8.jpg)
XQuery Example 2
• Query:book[title = ‘XML’]//author[fn =
‘jane’ AND ln = ‘doe’]
• Associatedquery tree:
![Page 9: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/9.jpg)
![Page 10: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/10.jpg)
XB-Trees
• An XB-Tree is simply a B-Tree that is designed to index this XML data using the positional data
• Indexing using (LeftPos : RightPos)
• Querying is done just as is done in a regular B-Tree
![Page 11: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/11.jpg)
XB-Tree Example
![Page 12: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/12.jpg)
Experimental Results
![Page 13: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/13.jpg)
Experimental Results
![Page 14: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/14.jpg)
Experimental Results
![Page 15: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/15.jpg)
Experimental Results
![Page 16: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/16.jpg)
Experimental Results
![Page 17: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/17.jpg)
Experimental Results
![Page 18: Holistic Twig Joins: Optimal XML Pattern Matching](https://reader035.vdocument.in/reader035/viewer/2022062502/56815a94550346895dc80efc/html5/thumbnails/18.jpg)
Questions?
Thank you!