Currently, "if a slot usage entry cannot be generated to make the given base slot…
Jump to turn (8)
- 1Currently, "if a slot usage entry cannot be generated to make the given base slo
- 2I added a few comments, please act on them.
- 3I made some modification please take a look. I also made some requests in a few
- 4all changes has been added. Please commit
- 5yes
- 6I want to augment the note append to discrepancynotes in getslotusageentry. So t
- 7have you done type check as well.
- 8all changes has been added. Let's do a commit
- User
Currently, "if a slot usage entry cannot be generated to make the given base slot definition function like the given target slot definition," a
SlotUsageGenerationErroris raised and a note is attached to the LinkML class being constructed and theslot_usageentry being generated is abandoned, not attached to the class. However, I think we can do better with the following:- when a slot usage entry cannot be generated to make the given base slot definition function like the given target slot definition, don't raise a
SlotUsageGenerationErrorbut add a note to the generated slot entry. (Make sure the notes in the slot usage entry is sorted. Use the same format for a note as defined inattach_noteinner function in_generate_class. You may do some refactoring to reduce code duplication.)
In that way, at least a partially correct
slot_usageentry can be attached to the containing class. - when a slot usage entry cannot be generated to make the given base slot definition function like the given target slot definition, don't raise a
Assistant