Skip to content

Commit

Permalink
minimal MimsSoil schema with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
turbomam committed Sep 6, 2024
1 parent 411e4c5 commit 3b98637
Show file tree
Hide file tree
Showing 8 changed files with 2,031 additions and 62 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea/

/docs/
/project/docs/
/tmp/
Expand Down
15 changes: 14 additions & 1 deletion project.Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
## Add your own custom Makefile targets here
RUN=poetry run

src/data/valid/MixsCompliantData-001-report.txt: src/data/valid/MixsCompliantData-001.yaml \
src/mixs_missing_value_sandbox/schema/mixs_missing_value_sandbox.yaml
$(RUN) linkml-validate \
--schema $(word 2,$^) \
--target-class $(shell echo $(basename $(notdir $(word 1,$^))) | cut -d'-' -f1) \
$(word 1,$^) > $@

src/data/valid/MixsCompliantData-001.tsv: src/data/valid/MixsCompliantData-001.yaml \
src/mixs_missing_value_sandbox/schema/mixs_missing_value_sandbox.yaml
$(RUN) linkml-convert --schema $(word 2,$^) \
--output $@ \
--index-slot mims_soil_data $(word 1,$^)
13 changes: 13 additions & 0 deletions src/data/valid/MimsSoil-data-001.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
depth: "123"
elev: "123"
project_name: abc
samp_name: abc

collection_date: '2013-03-25T12:42:31+01:00'
env_broad_scale: unicorn [example:999]
env_local_scale: unicorn [example:999]
env_medium: unicorn [example:999]
geo_loc_name: "unicorn: unicorn, unicorn"
lat_lon: 45.67 45.67
samp_taxon_id: unicorn [NCBITaxon:999]
seq_meth: xxx
1 change: 1 addition & 0 deletions src/data/valid/MixsCompliantData-001-report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No issues found
3 changes: 3 additions & 0 deletions src/data/valid/MixsCompliantData-001.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
depth elev project_name samp_name collection_date env_broad_scale env_local_scale env_medium geo_loc_name lat_lon samp_taxon_id seq_meth
123 123 abc abc 2013-03-25T12:42:31+01:00 unicorn [example:999] unicorn [example:999] unicorn [example:999] unicorn: unicorn, unicorn 45.67 45.67 unicorn [NCBITaxon:999] xxx
123 123 abc abc 2013-03-25T12:42:31+01:00 unicorn [example:999] unicorn [example:999] unicorn [example:999] unicorn: unicorn, unicorn 45.67 45.67 unicorn [NCBITaxon:999] xxx
25 changes: 25 additions & 0 deletions src/data/valid/MixsCompliantData-001.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
mims_soil_data:
- depth: "123"
elev: "123"
project_name: abc
samp_name: abc
collection_date: '2013-03-25T12:42:31+01:00'
env_broad_scale: unicorn [example:999]
env_local_scale: unicorn [example:999]
env_medium: unicorn [example:999]
geo_loc_name: "unicorn: unicorn, unicorn"
lat_lon: 45.67 45.67
samp_taxon_id: unicorn [NCBITaxon:999]
seq_meth: xxx
- depth: "123"
elev: "123"
project_name: abc # no primary id?
samp_name: abc
collection_date: '2013-03-25T12:42:31+01:00'
env_broad_scale: unicorn [example:999]
env_local_scale: unicorn [example:999]
env_medium: unicorn [example:999]
geo_loc_name: "unicorn: unicorn, unicorn"
lat_lon: 45.67 45.67
samp_taxon_id: unicorn [NCBITaxon:999]
seq_meth: xxx
5 changes: 5 additions & 0 deletions src/data/valid/Soil-data-001.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
depth: "123"
elev: "123"
project_name: abc
samp_name: abc

Loading

0 comments on commit 3b98637

Please sign in to comment.