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:

linkml.generators.common.type_designators.get_uriorcurie_type_designator_values(sv: SchemaView, class_def: ClassDefinition) list[str][source]

Return the URI and CURIE forms of a class’s effective class_uri.

The native definition_uri is intentionally not included. Consumers that support native aliases have a separate, more permissive policy.