From Handbook of Temporal Reasoning in Artificial Intelligence By Jan Chomicki & David Toman Temporal Databases Presented by Leila Jalali CS224 presentation.

Slides:



Advertisements
Similar presentations
Limitations of the relational model 1. 2 Overview application areas for which the relational model is inadequate - reasons drawbacks of relational DBMSs.
Advertisements

TSQL 2 : QUERY LANGUAGE FOR TEMPORAL DATA CS 224 : Advanced Topics in Data Management.
Chapter 10: Designing Databases
Shantanu Narang.  Background  Why and What of Normalization  Quick Overview of Lower Normal Forms  Higher Order Normal Forms.
Chapter 3 : Relational Model
1 3D_XML A three-Dimensional XML-based Model Khadija Ali, Jaroslav Pokorný Czech Technical University Prague - Czech Republic.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
1 CHAPTER 4 RELATIONAL ALGEBRA AND CALCULUS. 2 Introduction - We discuss here two mathematical formalisms which can be used as the basis for stating and.
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
CS 440 Database Management Systems Lecture 4: Constraints, Schema Design.
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.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Advanced Databases Temporal Databases Dr Theodoros Manavis
Temporal and Real-Time Databases: A Survey by Gultekin Ozsoyoglu and Richard T. Snodgrass Presentation by Didi Yao.
Time in Databases CSCI 6442 With thanks to Richard Snodgrass, 1985 ACM /85/005/0236.
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 28 Database Systems I The Relational Data Model.
Spatio-Temporal Databases
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
Chapter Predicate Calculus Formal language –True/False statements –Supports reasoning Usage –Integrity constraints –Non-procedural query languages.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
The Relational Model Lecture 3 Book Chapter 3 Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC) From ER to Relational.
CS240A: Databases and Knowledge Bases Time Ontology and Representations Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
IST Databases and DBMSs Todd S. Bacastow January 2005.
INTRODUCTION TO DATABASE USING MS ACCESS 2013 PART 2 NOVEMBER 4, 2014.
Chapter 4 The Relational Model.
THE RELATIONAL DATA MODEL CHAPTER 3 (6/E) CHAPTER 5 (5/E) 1.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
The Relational Model: Relational Calculus
Recent research : Temporal databases N. L. Sarda
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
1 CS 430 Database Theory Winter 2005 Lecture 4: Relational Model.
Spatio-temporal databases
Formal Methods in SE Lecture 16 Formal Methods in SE Qaisar Javaid Assistant Professor.
SPATIO-TEMPORAL DATABASES Temporal Databases. Temporal Data. Modeling Temporal Data Temporal Semantics Temporal density: the time is seen as being: 
CPSC 603 Database Systems Lecturer: Laurie Webster II, M.S.S.E., M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 4 Introduction to a First Course in Database Systems.
Temporal Data Modeling
From Natural Language to LTL: Difficulties Capturing Natural Language Specification in Formal Languages for Automatic Analysis Elsa L Gunter NJIT.
1 The T4SQL Temporal Query Language Presented by 黃泰豐 2007/12/26.
1 CS 430 Database Theory Winter 2005 Lecture 7: Designing a Database Logical Level.
Presented by Kyumars Sheykh Esmaili Description Logics for Data Bases (DLHB,Chapter 16) Semantic Web Seminar.
IBM Research: Software Technology © 2005 IBM Corporation Programming Technologies 1 Temporal Rules Vijay Saraswat IBM TJ Watson July 27, 2012.
CPT-S Advanced Databases 11 Yinghui Wu EME 49.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 3 The Relational Model. Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. “Legacy.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
SPECIAL PURPOSE DATABASES 13/09/ Temporal Database Concepts  Time is considered ordered sequence of points in some granularity Use the term choronon.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Databases and DBMSs Todd S. Bacastow January
Knowledge Representation Techniques
Relational Model By Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany)
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
Spatio-Temporal Databases
Temporal Databases.
The Relational Model Textbook /7/2018.
The Entity-Relationship Model
Temporal Databases.
Data Model.
Relational Database Design
Chapter 19 (part 1) Functional Dependencies
Relational Model B.Ramamurthy 5/28/2019 B.Ramamurthy.
Representations & Reasoning Systems (RRS) (2.2)
CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre
CS240A: Databases and Knowledge Bases A Taxonomy of Temporal DBs
Relational Calculus Chapter 4, Part B
Presentation transcript:

From Handbook of Temporal Reasoning in Artificial Intelligence By Jan Chomicki & David Toman Temporal Databases Presented by Leila Jalali CS224 presentation

Temporal databases Some data may be inherently historical e.g., medical or judicial records Temporal databases provide a uniform and systematic way of dealing with historical data Considerable effort has been expended on the development of temporal databases and query languages TQuel [Snodgrass87], TSQL2 [Snodgrass95], SQL/Temporal [Snodgrass96] ─ But none of them has been adopted as the standard language of temporal databases in practice ─ No established the theoretical foundations for management of time-dependent data ─ No universal consensus on how temporal features should be added to the standard relational model

