Strategic Term Rewriting and Its Application to a VDM-SL to SQL - - PowerPoint PPT Presentation

strategic term rewriting and its application to a vdm sl
SMART_READER_LITE
LIVE PREVIEW

Strategic Term Rewriting and Its Application to a VDM-SL to SQL - - PowerPoint PPT Presentation

Strategic Term Rewriting and Its Application to a VDM-SL to SQL Conversion Review Outline Goal of the paper Algebraic design by calculation VooDooM model Conclusions and future work Goal of the paper Convert datatypes in


slide-1
SLIDE 1

Strategic Term Rewriting and Its Application to a VDM-SL to SQL Conversion

Review

slide-2
SLIDE 2

Outline

  • Goal of the paper
  • Algebraic design by calculation
  • VooDooM model
  • Conclusions and future work
slide-3
SLIDE 3

Goal of the paper

Convert datatypes in VDM-SL to SQL relational data models

slide-4
SLIDE 4

How?

  • Conversion: Transforming algebraic types

to maps and products

  • Implementation technology: Haskell
slide-5
SLIDE 5

Database design by calculation

where: Abstraction and representation

slide-6
SLIDE 6

Database design by calculation

Datatype B implements or refines datatype A

slide-7
SLIDE 7

Database design by calculation

Preorder

slide-8
SLIDE 8

Database design by calculation

Conversion laws

slide-9
SLIDE 9

Database design by calculation

Normal form

slide-10
SLIDE 10

Strategic term rewriting

Traditional term rewritting

Programmable equations Fixed Strategy

Strategic term rewritting

Programmable equations Programmable Strategy Combined strategies

slide-11
SLIDE 11

VooDooM Tool

slide-12
SLIDE 12

Transformation

Refinement of the VDM-SL data types to a relational form

  • Inlining and recursion removal
  • Desugaring
  • Conversion to relational form
  • Resugaring
slide-13
SLIDE 13

SQL translation

slide-14
SLIDE 14

Conclusions and future work

  • Automatic database schema generation
  • In comparison with other approaches with

the VooDooM the source data-model can be arbitrarily complex

  • Reverse process: obtain algebraic data

types from a relational model