com-pas / compas-scl-validator

Validation Service to validate SCL File
Apache License 2.0
1 stars 1 forks source link

POC with Riseclipse EMF and OCL rules #9

Closed Sander3003 closed 2 years ago

Sander3003 commented 2 years ago

As a develop I want to validate XML using the OCL Files and Metamodel from RiseClipse So that rules can be reused.

The POC is to get a idea how to integrate the OCL Files and Metamodel from RiseClipse and use Eclipse OCL/EMF to validate a incoming XML File.

The idea is to make a Git subproject from both RiseClipse repositories to include the Metamodel and OCL Files Next step is to use these files to create classes based on validator to validate a incoming XML File. We probably need to save the XML in a temporary file and also create a temporary file to import all the OCL Rules that need to processed.

Sander3003 commented 2 years ago

@dlabordus can you add more details?

dlabordus commented 2 years ago

RiseClipse uses Eclipse OCL and Eclipse EMF. See manual for OCL Example.

For CGMES there is a library from RTE CGMES OCL Validator that also uses Eclipse OCL/EMF. So this repository can also be used for inspiration how to use Eclipse OCL/EMF.

Sander3003 commented 2 years ago

Good point: https://github.com/rte-france/cgmes-ocl-validator