Type Designators#
- linkml.generators.common.type_designators.get_accepted_type_designator_values(sv: SchemaView, type_designator_slot: SlotDefinition, class_def: ClassDefinition) List[str] [source]#
returns the accepted values for a type designator field for a given class, depending on its range this implements the logic described in https://github.com/linkml/linkml/issues/945:
- linkml.generators.common.type_designators.get_type_designator_value(sv: SchemaView, type_designator_slot: SlotDefinition, class_def: ClassDefinition) str [source]#
returns the correct value for a type designator field for a given class, depending on its range this implements the logic described in https://github.com/linkml/linkml/issues/945: