linkml / schemasheets

Structure your data in a FAIR way using google sheets or TSVs. These are then converted to LinkML, and from there other formats
https://linkml.io/schemasheets/
41 stars 5 forks source link

Blank permissible values for enumerations #132

Open martinwellman opened 4 months ago

martinwellman commented 4 months ago

We have enumerations where a blank value (ie. "") is a valid enumeration value. It usually corresponds to "Not Applicable" or something similar. The slot, however, might still be a required slot. With Schemasheets having a blank value in the permissible_value column will make that row correspond to the top-level enum, rather than an enum value. So the description and title (and maybe other fields) on such rows would be assigned to the top-level enum, rather than creating a new permissible_value that is blank. Is there a way to specify blank permissible values with Schemasheets?

cmungall commented 4 weeks ago

[apologies for the delay]

Ah, spreadsheets and null values!

Try putting

vmap: {"MY_NULL": ""}

In the configuration column, then use MY_NULL wherever you want to use a "" for a PV