Skip to content

Data Validation

valentin-gauthier-geosiris edited this page Mar 23, 2023 · 1 revision

Validations

The Webstudio provides automatic consistancy validation of the objects according the energyml model.

In the "File" menu or in the "object editing vue" you will find "validation" buttons.

Results of validations will be printed in the console.

A correct workspace : vaidation-success

A workspace with an object not correct : vaidation-success

XSD validation

The websutdio provides validation using the XSD specifications of the model. When some errors occures for these verifications, they are often printed in the console as "info" logs (in green).

These verification will check for example if fields values exists and respect the field regex specification.

⚠️ It is possible that if you used custom values for "Ext" enumeration, the XSD validation raise warnings (see. editing object properties for more details).

Other verification

The Webstudio offers others specific verifications :

  • Unkown target from DOR : If a Uuid is referenced in a DOR and the corresponding object is not present in the workspace, an error will be raised
  • DOR content validity : As in energyml the "Citation.Title" (for example) is duplicated in a DOR, if the source object's title is changed, the DOR information may have not been updated. Errors will be raised in this case. (see. DOR Auto-correct menu to correct these errors automatically)
  • Activity parameters check : Verifications are done on values/types inside "Activities" depending on their "ActivityTemplate"
  • Mandatory fields : If a mandatory element is not present, an error will be raised
Clone this wiki locally