-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Sample
grouping class in order to remove any_of
range constraints
#2244
Conversation
|
This is going to be great @sierra-moxon Is there any connection with |
src/schema/core.yaml
Outdated
Sample: | ||
class_uri: 'nmdc:Sample' | ||
description: A sample is a material entity that can be characterized by an experiment. | ||
is_a: NamedThing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@turbomam - would like this to be a MaterialEntity. All classes should be descendent of one of the 3 subclasses of NamedThing - not additional NamedThing subclasses.
src/schema/core.yaml
Outdated
@@ -271,7 +277,7 @@ classes: | |||
samp_name_unique_key: | |||
unique_key_slots: | |||
- samp_name # id is already required to be unique because it is the identifier in Biosample's parent class, NamedThing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sierra-moxon - fix this comment - it may be correct, but also should highlight parent vs. ancestor.
any_of
range constraints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, @sierra-moxon. Thanks for implementing it (and walking us through it during today's meeting). The only thing I'm hesitant about is that the only is_a
field that was modified here is for the Biosample
class. Did you mean to do the same thing to the ProcessedSample
class?
Hi @eecavanna! :) can you check the is_a hierarchy here again? -- I appreciate your review. |
@turbomam - just a ping to say this is ready for review. |
Here's a summary of my takeaways from reading the latest diff:
|
any_of
range constraintsSample
grouping class in order to remove any_of
range constraints
First PR towards removing
any_of
range constraints.Sample
is currently a grouping class forProcessedSample
andBiosample
and is abstract.