Closed marco-brandizi closed 2 years ago
OK, my misatke, this isn't actually an issue, since the code uses JSoup to threat the concept name as HTML and eventually extract the text only. Closing it. I'm leaving the abbreviation cutoff at 33, seems safer for graph labels.
I discovered this while working on Rothamsted/knetminer#673.
AddConceptNodeInfo
abbreviated the exported concept label to 33 characters (including the auto-added '...'), seegetNodeJson()
here.This is error-prone, since the concept names might come in with highlighting markings like:
the abbreviation could cut away relevant HTML wrappers and garble everything. A possible solution might be taking
spanIdx = name.lastIndexOf ( "</span>" ) + "</span>".length()
and usemin ( 33, spanIdx )
as the abbreviation cutoff.As a side note, all the rest of Knetminer abbreviates at 63.