current land use enum with URL safe characters#972
Conversation
LinkML Linting ResultsSummary
Problems per Schema/home/runner/work/mixs/mixs/src/mixs/schema/mixs.yamlErrors
|
|
src/mixs/schema/mixs.yaml
Outdated
| cities: | ||
| conifers: | ||
| examples: | ||
| - value: cypress |
There was a problem hiding this comment.
probably want to keep "conifers: pine"
There was a problem hiding this comment.
TIL the practice of adding examples on PV's! ✅
There was a problem hiding this comment.
I don't think PVs should ever have examples
There was a problem hiding this comment.
Will switch all examples to PVs of their own and assert is_a between them (hemlock) and their super-classes (conifer)
|
As discussed we need to enumerate these longer lists as option values: Instead of having them listed as 'examples' in LinkML. |
Thanks @lschriml Could you please look though these observed values
I would like to analyze how much of the hierarchy should be captured in MIxS per se And reach out to the original contributors of this term to see what kinds of revisions they are comfortable with vs what really needs to be left as is |
src/mixs/schema/mixs.yaml
Outdated
| cities: | ||
| conifers: | ||
| examples: | ||
| - value: cypress |
There was a problem hiding this comment.
TIL the practice of adding examples on PV's! ✅
| enums: | ||
| CurLandUseEnum: | ||
| permissible_values: | ||
| badlands: |
There was a problem hiding this comment.
Can we add meanings to some of these PV's?
For example, is this an appropriate meaning for the badlands PV? http://purl.obolibrary.org/obo/ENVO_00000127
There was a problem hiding this comment.
This is a really good idea @sujaypatil96
@cmungall and I discussed it today. Chris suggested focusing our PV meaning efforts on
- enums where virtually all of the PVs would have a mapping to a well-maintained ontology
- slots that are already being frequently used in INSDC Biosamples
I don't think 2 is true here, and I think 1 might be very difficult to accomplish because the current land use PVs are a mixture of land uses (which might be in EnvO) and organisms that might be found on land being used in some way. The organism names are a mixture of singular and plural, and may have many to many mappings within NCBI taxonomy
So I am going to skip PV meaning sin the PR
| CurLandUseEnum: | ||
| permissible_values: | ||
| badlands: | ||
| cities: |
There was a problem hiding this comment.
Similarly, meaning for cities – http://purl.obolibrary.org/obo/ENVO_00000856
|
Looks like there's a merge conflict that needs resolution on this PR @turbomam? |
This comment was marked as outdated.
This comment was marked as outdated.
9b697aa to
21588f5
Compare
LinkML Linting ResultsSummary
|
There was a problem hiding this comment.
Pull request overview
This PR updates the MixS LinkML schema to model current land use as a proper enumeration, aiming to use URL-safe tokens for land-use values.
Changes:
- Added a new
CurLandUseEnumwith hierarchicalis_arelationships for land-use categories. - Updated the
cur_land_useslot to userange: CurLandUseEnumand removed the priorstring_serialization-based enumeration description.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| cypress: | ||
| is_a: conifers | ||
| crop trees: | ||
| christmas trees: |
There was a problem hiding this comment.
PR title says the current land use enum is using URL-safe characters, but many newly added permissible values still contain spaces (e.g., "crop trees", "industrial areas", "permanent snow or ice"). If these values are intended to be URL-safe identifiers, consider normalizing them (e.g., kebab/snake case) and using aliases/title for human-readable labels; otherwise the PR title/intent should be updated to match the actual change (only removing /).
There was a problem hiding this comment.
The PR scope is specifically replacing / characters with - for URL safety — the spaces in other permissible values are a separate concern and consistent with the existing MIxS convention for enum labels.
mines/quarries → mines-quarries and roads/railroads → roads-railroads were renamed for URL safety but the old forms need aliases so existing data remains valid.
LinkML Linting ResultsSummary
|
No description provided.