linkml / schema-automator

Automated assistance for the schema development lifecycle
https://linkml.io/schema-automator/
BSD 3-Clause "New" or "Revised" License
36 stars 13 forks source link

add a method to generate edge slots from a TSV #17

Closed sierra-moxon closed 2 years ago

sierra-moxon commented 2 years ago

I had a use case to generate a bunch of slots in an existing schema from a TSV.

Since this might not be the only time I have to do this, decided to put the code somewhere (and the methods to infer the slot ranges were quite nice here already! :) ).

I know there are some small formatting changes here: it's just me going through the file to understand the code and editing as I go to understand it better (I could go further and pull out some of the shared code into methods if we want me to).