-
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
Sample grouping class #233
base: main
Are you sure you want to change the base?
Conversation
|
id: | ||
required: true | ||
description: An NMDC assigned unique identifier for a biosample or processed sample. | ||
structured_pattern: |
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.
TODO: figure out why LinkML breaks validation if the parent class specifies a structured_pattern.
TODO: this should be abstract.
required: true | ||
description: An NMDC assigned unique identifier for a biosample or processed sample. | ||
structured_pattern: | ||
syntax: "{id_nmdc_prefix}:(bsm|procsm)-{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.
When the minter (part of the Runtime) sees a typecode portion (in a structured pattern) that looks like this — "(bsm|procsm)
" — it uses the first substring ("bsm
", in this case) when generating an ID for that class. That was implemented on around July 17, 2024.
Different parts of our people/system are currently using the pattern for two different things:
- team members use it to say "here's a pattern that all IDs must match."
- the minter uses it to say "here's the typecode I will use in the ID I generate."
There is an ongoing Discussion about expressing the typecode for the minter via a separate slot.
Guidelines
Soft Schema Freeze
The
nmdc-schema
andberkeley-schema-fy24
schemas are under a soft freeze, which means changes should not be made that have any downstream implications. To ensure this, all PRs created creating during the freeze will be closely reviewed with every component of the NMDC system in mind.Reviewers
To ensure no changes are made unexpectedly, PR creators will request reviews from all Berkeley Schema Roll Out task coordinators.
We expect task coordinators to review PRs and provide feedback/approval within 1 week of when they are identified as reviewers.
PRs will NOT be merged until all task coordinators (or one of their delegates) have approved.
Expedition, questions, and discussion can happen at any meeting.
Delays in review & merging should be addressed in meetings or with NMDC leadership.
PR Information
What type of PR is this? (check all applicable)
class
,slot
, orenum
slot
ismultivalued
slot
is assigned to aclass
permissible_values
of anenum
class
,slot
, orenum
mappings
of aclass
,slot
, orenum
to an ontologyenum
for future use (it is not in therange
of anyslot
)Description
Related Issues
Did you add/update any tests?
Could this schema change make it so any valid data becomes invalid?
If you answered "Yes", does this PR branch include that migrator?
Does this PR have any downstream implications?