-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profile Support #1
Comments
A quick summary about how progresses the POC, the covered points are:
There is more work to do, but most of the problematic points are resolved. |
Hello, |
Thanks for reaching about the profiles :). That's a huge point of PyUML2 that is not 100% finished, so it's not on the main/develop branch right now, but on the |
Thank you for your quick answer! |
Honestly, I'm not sure 😅, it's a long time I didn't have the time to work on it, but that's possible that currently sub-profiles are not supported. More generally actually, I think they might be supported, but I think it's the profile application that is not yet fully covered. For loading models, it should be fine, but for applying stereotypes, I don't remember well. |
Looking at the code, it looks like the Lines 68 to 77 in 951416f
so I guess, perhaps sub-profiles are not supported. |
Thank you for your help. Actually, I am blocked before this step, and my profile URI is not recognize. I tried to change in the file applied.uml one character in the profile reference "testProfile.profile.uml#_uEUhcDNiEei1Zri9xPBGPQ" to "testProfile.profile.uml#_uEUhcDNiEei1Zri9xPBGPR" and I saw that it reproduces the exact same error (this reference appear in xmi:XMI schemaLocation and references href). The .uml file produced by my Papyrus version contains a reference with another format: OLDAS.profile.uml#//DomainOntology. Then I think I need to find how to replace "//DomainOntology" with the good reference. |
It's a little bit hard to tell without the files, but perhaps there is something that is not yet fully registered properly in the EDIT> If you cannot share the files with me for privacy or security reasons, try to forge a minimal example and feel free to send them to me by email :) |
The current implementation works well for UML diagrams without applied profiles. The idea is to be as much compliant with the Eclipse implementation as possible.
I've performed some tests about deserialization (profile deserialization and model with applied profile deserialization). At the moment, the code is a little ugly, but it works!
The POC state is the following, I'm able to:
These points currently need some fixes that are present in the PyEcore
develop
branch.The final support should include
apply_stereotype
...),I will use this issue to report the progresses I made on this POC.
The text was updated successfully, but these errors were encountered: