Closed DavidHuebner closed 3 years ago
Please check whether it works now, I added a fix in master.
Hi Jan, thank you so much for your quick response!! All initial tests are positive, so I am hopeful that the issue is fixed. This helps us a lot, so thanks again! David
Describe the bug For various CAS-xmi, I experienced that first loading the file and then saving it again using cassis leads to an invalid xmi. The newly created Cas-xmi is invalid with regards to two aspects:
To Reproduce Steps to reproduce the behavior:
Expected behavior: Loading and saving the xmi should create a readable new xmi. Each element id (xmi:id) should only be given once.
Error message Error message is
KeyError: 6
which occurs between some annotations are linked to sofa withxmi:id=6
that does not exist in the newly generated Cas-xmi.Please complete the following information:
Additional context Please note that the CAS has the property that some annotations are not part of any index, but are only linked in other annotations. This might be the reason why the existing loading logic fails. If I add all annotations to the index, then I can load/save the xmi (although it still has a duplicate
xmi_id=1
).