aboutsummaryrefslogtreecommitdiff
path: root/bh20sequploader
diff options
context:
space:
mode:
authorPjotr Prins2020-04-19 12:19:29 -0500
committerGitHub2020-04-19 12:19:29 -0500
commitc4ba1c7b868b2b9b2b7c7b4f87e2856409b1767d (patch)
treeeda50e35b2f3d65c7d71e11f8d02973075f0f498 /bh20sequploader
parentf9d65865cf06bdd55ba40c932267b371484d5029 (diff)
parent528186eea8a70ecab6359a07aef3be87177d5144 (diff)
downloadbh20-seq-resource-c4ba1c7b868b2b9b2b7c7b4f87e2856409b1767d.tar.gz
bh20-seq-resource-c4ba1c7b868b2b9b2b7c7b4f87e2856409b1767d.tar.lz
bh20-seq-resource-c4ba1c7b868b2b9b2b7c7b4f87e2856409b1767d.zip
Merge pull request #24 from adamnovak/dropdowns
Add dropdown support to web uploader metadata form
Diffstat (limited to 'bh20sequploader')
-rw-r--r--bh20sequploader/bh20seq-options.yml17
-rw-r--r--bh20sequploader/bh20seq-schema.yml2
2 files changed, 18 insertions, 1 deletions
diff --git a/bh20sequploader/bh20seq-options.yml b/bh20sequploader/bh20seq-options.yml
new file mode 100644
index 0000000..d05be5a
--- /dev/null
+++ b/bh20sequploader/bh20seq-options.yml
@@ -0,0 +1,17 @@
+# Contains suggested human-readable field values and their corresponding IRIs.
+# Keyed on the field names in the types in the schema. Relies on field names
+# being unique or at least using the same options in different containing
+# types.
+
+host_age_unit:
+ Years: http://purl.obolibrary.org/obo/UO_0000036
+ Months: http://purl.obolibrary.org/obo/UO_0000035
+ Weeks: http://purl.obolibrary.org/obo/UO_0000034
+ Days: http://purl.obolibrary.org/obo/UO_0000033
+ Hours: http://purl.obolibrary.org/obo/UO_0000032
+
+host_sex:
+ Male: http://purl.obolibrary.org/obo/NCIT_C20197
+ Female: http://purl.obolibrary.org/obo/NCIT_C27993
+ Intersex: http://purl.obolibrary.org/obo/NCIT_C45908
+ Unknown: http://purl.obolibrary.org/obo/NCIT_C17998
diff --git a/bh20sequploader/bh20seq-schema.yml b/bh20sequploader/bh20seq-schema.yml
index 7ffc15b..4cd0865 100644
--- a/bh20sequploader/bh20seq-schema.yml
+++ b/bh20sequploader/bh20seq-schema.yml
@@ -30,7 +30,7 @@ $graph:
# jsonldPredicate:
# _id: http://purl.obolibrary.org/obo/NOMEN_0000037
host_sex:
- doc: Sex of the host as define in NCIT, IRI expected (http://purl.obolibrary.org/obo/C20197 (Male), http://purl.obolibrary.org/obo/NCIT_C27993 (Female) or unkown (http://purl.obolibrary.org/obo/NCIT_C17998))
+ doc: Sex of the host as defined in NCIT, IRI expected (http://purl.obolibrary.org/obo/NCIT_C20197 (Male), http://purl.obolibrary.org/obo/NCIT_C27993 (Female), http://purl.obolibrary.org/obo/NCIT_C45908 (Intersex), or http://purl.obolibrary.org/obo/NCIT_C17998 (Unknown))
type: string
jsonldPredicate:
_id: http://purl.obolibrary.org/obo/PATO_0000047