tmlab/majortom

If the best label is an empty name value

Closed this issue · 7 comments

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

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

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

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect
So how should we implent this behaviour? 

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

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

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

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

  • Added labels: Milestone-1.2.0
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

  • Changed state: WontFix