Skip to content

HORA-research/UHF-SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UHF-SQL

UHF-SQL is a generator of temporal relational schemas in SQL. It automatically transforms a non-historicized schema into a historicized schema based on various temporal models.

The software supports the following three models:

  • UHF (Unified-Historization Framework)

  • BCDM (Bitemporal Conceptual Data Model)

  • DDLM (Date Darwen Lorentzos temporal data Model)

The software supports the following temporal dimensions:

  • Valid Time (V)

  • Transaction Time (T)

  • Bitemporal (VT)

Environment

UHF-SQL is developed in Java (compatible with Java 17) using the following external libraries:

Inputs

The software takes as input a configuration file containing database connection settings and modelling parameters:

  • Database connection information.

  • The desired temporal model (UHF | BCDM | DDLM).

  • The desired temporal category of the historical schema (V | T | VT).

  • The person responsible for the generated schema.

  • The version of the generated schema.

  • Whether to generate Vxx partitions or not.

  • Whether to execute the scripts directly in the database or not.

  • The implementation mode of the historicized schema ((virtual | physical | both; for creating tables or views)

  • If virtual, define the temporal functional dependencies

  • Output directory for the generated scripts.

Outputs

The software generates a set of scripts for the historicized schema:

  • Creation of the schema.

  • Creation of domains.

  • Creating the tables.

  • Creating constraints related to temporal anomalies.

  • Creating historicized views based on temporal partitions.

  • Creation of functions for checking temporal foreign key.

  • Creating views associated with temporal anomalies.

  • Creating functions to validate temporal anomalies.

  • Dropping domains and tables.

Usage

Prerequisites:

  • Serveur PostgreSQL

  • Java 14+

Steps :

  1. Download the executable file (or the whole repository)

  2. In a terminal run:
    java -jar uhf-sql-0.2.0-SNAPSHOT.jar <configuration-file>

For demonstration examples, refer to the demo README.

TODO

Features under development:

  • Creation of functions for checking temporal foreign keys for the transaction-time (T) and bitemporal (VT) schema temporal categories.

  • Creation of functions for checking temporal foreign keys for the valid-time (V) category for BCDM and DDLM models.

  • Creation of views associated with temporal anomalies and constraints related to temporal anomalies for the bitemporal (VT) schema temporal category.

  • Support for the Vxx temporal partition when includeVxx is set to true.

  • Generation of the complete schema when useMode is set to virtual.

Team members

For more information, please contact:
Christina Khnaisser : Christina.Khnaisser@usherbrooke.ca

Collaborators :
Luc Lavoie : Luc.Lavoie@usherbrooke.ca
Zeineb Zaiet : Zeineb.Zaiet@usherbrooke.ca

Thanks to :
Rémi Letourneau : Remi.Letourneau@usherbrooke.ca
Maiva Schela Magnifouet Zefack : Maiva.Schela.Magnifouet.zefack@usherbrooke.ca
Sonia Rykiel Toukam : Sonia.Rykiel.toukam@usherbrooke.ca

References

Khnaisser, Christina, Hind Hamrouni, David B. Blumenthal, Anton Dignös, et Johann Gamper. « Querying Temporal Anomalies in Healthcare Information Systems and Beyond ». In Advances in Databases and Information Systems, édité par Silvia Chiusano, Tania Cerquitelli, et Robert Wrembel, 13389:209‑22. Lecture Notes in Computer Science. Cham: Springer International Publishing, (2022). https://doi.org/10.1007/978-3-031-15740-0_16.

Khnaisser, Christina. « Construction de modèles de données relationnels temporalisés guidée par les ontologies ». Université de Paris cotutelle Université de Sherbrooke, (2019). https://savoirs.usherbrooke.ca/handle/11143/16329.

Khnaisser, Christina, Luc Lavoie, Anita Burgun, et Jean-François Ethier. « Past Indeterminacy in Data Warehouse Design ». In Database and Expert Systems Applications, 90‑100. Lecture Notes in Computer Science. Springer, Cham, (2017). https://doi.org/10.1007/978-3-319-64471-4_9.

Christina Khnaisser, Hind Hamrouni, David B. Blumenthal, Anton Dignös et Johann Gamper. « Efficiently Labeling and Retrieving Temporal Anomalies in Relational Databases ». Information Systems Frontiers, 1-25. https://doi.org/10.1007/s10796-024-10495-w

Copyright 2026-2026 HORA - Research group on Temporal modelling and integration of heterogeneous data;
Faculté des sciences et Faculté de médecine et sciences de la santé; Université de Sherbrooke (Québec) J1K 2R1 CANADA

Documentation licence : [Creative Common CC BY SA](https://creativecommons.org/licenses/by-sa/4.0/legalcode)

About

Unified Historicization Framework - SQL generator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors