Quantity

Quantity maps on to two things: required and cardinality.

Though it is technically possible to use an integer as a quantity, that is never done in the core schema, which is our only target for now.

We will handle cardinality of array dimensions elsewhere

QUANTITY_MAP = {'*': {'multivalued': True, 'required': None}, '+': {'multivalued': True, 'required': True}, '?': {'multivalued': None, 'required': None}, 1: {'multivalued': None, 'required': True}, None: {'multivalued': None, 'required': None}}

Map between NWB quantity values and linkml quantity metaslot values.

Use None for defaults (required: False, multivalued: False) rather than False to avoid adding unnecessary attributes