-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update structured_pattern in basic_classes #177
Conversation
@aclum and @turbomam . I've updated the id slot usage to better reflect the expected patterns and require the I'd rather we back merge |
@@ -293,7 +293,7 @@ classes: | |||
required: true | |||
id: | |||
structured_pattern: | |||
syntax: "{id_nmdc_prefix}:calib-{id_shoulder}-{id_blade}{id_version}{id_locus}" | |||
syntax: "{id_nmdc_prefix}:calib-{id_shoulder}-{id_blade}{id_version}$" |
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 should not have version, will fix.
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 and I have talked about making this class abstract. Let's finalize the plan, if its abstract we can remove the structured_pattern.syntax.
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.
I'd like to be part of those conversations. I don't quite see how we can make the CalibrationInformation
abstract unless we subclass it, but maybe I'm missing something. I expect to instantiate instances of CalibrationInformation
with the metabolomics metadata generation.
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.
Sorry, that was not a good place to leave that comment, I was referring about making WorkflowExecution abstract, not CalibrationInformation. This class seems like its not in the correct yaml, everything else in this yaml is for classes downstream of DataGeneration. Do you know the history on why this class is in this file and not nmdc.yaml?
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.
Oh yeah.....long story but the nmdc.yaml sources the workflow_execution.yaml but not vice versa. The CalibrationInformation
is the range of the has_calibration
slot which is on some of the WorkflowExecutions
(until we merge in Berkeley and apply some ingestions). Once that has_calibration
slot and range is fixed, we can move this class and associated slot definition to the nmdc.yaml.
WorkflowExecution
is already abstract on berkeley fork, which makes total sense to me.
src/schema/basic_classes.yaml
Outdated
@@ -358,7 +358,7 @@ classes: | |||
id: | |||
required: true | |||
structured_pattern: | |||
syntax: "{id_nmdc_prefix}:wfch-{id_shoulder}-{id_blade}{id_version}{id_locus}" | |||
syntax: "{id_nmdc_prefix}:wfch-{id_shoulder}-{id_blade}$" |
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.
@mbthornton-lbl @scanon do we want versioning on the workflow chain records?
Agree it makes sense to do this after a backmerge. |
Partially addresses: microbiomedata#1988 .
Checking that the use of the
structured_pattern
slot is appropriately defined on all classes that were refactored. This PR will also update all example data to comply.When referencing a WorkflowExecution subclass it should be:
Otherwise it should be: