cdm dmcl cl a specific textual constraint language for
play

Cdm dmCL CL, a Specific Textual Constraint Language for Common - PowerPoint PPT Presentation

Cdm dmCL CL, a Specific Textual Constraint Language for Common Data Model Ahmed Ahmed, Paola Vallejo, Mickal Kerboeuf, Jean-Philippe Babau Lab-STICC, University Of Western Brittany - France alahmed4ever@yahoo.com,{vallejoco,kerboeuf,


  1. Cdm dmCL CL, a Specific Textual Constraint Language for Common Data Model Ahmed Ahmed, Paola Vallejo, Mickaël Kerboeuf, Jean-Philippe Babau Lab-STICC, University Of Western Brittany - France alahmed4ever@yahoo.com,{vallejoco,kerboeuf, babau}@univ-brest.fr

  2. Problem Overview (1/3) Common Data Model (CDM) CDM compliant ◦ Abstract data model for scientific datasets NetCDF file {myData.nc} ◦ General scientific data model ◦ Network Common Data Format (.nc file) Specific standards (OceanSITES) ◦ A set of Constraints on CDM ◦ Natural language ◦ Domain specific tools OceanSITES Manipulation Tools ◦ Code-oriented validation tool OCL WORKSHOP 21/10/2014 2

  3. Problem Overview (1/3) Common Data Model (CDM) CDM compliant ◦ Abstract data model for scientific datasets NetCDF file {myData.nc} ◦ General scientific data model ◦ Network Common Data Format (.nc file) OceanSITES Not Valid Conformity Specific standards (OceanSITES) Checker ◦ A set of Constraints on CDM Valid ◦ Natural language ◦ Domain specific tools OceanSITES Manipulation Tools ◦ Code-oriented validation tool OCL WORKSHOP 21/10/2014 3

  4. Common Data Model Dimension: Array dimension size Variable : Multi-dimensional array of typed data Attribute : Meta-data Named Concepts OCL WORKSHOP 21/10/2014 4

  5. Problem Overview(2/3) Standard: ◦ Textual constraints ◦ Ambiguous OCL WORKSHOP 21/10/2014 5

  6. Problem Overview(2/3) Standard: ◦ Textual constraints ◦ Ambiguous ◦ Multiple Versions OCL WORKSHOP 21/10/2014 6

  7. Problem Overview(2/3) Standard: ◦ Textual constraints ◦ Ambiguous ◦ Multiple Versions Validation tool modification ◦ Professional interference OCL WORKSHOP 21/10/2014 7

  8. Problem Overview(2/3) Standard: ◦ Textual constraints ◦ Ambiguous ◦ Multiple Versions Validation tool modification ◦ Professional interference Use formal constraint language and existing checker OCL OCL WORKSHOP 21/10/2014 8

  9. Solution: Object Constraint Language Mandatory Dimension Mandatory CDM OCL Dimension conforms Length OceanSITES Data Variable Example Data type ◦ Applied to specific Named Instance Shape ◦ Repeated Constraint structure ◦ Exist, Select Structure 9 OCL WORKSHOP 21/10/2014

  10. OCL Solution Problems (3/3) Verbose Constraints Example: Variable named TEMP holding attribute named standard _ name should hold one of the values air_temperature , air_pressure , or air_pressure_at_sea_level , or sea_water_temperature OCL WORKSHOP 21/10/2014 10

  11. Problem Summary 30 pages of Textual Constraints ◦ difficult to write correct (and read) OCL constraints Similar repeated constraints ◦ Exist, Select structure Verbose ◦ results in inaccurate and erroneous constraints Hard for scientists Proposal: CdmCL a domain specific constraint language for CDM OCL WORKSHOP 21/10/2014 11

  12. Outlines Problem Overview CdmCL language Tooling Conclusion OCL WORKSHOP 21/10/2014 12

  13. CdmCL : based on CDM A concept constraint or a set of constraints for each CDM concept CdmCL CDM OCL WORKSHOP 21/10/2014 13

  14. CdmCL : based on CDM A concept constraint or a set of constraints for each CDM concept CdmCL CDM OCL WORKSHOP 21/10/2014 14

  15. CdmCL: CDM Constraints Constraints are defined on features of each named CDM concepts OCL WORKSHOP 21/10/2014 15

  16. CdmCL: CDM Constraints Constraints are defined on features of each named CDM concepts OCL WORKSHOP 21/10/2014 16

  17. CdmCL : based on CDM Example : Constraints on Dimension Length CdmCL CDM OCL WORKSHOP 21/10/2014 17

  18. Constraint Concept Reference • A constraint is defined for a (or a set of) named instance(s) for each of the main CDM concepts Constraints applied on: ◦ a Concept Constraint (a specific dimension, variable, or attribute, e.g. TIME) ◦ Concept RegExConstraint (dimension, variable or attribute that name matches a regex, e.g DEPTH[0-9]) ◦ Concept ListConstraint (a list of dimension, variables or attributes names, e.g {TIME, DEPTH,…} ) OCL WORKSHOP 21/10/2014 18

  19. Cdm dmCL CL is a language Xtext is used to define the textual grammar A semantic expressed in OCL OCL WORKSHOP 21/10/2014 19

  20. Common Constraint Categories Mandatory Global Attribute Mandatory OceanSITES CdmCL OCL OCL WORKSHOP 21/10/2014 20

  21. Common Constraint Categories UpperCase Dimensions Mandatory Format OceanSITES CdmCL OCL OCL WORKSHOP 21/10/2014 21

  22. Common Constraint Categories Not Repeated Dimensions Mandatory Format Repetition OCL OCL WORKSHOP 21/10/2014 22

  23. Common Constraint Categories Mandatory User Defined Constraints OceanSITES Format Repetition User Defined Constraints Constraints that are related to CdmCL multiple CDM concepts at the same time E.g. verify if there exists a variable named “TIME”, either it has an attribute named “ QC_Indicator ” or there exists another variable named OCL “TIME_QC” but not both OCL WORKSHOP 21/10/2014 23

  24. Specific Concept Constraints(1/2) Dimensions length Min Max Description x x length = x x y x<= length <= y x -1 x <= length 0 y length <= y 0 -1 No constraint OCL WORKSHOP 21/10/2014 24

  25. Specific Concept Constraints(1/2) Dimensions length Unlimited Dimension Variable shape ◦ SimilarDimensionConstraint ◦ PredefinedShape OCL WORKSHOP 21/10/2014 25

  26. Specific Concept Constraints(1/2) Dimensions length Not Repeated Variable Shape Unlimited Dimension OceanSITES Variable shape ◦ SimilarDimensionConstraint ◦ PredefinedShape OCL Variable shape Repetition Variable and Attribute Data Type OCL WORKSHOP 21/10/2014 26

  27. Specific Concept Constraints(2/2) Attribute Value ◦ Unique Value OCL ◦ Regular expression ◦ Possible Values ◦ Standard (ISO8601) YYYY-MM-DD T hh:mm:ss Z OR YYYY-MM-DDThh:mm:ss.sZ ◦ Range (min, max) CdmCL OCL WORKSHOP 21/10/2014 27

  28. Outlines Problem Overview CdmCL language Tooling Conclusion OCL WORKSHOP 21/10/2014 28

  29. Tool Architecture ◦ NetCDF to CDM Translator ◦ CDM generated code (EMF) ◦ NetCDF API ◦ CdmCL to OCL Translator ◦ Xtext API ◦ Our Transformation Library (CdmCL2OCL) ◦ OCL Checker ◦ EMF Validation Framework OCL WORKSHOP 21/10/2014 29

  30. TOOLING (1/3): NetCDF2CDM transformation Dimension s Variables Global OCL WORKSHOP 21/10/2014 30 Attributes

  31. TOOLING (2/3): Cdm dmCl Cl2OCL Transformation Mandatory Dimension TIME ◦ Create invariant header ◦ Create invariant body Create OCL File Header Body OCL WORKSHOP 21/10/2014 31

  32. TOOLING (3/3): Validation (Invalid FILE) Tool OceanSITES CdmCL CDM Instance Missing Mandatory Global Attribute OCL WORKSHOP 21/10/2014 32

  33. Outlines Problem Overview CdmCL language Tooling Conclusion OCL WORKSHOP 21/10/2014 33

  34. CONCLUSION CdmCL : A Domain Specific Constraint Language for CDM Human readable ◦ Close to natural language ◦ Meetings with standard users and writer (IRD, IFREMER) ◦ tool developers 90% of constraints achieved ◦ Unachieved constraints -> User Defined Constraints Hide OCL complexity (50 line in CdmCL -> 400 line in OCL) One conformity checker tool for any standard OCL WORKSHOP 21/10/2014 34

  35. Future Works Error tracing ◦ Based on CdmCL, debugging facilities Migration tools ◦ From different standards or different versions of a standard Serialization format ◦ Import and export Data verification ◦ CdmCL extension Document Generation for Standards OCL WORKSHOP 21/10/2014 35

  36. Thanks OCL WORKSHOP 21/10/2014 36

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend