Bug
Duplicate sername error, but model is valid
Developer comments
Given an association type %AT% with roles type %RT1% and %RT2%. %RT1% is unproblematic. For %RT2%, two topic role constraints exist. One specifying %TT1% as possible players, another %TT2%. %TT3% is a subtype of %TT1% *and* %TT2%. When the constraints for TT3 are processed, an error is thrown.
Topincs checks the interface of every topic type for errors when it generates the model. The modeler may not assign the same serialization name to two different statement types. A simple example: given a topic type person with an date of birth and a date of death. You cannot use the serialization name %date% for both of these occurrence types. If you do, a %ModelerException% is thrown with instructions how to resolve the problem.
In this case the model seems valid. Basically it specifies that a TT1 as well as TT2 might be players. TT3 happens to subtype both. No need for red flags.
Throwing a %ModelerException% is too strict and unnecessary in this case. There is nothing wrong with the model. The exception should only be thrown when a user assigns the same sername to different statement types on a topic type.
Turns out that this model cannot be passed as is to the client since it will render two input fields. This was already a problem long ago. So the initial solution caused [8769, this already solved bug] to surface again.
The new approach is to simply allow more than one constraint for one statement type to be declared, but attached is only the latest one to the topic type. This might open up opportunities to override cardinalities on sub types.
This is a corner case involving a complex type hierarchy.
|
Work sessions5
Start |
2020-02-18T16:19:09
|
End |
2020-02-18T16:48:52
|
Participant |
Robert Cerny
|
Start |
2020-02-24T06:53:58
|
End |
2020-02-24T07:57:37
|
Participant |
Robert Cerny
|
Start |
2020-03-08T08:55:52
|
End |
2020-03-08T09:27:18
|
Participant |
Robert Cerny
|
Start |
2020-03-09T15:28:47
|
End |
2020-03-09T17:02:35
|
Participant |
Robert Cerny
|
Start |
2020-03-10T07:29:13
|
End |
2020-03-10T08:44:50
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.