Replies: 1 comment 1 reply
-
LinkML does have a mechanism to declare metaschemas and metaclasses, which gets some of the way towards where you want to go, but I don't think it's exactly right for this use case. Can you say more about expected cases where this would be expected to validate or be invalid? For example, if |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Usecase:
I have a slot, let's call it
has_input
, that's used across many classes and subclasses. I would love a mechanism in the schema to be able to declare that thehas_input
slot must have an associatedslot_usage
naming itsstructured_pattern
on each class it's used on (including when it's inherited from a parent class).Ideally, I'd love a way to add this to the definition of the slot along the lines of this:
The cherry on top would be the ability to use for subslots as well.
For example:
Beta Was this translation helpful? Give feedback.
All reactions