tmlab / majortom

The MaJorToM ( Merging Topic Maps Engine ) project was founded to develop a lightweight, merging and flexible Topic Maps engine satisfying different business use cases. The engine provides a couple of new features above to other engines based on the Topic Maps API version 2.0.
1 stars 1 forks source link

If the best label is an empty name value #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
then it would be nice if something else, which is not an empty String, is 
returned. Like an identifier.

Another idea would be to "lock" names with empty value before attempting to 
compute the best label.

Sven, what to you think?

Original issue reported on code.google.com by schulze....@googlemail.com on 26 Sep 2010 at 6:19

GoogleCodeExporter commented 9 years ago
I don't know about this. I think it would be to much magic if we remove empty 
strings as best-label result. The second option is a better approach I think.

Original comment by Sven.Kro...@googlemail.com on 27 Sep 2010 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by Sven.Kro...@googlemail.com on 27 Sep 2010 at 9:29

GoogleCodeExporter commented 9 years ago
So how should we implent this behaviour? 

Original comment by Sven.Kro...@googlemail.com on 1 Nov 2010 at 12:31

GoogleCodeExporter commented 9 years ago
What about this issue? In my opinion we should avoid such value before insert 
them into data base. This means we extend the API definition of createName, 
createOccurrence and setValue with an exception thrown if the user try to set 
an semantic irregular value ( empty string )

Original comment by Sven.Kro...@googlemail.com on 18 Nov 2010 at 6:38

GoogleCodeExporter commented 9 years ago
But what about the topic maps serializations that contain e.g. names with empty 
value. They could not be imported any more..

Original comment by schulze....@googlemail.com on 19 Nov 2010 at 12:48

GoogleCodeExporter commented 9 years ago

Original comment by Sven.Kro...@googlemail.com on 18 Feb 2011 at 6:14

GoogleCodeExporter commented 9 years ago
I think, if the user adds such a topic name, the schema is invalid. Because of 
that empty string will never be ignored!

Original comment by Sven.Kro...@googlemail.com on 4 Apr 2011 at 10:33