Skip to main content



      Home
Home » Modeling » OCL » OCL2QVTiTransformationTechnology([org.eclipse.qvtd.cs2as not available])
OCL2QVTiTransformationTechnology [message #1869777] Sat, 24 August 2024 06:37 Go to next message
Eclipse UserFriend
I am trying to install CS2AS DSL of Adolfo Sanchez-Barbudo Herrera. Has anyone tried it? I am having problem with org.eclipse.qvtd.cs2as.compiler.OCL2QVTiTransformationTechnology.
Please help me !

source code: https://github.com/adolfosbh/cs2as

  • Attachment: 1.png
    (Size: 126.71KB, Downloaded 60 times)
  • Attachment: 1.png
    (Size: 126.71KB, Downloaded 71 times)
Re: OCL2QVTiTransformationTechnology [message #1869780 is a reply to message #1869777] Sat, 24 August 2024 14:03 Go to previous messageGo to next message
Eclipse UserFriend
The last commit by Adolfo Sanchez-Barbudo Herrera was 8 years ago. Since then I have maintained the code to track API evolution and keep the tests working, but I may well have overlooked something.

The intent of CS2AS was never fulfilled, so it has never taken its place as part of the OCL build chain.

IIRC, in my Reflections on OCL 2 paper [1], I concluded that I should never have attempted to provide an implementation so close to the unprototyped specification since this mandates a CS2AS stage. Rather a revision of CS and AS could have provided much better compatibility and so avoided a difficult CS2AS.

If you want to use CS2AS, I suggest building an Eclipse installation corresponding to Adolfo's final commit so that you can reproduce examples from the thesis [2] that you found in [3]. The functional code is in the OCL [4] and QVTd [5] GIT repos. For [4] and [5] I provide the project PMI page linked to the repository since the Eclipse Foundation may soon move these repos to github.

Once you are happy with the 'old' way you may see whether it ports to the prevailing GIT state.

(The underlying Complete OCL technology for CS2AS exploiting shadow constructors was necessary since QVTr was not nearly ready. QVTr does now work for many examples, but my WIP attempts to use it for a transformation such as Ecore2Pivot reveal the need for additional language richness to handle a missing root model element on one side - oops Ecore's Resource is not a model element.)

[1] https://www.jot.fm/issues/issue_2020_03/article17.pdf
[2] https://etheses.whiterose.ac.uk/17416/
[3] https://github.com/adolfosbh/cs2as
[4] https://projects.eclipse.org/projects/modeling.mdt.ocl/developer => https://git.eclipse.org/c/ocl/org.eclipse.ocl.git
[5] https://projects.eclipse.org/projects/modeling.mmt.qvtd/developer => https://git.eclipse.org/c/mmt/org.eclipse.qvtd.git
Re: OCL2QVTiTransformationTechnology [message #1870518 is a reply to message #1869780] Sun, 01 September 2024 01:53 Go to previous messageGo to next message
Eclipse UserFriend
Thanks you so much for your comment. I will try installing older versions of ocl and qvtd.
Re: OCL2QVTiTransformationTechnology [message #1871532 is a reply to message #1870518] Sat, 28 September 2024 01:12 Go to previous messageGo to next message
Eclipse UserFriend
On the editor of the CS2AS-TL language, I am trying to declare:

source cs : '/generated/MiniOCLCS.ecore#/'
target as : '/resource/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.ecore#/'

However, it is giving an error Unresolved unknown '/generated/MiniOCLCS.ecore#/' and Unresolved unknown '/resource/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.ecore#/'
I made sure the file path was correct, and CS2AS-TL was successfully gen.

Do I need to do any additional steps for the editor to recognize those file paths?
Re: OCL2QVTiTransformationTechnology [message #1871694 is a reply to message #1871532] Fri, 04 October 2024 15:03 Go to previous messageGo to next message
Eclipse UserFriend
Sorry for the tardy response.

Both of your file paths are absolute and so exceed my understanding of Eclipse. On Windows, I am never sure whether your home directory / disk thereof or your workspace / disk thereof or Eclipse installation directory / disk thereof forms the absolute prefix. On Linux with a sensible fle system it is more obvious. I'm pretty sure there isn't a root generated folder, and I'm pretty sure you do not have write access to a root resource folder.

Perhaps you meant:
source cs : 'generated/MiniOCLCS.ecore#/'
target as : 'platform:/resource/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.ecore#/'


Re: OCL2QVTiTransformationTechnology [message #1871721 is a reply to message #1871694] Sun, 06 October 2024 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply. Is adolfo sbhs's CS2AS-TL project developed on linux?

I have installed the old versions of ocl and qvtd and tested the CS2AS-TL project on windows.

I think there are some important parts that adolfo sbhs's may not have pushed to github?

If there is any specific instructions for installation or like a guide for installation and use, it will be easier for people to refer to!
Re: OCL2QVTiTransformationTechnology [message #1871802 is a reply to message #1871721] Fri, 11 October 2024 09:18 Go to previous message
Eclipse UserFriend
I doubt that the development was on Linux, but it is possible.

I'm afraid it is what it is.

If you make useful progress and care to write it up, we can maybe make it available to others.
Previous Topic:OCL import ecore model
Next Topic:Issues Extending OCL Primitive Type String with Custom Operations in Ecore
Goto Forum:
  


Current Time: Tue Nov 04 02:37:34 EST 2025

Powered by FUDForum. Page generated in 0.08810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top