ontopia / ontopia

The open source tools for building, maintaining and deploying Topic Maps-based applications.
https://ontopia.net
Apache License 2.0
53 stars 12 forks source link

Ontopia allows for 0 role associations to be created #404

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
TopicMapBuilderIF has a makeAssociation(TopicIF at) method that creates a new 
association with given type. However, this association has no roles. If the 
user chooses not to add any roles, this association can be persisted. The TMDM 
states that an association should have at least 1 role. 

Options for fixing this:
- Change the builder to enforce role creation
- Change TopicmapStoreIF's to check for 0-role associations on commit and throw 
an error for it

I'm in favor of option 1.

See attached java file. 

Original issue reported on code.google.com by q.sieb...@morpheus.mssm.nl on 9 Sep 2011 at 9:58

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by qsieb...@gmail.com on 13 Mar 2014 at 4:47