Skip to content

"name or display_id" function #229

@jakebeal

Description

@jakebeal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions