Skip to content

Commit 37f227f

Browse files
committedFeb 28, 2025·
integrated mixs_env_triad_field but with build errors
1 parent e5d7f45 commit 37f227f

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
id: http:/example.com/mixs_env_triad_field_schema
2+
name: mixs_env_triad_field_schema
3+
slots:
4+
name: mixs_env_triad_field
5+
annotations:
6+
tooltip:
7+
tag: tooltip
8+
value: >-
9+
The MIxS environmental triad provides context about where a sample was collected and what it consists of.
10+
annotations:
11+
source:
12+
tag: source
13+
value: https://link.springer.com/protocol/10.1007/978-1-0716-3838-5_20
14+
description: >-
15+
The MIxS environmental triad provides context about where a sample was collected and what it consists of.
16+
Its component slots capture the biome that the sample was found in, nearby geographical features that
17+
might influence the organisms in the sample,
18+
and the substance that was displaced in the process of collecting the sample.
19+
Careful population of these slots makes it easier for data users to find samples that are similar,
20+
not just in terms of textual values, but through ontological relationships.
21+
Furthermore, NMDC requires that its three component slots are populated because the INSDC Biosample databases
22+
require that they are populated because the MIxS standard from the GSC requires that they are populated.
23+
abstract: true
24+
range: ControlledIdentifiedTermValue
25+
see_also:
26+
- https://github.com/EnvironmentOntology/envo/wiki/Using-ENVO-with-MIxS
27+
28+

‎assets/yq-for-mixs_subset_modified.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'.slots.env_broad_scale.is_a |= "TextValue"'
2+
'.slots.env_local_scale.is_a |= "TextValue"'
3+
'.slots.env_medium.is_a |= "TextValue"'
4+
15
'.slots.agrochem_addition.range |= "TextValue"'
26
'.slots.air_temp_regm.range |= "TextValue"'
37
'.slots.antibiotic_regm.range |= "TextValue"'

‎project.Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ shuttle-clean:
3636
touch local/mixs_regen/.gitkeep
3737

3838

39-
src/schema/mixs.yaml: shuttle-clean local/mixs_regen/mixs_subset_modified_inj_env_medium_alt_description.yaml
39+
src/schema/mixs.yaml: shuttle-clean local/mixs_regen/mixs_subset_modified_inj_mixs_env_triad_field_slot.yaml
4040
mv $(word 2,$^) $@
4141
rm -rf local/mixs_regen/mixs_subset_modified.yaml.bak
4242

@@ -92,6 +92,13 @@ assets/other_mixs_yaml_files/nmdc_mixs_env_triad_tooltips.yaml
9292
'select(fileIndex==0).slots.env_medium.annotations.tooltip = select(fileIndex==1).slots.env_medium.annotations.tooltip | select(fileIndex==0)' \
9393
$^ | cat > $@
9494

95+
96+
local/mixs_regen/mixs_subset_modified_inj_mixs_env_triad_field_slot.yaml: local/mixs_regen/mixs_subset_modified_inj_env_medium_alt_description.yaml \
97+
assets/other_mixs_yaml_files/mixs_env_triad_field_slot.yaml
98+
yq eval-all \
99+
'select(fileIndex==0).slots.mixs_env_triad_field = select(fileIndex==1).slots.mixs_env_triad_field | select(fileIndex==0)' \
100+
$^ | cat > $@
101+
95102
examples/output: nmdc_schema/nmdc_materialized_patterns.yaml
96103
mkdir -p $@
97104
$(RUN) linkml-run-examples \

0 commit comments

Comments
 (0)
Please sign in to comment.