1 3D_XML A three-Dimensional XML-based Model Khadija Ali, Jaroslav Pokorný Czech Technical University Prague - Czech Republic.

Slides:



Advertisements
Similar presentations
W3C SML F2F XML Schema 1.1 Sandy Gao, IBM.
Advertisements

XML Examples. Bank Information Basic structure: A-101 Downtown 500 … Johnson Alma Surrey … A-101 Johnson …
Dimensional Modeling.
Chapter 6: Entity-Relationship Model (part I)
From Handbook of Temporal Reasoning in Artificial Intelligence By Jan Chomicki & David Toman Temporal Databases Presented by Leila Jalali CS224 presentation.
Foundational Objects. Areas of coverage Technical objects Foundational objects Lessons learned from review of Use Case content Simple Study Simple Questionnaire.
XML: Extensible Markup Language
XML DOCUMENTS AND DATABASES
Chapter 6 UNDERSTANDING AND DESIGNING QUERIES AND REPORTS.
Database Management System Module 3:. Complex Constraints In this we specify complex integrity constraints included in SQL. It relates to integrity constraints.
Spatio-Temporal Databases
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
1 ISO – Metadata Next Generation International consensus being built on structured metadata within a broader Geomatics Standard under ISO Technical.
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.
Advanced Topics COMP163: Database Management Systems University of the Pacific December 9, 2008.
Summary. Chapter 9 – Triggers Integrity constraints Enforcing IC with different techniques –Keys –Foreign keys –Attribute-based constraints –Schema-based.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
4/20/2017.
Limitations of the relational model. Just as the relational model supplanted the network and hierarchical model so too will the object – orientated model.
An eGovernment system for temporal- and semantic-aware access to norms SWEG 2006 – The Semantic Web meets eGovernment 2006 AAAI Spring Symposium Series,
Lecture 6 of Advanced Databases XML Schema, Querying & Transformation Instructor: Mr.Ahmed Al Astal.
Dr. Azeddine Chikh IS446: Internet Software Development.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
GeoUML a conceptual data model for geographical data conformant to ISO TC 211 Main GeoUML constructs Alberto BelussiNovembre 2004.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
Lecture 22 XML querying. 2 Example 31.5 – XQuery FLWOR Expressions ‘=’ operator is a general comparison operator. XQuery also defines value comparison.
Querying Structured Text in an XML Database By Xuemei Luo.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Query Data Model Lecturer.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Identity Constraints.
A language to describe software texture in abstract design models and implementation.
____________________________ XML Access Control for Semantically Related XML Documents & A Role-Based Approach to Access Control For XML Databases BY Asheesh.
Semantic Web Techniques for Personalization of eGovernment Services SemWAT st International ER Workshop on Semantic Web Applications: Theory and.
The Semistructured-Data Model Programming Languages for XML Spring 2011 Instructor: Hassan Khosravi.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Dr. Bhavani Thuraisingham September 2006 Building Trustworthy Semantic Webs Lecture #5 ] XML and XML Security.
資工所 在職碩一 P 莊浚銘 Temporal Database Paper Reading Report.
Friday, September 4 th, 2009 The Systems Group at ETH Zurich XML and Databases Exercise Session 5 courtesy of Ghislain Fourny/ETH © Department of Computer.
Martin Kruliš by Martin Kruliš (v1.1)1.
CS240A: Databases and Knowledge Bases Temporal Databases Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Lecture 23 XQuery 1.0 and XPath 2.0 Data Model. 2 Example 31.7 – User-Defined Function Function to return staff at a given branch. DEFINE FUNCTION staffAtBranch($bNo)
Temporal Data Modeling
Scheduling of Transactions on XML Documents Author: Stijin Dekeyser Jan Hidders Reviewed by Jason Chen, Glenn, Steven, Christian.
1 The T4SQL Temporal Query Language Presented by 黃泰豐 2007/12/26.
CPT-S Advanced Databases 11 Yinghui Wu EME 49.
SPECIAL PURPOSE DATABASES 13/09/ Temporal Database Concepts  Time is considered ordered sequence of points in some granularity Use the term choronon.
1 Representing and Reasoning on XML Documents: A Description Logic Approach D. Calvanese, G. D. Giacomo, M. Lenzerini Presented by Daisy Yutao Guo University.
XML: Extensible Markup Language
A Generalized Modeling Framework for Schema Versioning Support
WEBIST 2005 – International Conference on Web Information Systems and Technologies Efficient Management Of Multi-Version XML Documents For E-Government.
IADIS International Conference e-Society 2005
Chapter 7: Entity-Relationship Model
CWA3 Standardized roll-out package Part 2: XBRL Handbook for Declarers
TODL - Temporal Object Definition Language
XML in Web Technologies
DEXA EGOV 2005 Conference Personalized Access to Multi-version Norm Texts in an eGovernment Scenario Fabio Grandi, Maria Rita Scalas Alma Mater Studiorum.
XML and Databases.
Associative Query Answering via Query Feature Similarity
Multi-temporal RDF Ontology Versioning
Temporal Databases.
An eGovernment system for temporal- and semantic-aware access to norms
Temporal Queries in XML Document Archives and Web Warehouses
Semantic Web Techniques for Personalization of eGovernment Services
Data Model.
Formal Semantics of Dynamic Rules in ORM
2/18/2019.
Retail Sales is used to illustrate a first dimensional model
Fabio Grandi DEIS - Univ. of Bologna, Italy
CS240A: Databases and Knowledge Bases A Taxonomy of Temporal DBs
Presentation transcript:

1 3D_XML A three-Dimensional XML-based Model Khadija Ali, Jaroslav Pokorný Czech Technical University Prague - Czech Republic

2 Content of Presentation Current approaches Motivation 3D_XML Model Time dimensions Time model Data modeling Temporal constructs Temporal Queries with XQuery Conclusions and Future investigations.

3 Current Approaches Much research work has recently focused on adding temporal features to XML. XBIT- an XML-based bitemporal data model. XML-based model for Versioned Documents. XML-based model for Versioned normative texts. Valid time XPath data model. Key-based model for archiving data. Multidimensional XML Model (MXML).

4 Motivation Non-Temporal XML databases – The contents of XML documents change over time. – Past data are overwritten; they are replaced by the new data. – The latest information is recorded as a result. But, in the real life: there is a real need to keep past and current data.

5 Motivation For instance, at a bank, querying the current state is important, e.g., “How much is in my account right now“ But it is also often useful and required to know how the data has changed over time, e.g., “When has my account been below $4000“

6 3D_XML Model The main aim of 3D_XML is to propose a temporal extension of XML by: representing XML changes; we retain a single representation of all versions of the XML document. using XQuery to express complex temporal queries on the evolution of the document contents via user-defined functions.

7 3D_XML Model Time dimensions 1. Valid time 2. Transaction time 3. Efficacy time (abrogated data continues to be applicable) Our Extension Valid data stops to be applicable

8 3D_XML Model Time Model The time domain T is linear and discrete. A time constant t = [a, b], is either a time instant or a time interval. We limit our event measures to dates (granularity = one day). The valid time constant vt = [vtStart, vtEnd] The transaction time constant tt = [ttStart, ttEnd] The efficacy time constant et = [etStart, etEnd]

9 3D_XML Model Valid/Efficacy Times Relationship 1. ( vtStart etEnd) Valid data stops to be applicable

10 3D_XML Model 2. (vtStart > etStart), or (vtEnd < etEnd) Data is applicable although it is not valid

11 3D_XML Model 3. (vtStart = etStart), and (vtEnd = etEnd) The normal case

12 3D_XML Model Example 1. Consider a company database. Suppose the manager mgr of Design department is Ali from " " till " ". Due to some unexpected circumstances, another person started managing Design department from " " Valid time Efficacy time

13 Data Modeling A temporal element can be specified in DTD notation as: (1) <!ATTLIST sub-element vtStart CDATA #REQUIRED vtEnd CDATA #REQUIRED ttStart CDATA #REQUIRED ttEnd CDATA #REQUIRED etStart CDATA #REQUIRED etEnd CDATA #REQUIRED>

14 Data Modeling (2) Example 2 <employee vtStart=" " vtEnd="now" ttStart=" " ttEnd="now" etStart=" " etEnd="now"> Anas Sr Engineer

15 Data Modeling A temporal attribute is represented by: a special empty element temporal_Attribute. the name and value of the temporal attribute are represented by special attributes name and value. representing time dimensions is similar to time dimensions in temporal elements. <temporal_Attribute name="currency" value="crown" vtStart=" " vtEnd=" " ttStart=" " ttEnd="now" etStart=" " etEnd=" “ />

16 Data Modeling Time dimensions Constraints 1. Conjunction Constraints 2. Disjunction Constraints

17 Data Modeling Conjunction Constraints <employee vtStart=" " vtEnd="now" ttStart=" " ttEnd="now" etStart=" " etEnd="now"> <salary vtStart=" " vtEnd=" " ttStart=" “ ttEnd=" " etStart=" " etEnd=" "> <temporal_Attribute name="currency" value="crown" vtStart=" " vtEnd=" " ttStart=" " ttEnd="now" etStart=" " etEnd=" "/> <temporal_Attribute name="currency" value="euro" vtStart= " " vtEnd="now" ttStart=" " ttEnd="now" etStart=" " etEnd="now"/> … Cover

18 Data Modeling Disjunction Constraints <employee vtStart=" " vtEnd="now" ttStart=" " ttEnd="now" etStart=" " etEnd="now"> <salary vtStart=" " vtEnd=" " ttStart=" “ ttEnd=" " etStart=" " etEnd=" "> <temporal_Attribute name="currency" value="crown" vtStart=" " vtEnd=" " ttStart=" " ttEnd="now" etStart=" " etEnd=" "/> <temporal_Attribute name="currency" value="euro" vtStart= " " vtEnd="now" ttStart=" " ttEnd="now" etStart=" " etEnd="now"/> … disjoint

19 Temporal Constructs XQuery is natively extensible and Turing- complete: any extensions needed for temporal queries can be defined in the language. user-defined functions which are not typical features of query languages can be used to define the temporal constructs.

20 Temporal Constructs Get time dimensions declare function get_vtStart ($s) {let $g := return if ($g ) then else

21 Temporal Constructs Valid/efficacy times relationship constructs declare function valid-notEfficient($a) {if (get_etStart($a) > get_vtStart($a) or get_etEnd($a)< get_vtEnd($a) ) then true() else false()};

22 Temporal Constructs Snapshot data construct is used to construct snapshots of 3D-XML documents. declare function dataShot ($e, $v) { if (get_vtStart($e)<= xs:date($v) and get_vtEnd($e) >= xs:date($v) ) then element {name($e)} except [string(name(.))="vtStart" or string(name(.))="vtEnd" or string(name(.))="etStart" or string(name(.))="etEnd" or string(name(.))="ttStart" or string(name(.))="ttEnd"], for $c in $e/* return dataShot ($c, $v)} else ()

23 Temporal Constructs Interval comparison operators: a small library of interval comparison operators is defined to help users with interval-based queries. Break construct: it checks if valid/efficacy times of a temporal element having breaks or not. declare function Tbreak($g) { let $c := count($g) - 1 let $o := for $i in (1 to $c) let $j := $i +1 return if (TmeeTs(get_vtEnd($g[$i]), get_vtStart($g[$j]))) then() else ”break” return count ($o) };

24 Temporal Queries with XQuery We use XQuery to express complex temporal queries. The queries can be greatly simplified by a suitable library of built-in temporal functions (temporal constructs). Query 1 Return employee’s names who have one break in their employment histories (fired and rehired) and their salaries have been changed for the first time at any time when they are assigned in “Design“ department as “Sr Engineer“.

25 Temporal Queries with XQuery for $t in collection ("C1")//employee/job[.= Engineer"] for $dep in collection("C1")//employee/dept[.="Design"] where $t/../emp_no = $dep/../emp_no return if (Tcontains ($dep, $t) and Toverlaps ($dep/../salary[1],$t) and Tbreak ($dep/../job)= 1) then $dep/../name else ()

26 Conclusions XML provides a flexible mechanism to represent temporal data. The most usual temporal representation does not require changes of current XML standards. An effective temporal information system should provide: – expressive temporal data model. – powerful language for temporal queries and snapshot queries as well.

27 Future Work Add more temporal constructs. Updates will be a real area of future investigation. Improve the performance of our system.