On all SBOL objects, the name field is optional but preferred for display, with a fallback to displayId.
From section 6.1:
If an Identified object lacks a name, then software tools SHOULD instead display the object’s displayId or URI.
I am thus frequently writing object.name or object.display_id in user-display functions.
Does a macro function for this already exist? If not, can it please be added?
On all SBOL objects, the name field is optional but preferred for display, with a fallback to displayId.
From section 6.1:
I am thus frequently writing
object.name or object.display_idin user-display functions.Does a macro function for this already exist? If not, can it please be added?