-
Notifications
You must be signed in to change notification settings - Fork 3
Description
If a user adds an instance/node to a collection, and then later adds linked types to the instance, currently that is not added to the collection. What is the best way to make sure a collection is "complete" when it is being saved.
In the openMINDS_MATLAB repo, I added a method on the collection called updateLinks. The user can invoke this, and it will also be called internally when the user saves the collection. Right now this detects if new linked types are added, but it does not detect if new linked types are removed.
Is that a good way to solve it? It might also be possible to have an event/listener based system where if the value of linked type property is updated, the collection automatically scans through all the instances to detect changes (linked types being added or removed)