Outline The fundamental notions of temporal databases A formal foundation for temporal data models How to introduce time into the relational model Query languages for temporal databases Temporal extensions of SQL Limitations of simple linearly-ordered, first-order temporal data models More complex models of time

Structure of time They used a very simple notion of time in this chapter: a linear ordering of time instants In addition to linear ordering, we may consider: Discrete or dense Bounded or unbounded Single dimensional or multi-dimensional Linear or non-linear

The time stamp model All the tuples in a relation have an additional temporal attribute Example: Booking (meeting, room, time) A tuple (m,r,t) denotes the fact that: meeting m is in room r at time t

Temporal attribute Single-dimensional: temporal relations were allowed only a single temporal attribute Multiple dimensional: with each tuple in a relation there can be more than one temporal attribute Example: two kinds of time are stored: the valid time (when a particular tuple is true) and the transaction time (when the particular tuple was inserted/deleted in the database) Non-1NF: can be flattened to obtain the 1NF

The snapshot model Different view from the time stamp model (of the same data)

Relational database histories A history over a database schema p and a data domain D is a sequence H : (Do,..., Dn) of database instances such that: 1. all the states Do,..., Dn share the same schema p and the same data domain D 2. Do is the initial instance of the database 3. Di results from applying an update to Di-1, for i > 1 Do D1 D2 time … …

Temporal database design Reconstruction of Jensen’s formal framework [Jensen96] Based on the notion of temporal functional dependency: Example: the temporal FD means every meeting is held in a single room at any given time Several advantages: can use the classical notions of FD inference, dependency closure, normal forms, mix temporal and non-temporal FDs A temporal FD holds in a snapshot temporal relation DB if the (classical) FD holds in every snapshot of DB

Multiple dimensions How to express two temporal dimensions using temporal FD: valid time (VT) transaction time (TT) 3 kind of temporal FDs: Transaction time: Valid time: Bitemporal: Example: means the record at any time of the room booked for a meeting at any time is uniquely determined Disadvantage: Can no longer talk about, e.g., temporal keys, but only about valid-time, transaction-time or bitemporal keys The framework becomes so complicated that it is unlikely to be of any use

Temporal queries Databases are inherently first-order structures Temporal extensions first-order logic Query: using a natural first-order query language The answer: the set of tuple that make the query true in the given relational database Examples: find all meetings that always meet in the same room find all rooms in which the last meeting was 'DB group'

Temporal logic Historically, many different variants of temporal logic based on different sets of connectives have been developed [Gabbay94] Some connectives are well-known and have been universally accepted: sometime in the future always in the future In general any appropriate first-order formula in the language of the temporal domain can be used to define a temporal connective

First order temporal logic First they define the first order language of Tp extended with propositional variables Xi : Then use it to define a (k-ary) temporal connective: an O-formula with exactly one free variable t0 and k propositional variables X1,.., Xk They assume ti is the only temporal variable in the formula to be substituted for Xi Example: common binary temporal connectives:

Temporal connectives Other temporal connectives: Sometime in the future: Sometime in the past: Always in the future: Always in the past: Next: Previous:

First order temporal logic : A set of temporal connectives, e.g. {since, until} : First order temporal logic (FOTL) over a schema :

Examples How to use temporal connectives to formulate queries: Find all rooms in which the last meeting was 'DB group‘: Find all meetings with a scheduled break: Sometime in the future: Sometime in the past: Always in the future: Always in the past:

Temporal extensions of SQL A point based extension of SQL: SQL/TP [Toman97] The syntax and semantics of SQL/TP are defined as a natural extension of SQL An additional data type based on the point-based temporal domain Tp (i.e., a linearly ordered set of time instants)

SQL/TP Example List all meetings with a scheduled break :

Extensions of SQL based on interval based language TSQL2 or SQL/Temporal [Snodgrass95] Time attributes range over intervals and the before relationship denotes the before relationship between two intervals

Updating temporal databases Insertion: a new booking for a room for a meeting Unit is an auxiliary table that contains a single tuple The inner query produces: Deletion: Creating 20 minute break in the middle of meeting

Complex structure of time Complex structure of time: more complex than linearly ordered sets of time instants Natural numbers, integers, reals Additional structures: durations, temporal distances, periodic sets Impact on integrity constraints : more complex constraint dependencies Impact on query languages (use new predicate symbols in the same way the linear order < symbol has been used so far)

Beyond… Beyond the first order logic More expressive power than first order logic Beyond the Closed World Assumption Closed World Assumption: temporal databases hold complete information about truth An alternative: to treat the relational structures representing temporal databases as incomplete specifications and use the Open World Assumption to answer queries

Conclusion Issues not Covered in the chapter: Conceptual Modeling of Temporal Data Physical Design for Temporal Databases Time Series and Temporal Data Mining Research directions that are closely related to temporal data management: Spatio-Temporal Databases Streaming Data Management Time in Document Management and XML