18
Holistic Twig Joins: Optimal XML Pattern Matching Written by: Nicolas Bruno Nick Koudas Divesh Srivastava Presented by: Jose Luna John Bassett

Holistic Twig Joins: Optimal XML Pattern Matching

  • Upload
    leone

  • View
    36

  • Download
    0

Embed Size (px)

DESCRIPTION

Holistic Twig Joins: Optimal XML Pattern Matching. Written by: Nicolas Bruno Nick Koudas Divesh Srivastava Presented by: Jose Luna John Bassett. What is XML?. Extensible Markup Language Tag-based markup language that allows you to share structured information - PowerPoint PPT Presentation

Citation preview

Page 1: Holistic Twig Joins: Optimal XML Pattern Matching

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

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

XML Example

Page 4: Holistic Twig Joins: Optimal XML Pattern Matching

Twigs

• A twig is simply a subtree• Example (ignore numbers for now):

Page 5: Holistic Twig Joins: Optimal XML Pattern Matching

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

XQuery Relationships

• Single line indicates parent-child relationship

• Double line indicates an ancestor-descendent relationship

Page 7: Holistic Twig Joins: Optimal XML Pattern Matching

XQuery Example 1

• Query:book[title = ‘XML’ and year = ‘2000’]

• Associated query tree:

Page 8: Holistic Twig Joins: Optimal XML Pattern Matching

XQuery Example 2

• Query:book[title = ‘XML’]//author[fn =

‘jane’ AND ln = ‘doe’]

• Associatedquery tree:

Page 9: Holistic Twig Joins: Optimal XML Pattern Matching
Page 10: Holistic Twig Joins: Optimal XML Pattern Matching

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

XB-Tree Example

Page 12: Holistic Twig Joins: Optimal XML Pattern Matching

Experimental Results

Page 13: Holistic Twig Joins: Optimal XML Pattern Matching

Experimental Results

Page 14: Holistic Twig Joins: Optimal XML Pattern Matching

Experimental Results

Page 15: Holistic Twig Joins: Optimal XML Pattern Matching

Experimental Results

Page 16: Holistic Twig Joins: Optimal XML Pattern Matching

Experimental Results

Page 17: Holistic Twig Joins: Optimal XML Pattern Matching

Experimental Results

Page 18: Holistic Twig Joins: Optimal XML Pattern Matching

Questions?

Thank you!