-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Because
The generosity of allowing short form for annotation id values provides almost no benefit (besides saving some bytes) while adding lots of technical debt and bugs. For example, we have this code in visualizer
but source and target values in Alignment annotations almost always use the "long" form (prefixed with view ID) of the annotation ID since lots of alignments are done across views, and hence these checks are destined to fail and introduce silent errors.
I suggest we allow only using long form of the ID in everywhere in MMIF, so that ann.id and ann.long_id always return the same value. This is major change in MMIF spec, hence leads to MMIF 2.0.
Done when
Either
- we update all existing code that uses
==checks withann.idvalue to a fixed standard and educate all existing and future developers to use the same implementation, - we simply disallow "short" form of annotation ID in MMIF world and change
ann.idto returnann.long_id.
Additional context
No response