Skip to content

Update for refined inherited slots#2

Merged
gouttegd merged 2 commits into
mainfrom
update-for-refined-inherited-slots
Jun 17, 2026
Merged

Update for refined inherited slots#2
gouttegd merged 2 commits into
mainfrom
update-for-refined-inherited-slots

Conversation

@gouttegd

@gouttegd gouttegd commented Jun 2, 2026

Copy link
Copy Markdown
Owner

This PR uses the updated Java code generator in LinkML-Py (PR linkml/linkml#3589) to

(1) automatically generates the classes needed to test the “refined inherited slots” scenario (replacing the existing test classes that were previously handcrafted);

(2) updates the classes derived from LinkML’s own meta-model, since a few of them do refine some inherited slots (e.g. SlotDefinition refines the is_a slot so that it can only point to another SlotDefinition object, rather than a more generic Definition object).

gouttegd added 2 commits June 1, 2026 18:43
Now that the code generator in LinkML-Py (at least in my dev branch) can
generate suitable code for "refined inherited slots", we no longer need
manually crafted test classes, we can instead generate them from a
LinkML schema like the rest of the test classes.
Use my development branch (corresponding to LinkML PR
linkml/linkml#3589) to re-generate all
LinkML-derived classes.

This replaces the previously manually written classes for the "refined
inherited slots" test case by classes that are derived from the
corresponding schema.

This also updates some classes of LinkML’s own meta-schema, since a
handful of them do fall in the "refined inherited slots" scenario (e.g.
SlotDefinition refines the `is_a` slot so that it can only point to
another SlotDefinition, rather than a more generic Definition).
@gouttegd gouttegd merged commit 00cac27 into main Jun 17, 2026
2 checks passed
@gouttegd gouttegd deleted the update-for-refined-inherited-slots branch June 17, 2026 07:51
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.

1 participant