CS240A: Databases and Knowledge Bases A Taxonomy of Temporal DBs

Slides:



Advertisements
Similar presentations
TSQL 2 : QUERY LANGUAGE FOR TEMPORAL DATA CS 224 : Advanced Topics in Data Management.
Advertisements

From Handbook of Temporal Reasoning in Artificial Intelligence By Jan Chomicki & David Toman Temporal Databases Presented by Leila Jalali CS224 presentation.
1 3D_XML A three-Dimensional XML-based Model Khadija Ali, Jaroslav Pokorný Czech Technical University Prague - Czech Republic.
1 Efficient Temporal Coalescing Query Support in Relational Database Systems Xin Zhou 1, Carlo Zaniolo 1, Fusheng Wang 2 1 UCLA, 2 Simens Corporate Research.
CS240A: Databases and Knowledge Bases Temporal Applications and SQL:1999 Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
BCDM Temporal Domains - Time is linear and totally ordered - Chronons are the basic time unit - Time domains are isomorphic to subsets of the domain of.
Advanced Databases Temporal Databases Dr Theodoros Manavis
Time in Databases CSCI 6442 With thanks to Richard Snodgrass, 1985 ACM /85/005/0236.
CS240A: Databases and Knowledge Bases Introduction Carlo Zaniolo Department of Computer Science University of California, Los Angeles WINTER 2002.
CS240A: Databases and Knowledge Bases Time Ontology and Representations Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Spatio-Temporal Databases
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
CS240A: Databases and Knowledge Bases A Taxonomy of Temporal DBs Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
Time Chapter 10 © Worboys and Duckham (2004)
CS240A: Databases and Knowledge Bases Applications of Active Database Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Historical XML Databases Fusheng Wang and Carlo Zaniolo University of California, Los Angeles.
CS240A: Databases and Knowledge Bases Time Ontology and Representations Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Version Management for XML Documents Copy-Based vs Edit-Based Schemes Shu-Yao Chien Computer Science Department University of California, Los Angeles
CS240A: Databases and Knowledge Bases Introduction Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Limitations of the relational model. Just as the relational model supplanted the network and hierarchical model so too will the object – orientated model.
Recent research : Temporal databases N. L. Sarda
1 Proposal of a New SQL/MM Subproject ---SQL/MM Part 7: History April 2005 Berlin, Germany Y. Ishii, T. Kajino, Y. Noguchi, M. Inui, T. Ishizaka K. Suzuki,
Temporal DBMS JD Pack Software Architecture. Introduction  Conventional databases store “now” data  Can store huge amounts of data, but only data in.
USE OF TEMPORAL CONCEPTS IN TRANSACTIONAL DATABASES.
Fushen Wang, XinZhou, Carlo Zaniolo Using XML to Build Efficient Transaction- Time Temporal Database Systems on Relational Databases In Time Center, 2005.
ArchIS: An Efficient Transaction-Time Temporal Database System Built on Relational Databases and XML Fusheng Wang University of California, Los Angeles.
資工所 在職碩一 P 莊浚銘 Temporal Database Paper Reading Report.
CS240A: Databases and Knowledge Bases Time Ontology and Representations Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
SPATIO-TEMPORAL DATABASES Temporal Databases. Temporal Data. Modeling Temporal Data Temporal Semantics Temporal density: the time is seen as being: 
CS240A: Databases and Knowledge Bases Temporal Databases Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
CS240A: Databases and Knowledge Bases Temporal Applications and SQL Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
ArchIS: An Efficient Transaction-Time Temporal Database System Built on Relational Databases and XML Fusheng Wang University of California, Los Angeles.
Temporal Data Modeling
Where does time go ?. Applications abound Temporal database systems provide built-in support for recording and querying time-varying information Application.
CS240A: Databases and Knowledge Bases TSQL2 Carlo Zaniolo Department of Computer Science University of California, Los Angeles Notes From Chapter 6 of.
1 The T4SQL Temporal Query Language Presented by 黃泰豐 2007/12/26.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 4: Intermediate.
Chap4 Temporal Database Chap 4: Temporal Extensions to the Relational Model and SQL.
CPT-S Advanced Databases 11 Yinghui Wu EME 49.
Temporal Data Models Fabio Grandi DISI, Università di Bologna A short course on Temporal Databaes for DISI PhD students, 2016 Credits:
SPECIAL PURPOSE DATABASES 13/09/ Temporal Database Concepts  Time is considered ordered sequence of points in some granularity Use the term choronon.
CS240A: Databases and Knowledge Bases Temporal Databases Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Copyright © 2004 Pearson Education, Inc.. Chapter 24 Enhanced Data Models for Advanced Applications.
CS240A: Databases and Knowledge Bases Introduction Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Databases and DBMSs Todd S. Bacastow January
CS240A: Databases and Knowledge Bases Introduction
CS422 Principles of Database Systems Course Overview
 2012 Pearson Education, Inc. All rights reserved.
7/4/2018.
7/5/2018.
Example of a page header
CS1222 Using Relational Databases and SQL
From ER to Relational Model
Chapter 2 Database Environment Pearson Education © 2009.
Chap 2: A Prelude to Parametric Data
Spatio-Temporal Databases
Temporal Databases.
Temporal Databases.
Business Application Development
Data Access Layer (Con’t) (Overview)
Updating Databases With Open SQL
Chapter 2 Database Environment Pearson Education © 2009.
CS240A: Databases and Knowledge Bases TSQL2
Chapter 2 Database Environment Pearson Education © 2009.
Outline Introduction Background Distributed DBMS Architecture
Updating Databases With Open SQL
Presentation transcript:

CS240A: Databases and Knowledge Bases A Taxonomy of Temporal DBs Carlo Zaniolo Department of Computer Science University of California, Los Angeles

Valid Time and Transaction Time Valid Time of a fact: when the fact is true in the modeled reality Transaction Time of a fact: when it was recorded in the database Thus we have four different kinds of tables: Snapshot Valid-time Transaction-time Bitemporal

Example: Tom's Employment History On January 1, 1984, Tom joined thefaculty as an Instructor. On December 1, 1984, Tom completed his doctorate, and so was promoted to Assistant Professor effective retroactively on July 1, 1984. On March 1, 1989, Tom was promoted to Associate Professor, effective July 1, 1989 (proactive update).

Queries and Updates A transaction time table is append only it keeps the history of the updates made on the database. Transaction time tables supports rollback queries, such as: On October 1, what rank was our database showing for Tom? A valid time table can be updated: e.g., Tom’s past record is changed once his rank is changed retroactively. Valid time tables support historical queries, such as: What was Tom’s rank on October 1 (according to our current database)?

Bitemporal Tables Bitemporal Tables are append­only and supports queries of both kinds (rollback&historical) such as: On October 1, 1984, what did we think Tom's rank was at that date? TSQL3: SELECT Rank FROM Faculty AS F WHERE Name = 'Tom‘ AND VALID(F) OVERLAPS DATE '1984­10­01‘ AND TRANSACTION(F) OVERLAPS DATE '1984­10­01'

Overview of Temporal Data Models What is timestamped? Tuple timestamping Attribute­value timestamping

Tuple Timestamping and Coalescing Time stamping the individual tuples: If we want the salary history, we have to coalesce the last three tuples into one: name empno salary title deptno start end Bob 10003 60000 Engineer d01 1995-01-01 1995-05-31 70000 1995-06-01 1995-09-30 Sr Engineer d02 1995-10-01 1996-01-31 Tech Leader 1996-02-01 1996-12-31 name empno salary start end Bob 10003 60000 1995-01-01 1995-05-31 70000 1995-06-01 1996-12-31

Attribute Timestamping- Time-stamped tuples in relations name empno salary title deptno start end Bob 10003 60000 Engineer d01 1995-01-01 1995-05-31 70000 1995-06-01 1995-09-30 Sr Engineer d02 1995-10-01 1996-01-31 Tech Leader 1996-02-01 1996-12-31 Time-stamped attributes: Temporal grouping name empno salary title deptno Bob 1995-01-01: 1996-12-31 10003 60000 1995-01-01: 1996-05-31 Engineer 1995-01-01: 1995-09-30 d01 70000 1995-06-01:1996-12-31 Sr Engineer 1995-10-01:1996-01-31 d02 1995-10-01: 1996-12-31 Tech Leader 1996-02-01: 1996-12-31

What Is Timestamped? The value of an individual attributes: temporally grouped data models. Individual tuples Set of tuples: Generally used for transaction time, to timestamp a set of tuples inserted or modified by a transaction. Object: O-O DBs, XML documents Object graph: E.g., associate a connected set of modules (a configuration) with a particular version identifier. Schema Item: support for schema versions represents a difficult and important problem. Granularity of time-stamps: Maximum continuous periods Set of periods Single instant in time (point-based representation—avoids coalescing) Plethora of data models and query language extensions thus proposed

Desiderata for a Temporal Data Model Capture the semantics of time­varying information Retain simplicity of the relational model: Strict superset of the relational model Present all the information concerning an object in a coherent fashion Ensure ease of implementation Ensure high performance

Temporal Databases: State of the Art Over 40 temporal data models and associated temporal query languages have been defined. Design space has been fairly well covered. A single data model satisfying all desirable objectives appears to be unattainable TSQL2: a consensus approach proposed for inclusion in SQL3 standards. TSQL2 supports valid time, transaction-time and bitemporal relations, and Uses set of periods as its basic representation for time.