Skip to content

Conversation

sierra-moxon
Copy link
Member

@sierra-moxon sierra-moxon commented Jan 9, 2025

Simple schema automator implementation if DBML -> LinkML.

It would be nice to take a table with no FKs, a single column PK, and at least one descriptive column, and turn that into an enumeration instead of another class. But from the schema POV, we can't ascertain the content of the table in order to fill in the PVs. Also to add is mulit-column unique keys -> unique_keys in linkml.

but, this is a first step towards that support. pydbml looks pretty active and can translate DMBL -> SQL DDL as well.

Copy link
Member

@turbomam turbomam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my first time reviewing an importer. This certainly looks like it extracts the most essential Class/table and slots/columns attributes. I like the tests!

@sierra-moxon sierra-moxon merged commit 3d1ecfd into main Jan 15, 2025
4 checks passed
@amc-corey-cox amc-corey-cox deleted the dmbl_importer branch July 11, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants