query driven data completeness assessment
play

Query-driven Data Completeness Assessment Simon Razniewski Free - PowerPoint PPT Presentation

Query-driven Data Completeness Assessment Simon Razniewski Free University of Bozen-Bolzano, Italy Part I joint work with Flip Korn, Werner Nutt, Divesh Srivastava Background 2011 - 2014: PhD (on reasoning about data completeness) 2014


  1. Query-driven Data Completeness Assessment Simon Razniewski Free University of Bozen-Bolzano, Italy Part I joint work with Flip Korn, Werner Nutt, Divesh Srivastava

  2. Background – 2011 - 2014: PhD (on reasoning about data completeness) – 2014 - now: Assistant professor – Research visits at UCSD (2012), AT&T Labs-Research (2013), UQ (2015), MPII (now) Bolzano 1/8 th of EU apples 2 Trilingual Ötzi

  3. Background (2) • Research centered on data completeness • Completeness often a problem in – Data integration – Complex data-generating processes – Large data/knowledge bases 3

  4. Outline Part I: Completeness reasoning in databases Part II: Assessing completeness of general-purpose knowledge bases (=Wikidata, Google Knowledge Graph, YAGO, ..) 4

  5. Part I: Reasoning in databases • Make data more complete – Missing value imputation – Information extraction – Data fusion – … • Reason about (in-)completeness information – Missing records in relational databases (VLDB 2011) – Null values (CIKM 2012) – RDF databases (ISWC 2013) – Derivations from process states (BPM 2013) – Spatial data (SIGSPATIAL 2014) – An algebra for completeness information (SIGMOD 2015) 5

  6. Motivation: Data warehouse of a telecommunication company Admin John knows Team table is complete (HR says so) • Maintenance is complete for teams A, B and C • • their reporting systems export data automatically Warnings is complete for all of Week 1, • and Monday and Wednesday of Week 2 • Potential data loss due to a system failure on Tuesday • Data further than Wednesday maybe not fully loaded Maintenance Warnings Teams ID resp reason day week ID message name specialization tw37 A disk failure Mon 1 tw37 high voltage A hardware tw59 D software crash Fri 1 tw37 high voltage B hardware tw83 B unknown Wed 2 tw37 overheat C network tw91 C update failure Tue 1 tw59 auto restart C software tw91 C network error Fri 1 tw59 overheat D network Mon 2 tw83 high voltage Tue 2 tw83 auto restart 6

  7. John wants to know “Give me all warnings in Week 2 that are generated by objects in maintenance with a hardware team.” Is this all that hardware SELECT * teams have FROM Warnings W JOIN Maintenance M ON W.ID = M.ID done? JOIN Teams T ON M.responsible = T.name WHERE W.week = 2 AND T.specialization = 'hardware' W.Day W.week W.ID W.message M.ID M.resp M.reason T.name T.specialization Wed 2 tw37 overheat tw37 A disk failure A hardware Mon 2 tw83 high voltage tw83 B unknown B hardware Tue 2 tw83 auto restart tw83 B unknown B hardware 7

  8. John reasons Maintenance Warnings Teams ID resp reason day week ID message name specialization “ Give me all warnings in Week 2 that are generated by objects in maintenance with a hardware team.” Warnings is complete for Week 1 and Monday and Wednesday of Week 2 • Maintenance is complete for teams A, B and C • Team is complete •  The query result definitely contains all warnings from – Monday for team A – Monday for team B – Monday for team C – Wednesday for team A – Wednesday for team B 8 – Wednesday for team C

  9. John looks at the data “Give me all warnings in Week 2 that are generated by objects in maintenance with a hardware team. ” Teams  The query result definitely contains all warnings from name specialization – Monday for team A = All data from Monday A hardware – Monday for team B B hardware – Monday for team C C network – Wednesday for team A = All data from Wednesday C software – Wednesday for team B D network – Wednesday for team C • HR says: The team table is complete ! 9

  10. Problems “Warnings are complete for Week 1” (Input) 1. How can we formally describe complete parts of a database? “ The query result contains all warnings (Output) from Monday of Week 2 for Team A” 2. How can we use database completeness information to identify complete parts of query answers? 10

  11. Formalism: Patterns Warnings Warnings Warnings Warnings Warnings We have all warnings from Week 1 day day day day day week week week week week ID ID ID ID ID message message message message message Mon Mon Mon Mon Mon 1 1 1 1 1 tw37 tw37 tw37 tw37 tw37 high voltage high voltage high voltage high voltage high voltage We have all warnings from Fri Fri Fri Fri Fri 1 1 1 1 1 tw37 tw37 tw37 tw37 tw37 high voltage high voltage high voltage high voltage high voltage Monday of Week 2 Wed Wed Wed Wed Wed 2 2 2 2 2 tw37 tw37 tw37 tw37 tw37 overheat overheat overheat overheat overheat Tue Tue Tue Tue Tue 1 1 1 1 1 tw59 tw59 tw59 tw59 tw59 auto restart auto restart auto restart auto restart auto restart Fri Fri Fri Fri Fri 1 1 1 1 1 tw59 tw59 tw59 tw59 tw59 overheat overheat overheat overheat overheat Mon Mon Mon Mon Mon 2 2 2 2 2 tw83 tw83 tw83 tw83 tw83 high voltage high voltage high voltage high voltage high voltage Tue Tue Tue Tue Tue 2 2 2 2 2 tw83 tw83 tw83 tw83 tw83 auto restart auto restart auto restart auto restart auto restart * * * * 1 1 1 1 * * * * * * * * Mon Mon Mon 2 2 2 * * * * * * • Less expressive than previously known formalisms (views, Datalog/first-order queries, ..) • Can be expressed in the same schema as the data • Efficient reasoning 11

  12. John’s knowledge expressed by patterns Maintenance is complete Team table is complete Warnings is complete for all of Week 1, for teams A, B and C and Monday and Wednesday of Week 2 Teams Maintenance Warnings name specialization ID resp reason day week ID message A hardware tw37 A disk failure Mon 1 tw37 high voltage B hardware tw59 D software crash Fri 1 tw37 high voltage C network tw83 B unknown Wed 2 tw37 overheat C software tw91 C update failure Tue 1 tw59 auto restart D network tw91 C network error Fri 1 tw59 overheat * * * A * Mon 2 tw83 high voltage * B * Tue 2 tw83 auto restart * C * * 1 * * Mon 2 * * Wed 2 * * 12

  13. John’s conclusions expressed by patterns “Give me all warnings in week 2 that are generated by objects in maintenance with a hardware team.” W.Day W.Day W.Day W.week W.week W.week W.ID W.ID W.ID W.message W.message W.message M.ID M.ID M.ID M.resp M.resp M.resp M.reason M.reason M.reason T.name T.name T.name T.specialization T.specialization T.specialization Wed Wed Wed 2 2 2 tw37 tw37 tw37 overheat overheat overheat tw37 tw37 tw37 A A A disk failure disk failure disk failure A A A hardware hardware hardware Mon Mon Mon 2 2 2 tw83 tw83 tw83 high voltage high voltage high voltage tw83 tw83 tw83 B B B unknown unknown unknown B B B hardware hardware hardware Tue Tue Tue 2 2 2 tw83 tw83 tw83 auto restart auto restart auto restart tw83 tw83 tw83 B B B unknown unknown unknown B B B hardware hardware hardware Mon Mon * * * * * * * * A A * * A A * * Mon * * * * B * B * Mon * * * * C * C * Wed * * * * A * A * Wed * * * * B * B * Wed * * * * C * C *  The query result contains all warnings from • Monday for team A • … 13

  14. How to compute the completeness patterns for queries? Queries are computed by relational algebra Here: Select, project, equijoin ⋈ 𝑋.𝐽𝐸=𝑁.𝐽𝐸 ⋈ 𝑁.𝑠𝑓𝑡𝑞=𝑈.𝑜𝑏𝑛𝑓 𝜏 𝑥𝑓𝑓𝑙=2 𝜏 𝑡𝑞𝑓𝑑= "ℎ𝑥" 𝑋𝑏𝑠𝑜𝑗𝑜𝑕𝑡 𝑈𝑓𝑏𝑛𝑡 𝑁𝑏𝑗𝑜𝑢𝑓𝑜𝑏𝑜𝑑𝑓 Reasoning idea: - Apply algebra operators to completeness patterns (analogous to query result computation) 14

  15. Reasoning about selections 𝝉 𝒕𝒒𝒇𝒅= "𝒊𝒙" (𝑼) Teams name specialization name specialization name specialization ? A hardware A hardware A hardware B hardware B hardware B hardware C network * ? * C software D network * * Rule 1: Statements with * survive 15

  16. ⋈ 𝑋.𝐽𝐸=𝑁.𝐽𝐸 ⋈ 𝑁.𝑠𝑓𝑡𝑞=𝑈.𝑜𝑏𝑛𝑓 𝜏 𝑥𝑓𝑓𝑙=2 𝜏 𝑡𝑞𝑓𝑑= "ℎ𝑥" 𝑋𝑏𝑠𝑜𝑗𝑜𝑕𝑡 𝑈𝑓𝑏𝑛𝑡 𝑁𝑏𝑗𝑜𝑢𝑓𝑜𝑏𝑜𝑑𝑓 16

  17. Reasoning about selections (2) Warnings day week ID message Mon 1 tw37 high voltage 𝝉 𝒙𝒇𝒇𝒍=𝟑 (𝑿) Fri 1 tw37 high voltage Wed 2 tw37 overheat day day week week ID ID message message Tue 1 tw59 auto restart Wed Wed 2 2 tw37 tw37 overheat overheat Fri 1 tw59 overheat Mon Mon 2 2 tw83 tw83 high voltage high voltage Mon 2 tw83 high voltage Tue Tue 2 2 tw83 tw83 auto restart auto restart Tue 2 tw83 auto restart * Mon 2 ? * * * 1 * * * Wed 2 * * Mon 2 * * Wed 2 * * Rule 2: Irrelevant constants are ignored Rule 3: Selected constants survive and are promoted 17

  18. ⋈ 𝑋.𝐽𝐸=𝑁.𝐽𝐸 ⋈ 𝑁.𝑠𝑓𝑡𝑞=𝑈.𝑜𝑏𝑛𝑓 𝜏 𝑥𝑓𝑓𝑙=2 𝜏 𝑡𝑞𝑓𝑑= "ℎ𝑥" 𝑋𝑏𝑠𝑜𝑗𝑜𝑕𝑡 𝑈𝑓𝑏𝑛𝑡 𝑁𝑏𝑗𝑜𝑢𝑓𝑜𝑏𝑜𝑑𝑓 18

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