Algebraic query languages on temporal databases with multiple time granularities

This paper investigates algebraic query languages on temporal databases. The data model used is a multidimensional extension of the temporal modules introduced in [WJS95]. In a multidimensional temporal module, every non-temporal fact has a timestamp that is a set of n-ary tuples of time points. A temporal module has a set of timestamped facts and has an associated temporal granularity (or temporal type), and a temporal database is a set of multidimensional temporal modules with possibly different temporal types. Temporal algebras are proposed on this database model. Example queries and results of the paper show that the algebras are rather expressive. The operations of the algebras are organized into two groups: snapshot-wise operations and timestamp operations. Snapshot-wise operations are extensions of the traditional relational algebra operations, while timestamp operations are extensions of first-order mappings from timestamps to timestamps. Multiple temporal types are only dealt with by these timestamp operations. Hierarchies of algebras are defined in terms of the dimensions of the temporal modules in the intermediate results. The symbol TALG k is used to denote all the algebra queries whose input, output and intermediate modules are of dimensions at mostm, n and k, respectively. (Most temporal algebras proposed in the literature are in TALG 1 .) Equivalent hierarchies TCALC m;n k are defined in a calculus query language that is formulated by using a first-order logic with linear order. The addition of aggregation functions into the algebras is also studied. This work was partly supported by the NSF grant IRI-9409769 and also by an ARPA grant, administered by the Office of Naval Research under grant number N0014-92-J-4038.

[1]  James Clifford,et al.  A Simple, General Structure for Temporal Domains , 1986, Temporal Aspects in Information Systems.

[2]  Richard T. Snodgrass,et al.  Aggregates in the Temporal Query Language TQuel , 1993, IEEE Trans. Knowl. Data Eng..

[3]  Sushil Jajodia,et al.  Temporal modules: an approach toward federated temporal databases , 1993, Inf. Sci..

[4]  Michael Stonebraker,et al.  Implementing calendars and temporal rules in next generation databases , 1994, Proceedings of 1994 IEEE 10th International Conference on Data Engineering.

[5]  Ramez Elmasri,et al.  Announcement—the temporal query language TSQL2 final language definition , 1994, SGMD.

[6]  Jeffrey D. Uuman Principles of database and knowledge- base systems , 1989 .

[7]  Abdullah Uz Tansel A statistical interface for historical relational databases , 1987, 1987 IEEE Third International Conference on Data Engineering.

[8]  Christian S. Jensen,et al.  An Algebra for TSQL2 , 1995, The TSQL2 Temporal Query Language.

[9]  James Clifford,et al.  On the Semantics of (Bi)Temporal Variable Databases , 1994, EDBT.

[10]  Albert Croker,et al.  On completeness of historical relational query languages , 1991, TODS.

[11]  Elisa Bertino,et al.  Semantic assumptions and query evaluation in temporal databases , 1995, SIGMOD '95.

[12]  Sushil Jajodia,et al.  Temporal Modules: An Approach Toward Federated Temporal Databases , 1995, Inf. Sci..

[13]  Anthony C. Klug Equivalence of Relational Algebra and Relational Calculus Query Languages Having Aggregate Functions , 1982, JACM.

[14]  Jan Chomicki,et al.  Temporal Query Languages: A Survey , 1994, ICTL.

[15]  Sushil Jajodia,et al.  Temporal Databases: Theory, Design, and Implementation , 1993 .

[16]  Richard T. Snodgrass,et al.  A taxonomy of time databases , 1985, SIGMOD Conference.

[17]  Christian S. Jensen,et al.  Unifying Temporal Data Models via a Conceptual Model Unifying Temporal Data Models via a Conceptual Model , 1993 .