biolink / biolinkml

DEPRECATED: replaced by linkml
https://github.com/linkml/linkml
Creative Commons Zero v1.0 Universal
23 stars 12 forks source link

Slot_usage is not reflected in identifier class #201

Closed hsolbrig closed 4 years ago

hsolbrig commented 4 years ago

If you specialize the type of a class or slot name:

classes:
   schema_definition:
           is_a: element
           ...
          slot_usage:
            name:
                range: ncname

This is not reflected in the generated python:

class SchemaDefinitionName(ElementName):
    pass

It should be:

class SchemaDefinitionName(NCName):
    pass