Geonovum / uml2json

Best Practise for OGC - UML to JSON Encoding Rules
https://geonovum.github.io/uml2json/document.html
0 stars 1 forks source link

7.3.4.2 - pja - figure 13: roleToClass 1 #23

Closed PalmJanssen closed 1 year ago

PalmJanssen commented 1 year ago

For reflection: Strictly UML speaking the name of an association end reflects the role the feature has towards the source feature in that association. So roleToClass1 must be understood as the role of Class1 as a member in an association with Class3.

A more appropiate name therefore would be roleOfClass1.

Or maybe roleToClass1 must be read as role assigned to class 1 by class 3. In that case the name roleToClass1 comes close.

jechterhoff commented 1 year ago

Maybe, to avoid such confusion, we should just rename the association role to "roleX" (and the other association role to "roleY").

PalmJanssen commented 1 year ago

Agree.

But I got inspired by http://docs.opengeospatial.org/per/16-020.html#rdf_cr_associationclass

role1_3 and role2_1 are good options.

jechterhoff commented 1 year ago

Decision: We change the role names as suggested by @PalmJanssen