Skip to content
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

Deserialized primitive datatypes cannot have relations #119

Open
claudenirmf opened this issue Oct 27, 2021 · 0 comments
Open

Deserialized primitive datatypes cannot have relations #119

claudenirmf opened this issue Oct 27, 2021 · 0 comments

Comments

@claudenirmf
Copy link
Member

OntoUML classes with the stereotype «datatype» that have no attributes are interpreted as "primitive datatypes" by the plugin, which deserializes them as instances of IDataType. However, instances of IDataType cannot have relationships connected to it, for example, generalizations.

I think we can overcome this issue in three different ways in order to make a solution that is transparent to a Visual Paradigm user:

  • add some tagged value on the serialization to identify datatypes serialized as classes (will not be enough if the model was serialized in some other tool)
  • fix a pre-defined list of primitive OntoUML datatypes (possibly not trivial)
  • check whether the «datatype» class has relationships or appears in some diagram, deserializing it as a class if so (arguably the most elegant option, but requires changes in the Java "metamodel" for OntoUML)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant