combining dependent annotations for relational algebra
play

Combining Dependent Annotations for Relational Algebra Egor V. - PowerPoint PPT Presentation

Combining Dependent Annotations for Relational Algebra Egor V. Kostylev, Peter Buneman University of Edinburgh Theory and Practice of Provenance, 2011 Egor V. Kostylev, Peter Buneman Combining Dependent Annotations Semiring Model Domain of


  1. Combining Dependent Annotations for Relational Algebra Egor V. Kostylev, Peter Buneman University of Edinburgh Theory and Practice of Provenance, 2011 Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  2. Semiring Model Domain of annotations for positive relational algebra (SPJU) is expected to be a semiring [Green, et al.] What to do if we need to annotate a database with 2 domains R 1 and R 2 ? Simple answer: the set of pairs R 1 × R 2 . Does it always work? Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  3. Semiring Model Domain of annotations for positive relational algebra (SPJU) is expected to be a semiring [Green, et al.] What to do if we need to annotate a database with 2 domains R 1 and R 2 ? Simple answer: the set of pairs R 1 × R 2 . Does it always work? Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  4. Semiring Model Domain of annotations for positive relational algebra (SPJU) is expected to be a semiring [Green, et al.] What to do if we need to annotate a database with 2 domains R 1 and R 2 ? Simple answer: the set of pairs R 1 × R 2 . Does it always work? Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  5. Example Exports : CName Goods Time Customers Greece Food 2004-2008 UK, Germany Greece Textile 2007-2010 Germany, Italy, Cyprus Time – sets of years with ∪ and ∩ as operations Customers – sets of countries with ∪ and ∩ as operations Q = π CName ( Exports ) : CName Time Customers Greece 2004-2010 UK, Germany, Italy, Cyprus Is it the answer we expect? Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  6. Example Exports : CName Goods Time Customers Greece Food 2004-2008 UK, Germany Greece Textile 2007-2010 Germany, Italy, Cyprus Time – sets of years with ∪ and ∩ as operations Customers – sets of countries with ∪ and ∩ as operations Q = π CName ( Exports ) : CName Time Customers Greece 2004-2010 UK, Germany, Italy, Cyprus Is it the answer we expect? Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  7. Graphical representation ([2004-2008], {UK, Germany}) ([2007-2010], {Germany, Italy, Cyprus}): Cyp Ita Ger UK ’04 ’05 ’06 ’07 ’08 ’09 ’10 Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  8. Graphical representation ([2004-2010], {UK, Germany, Italy, Cyprus}) Cyp Ita Ger UK ’04 ’05 ’06 ’07 ’08 ’09 ’10 Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  9. Combined domain of dependent annotations It is impossible to represent the desired set of dots by a single pair of elements from the combining domains. Combined annotation – a set of pairs from R 1 × R 2 . Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  10. Combined domain of dependent annotations It is impossible to represent the desired set of dots by a single pair of elements from the combining domains. Combined annotation – a set of pairs from R 1 × R 2 . Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  11. Example: Combined annotation λ 1 = {([2004-2008], {UK, Germany}) ([2007-2010], {Germany, Italy, Cyprus})}: Cyp Ita Ger UK ’04 ’05 ’06 ’07 ’08 ’09 ’10 Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  12. Example: Combined annotation λ 2 = {([2004-2006], {UK, Germany}) ([2007-2008], {UK, Ger, Italy, Cyprus})}: ([2009-2010], {Germany, Italy, Cyprus})}: Cyp Ita Ger UK ’04 ’05 ’06 ’07 ’08 ’09 ’10 Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

  13. Semiring of Combined Annotations define an equivalence in combined annotations define a semiring of equivalence classes of combined annotations define a normal form for equivalence classes design an algorithm to compute normal forms Do it carefully to make it work for (almost) all semirings (no difference, idempotence, etc.) Egor V. Kostylev, Peter Buneman Combining Dependent Annotations

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend