From 3a10517123c261d5ce26f174b97764fcaad06e93 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Fri, 17 Apr 2020 12:02:51 -0700 Subject: Create option dropdowns from an options file --- bh20sequploader/bh20seq-options.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bh20sequploader/bh20seq-options.yml (limited to 'bh20sequploader') diff --git a/bh20sequploader/bh20seq-options.yml b/bh20sequploader/bh20seq-options.yml new file mode 100644 index 0000000..02e911f --- /dev/null +++ b/bh20sequploader/bh20seq-options.yml @@ -0,0 +1,16 @@ +# 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: + year: http://purl.obolibrary.org/obo/UO_0000036 + month: http://purl.obolibrary.org/obo/UO_0000035 + week: http://purl.obolibrary.org/obo/UO_0000035 + day: http://purl.obolibrary.org/obo/UO_0000034 + hour: 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 + unknown: http://purl.obolibrary.org/obo/NCIT_C17998 -- cgit v1.2.3 From c536f92264e094d4a59c1fdcb6a3aea64c0035b2 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Fri, 17 Apr 2020 12:18:53 -0700 Subject: Spruce up the options file and add missing values --- bh20sequploader/bh20seq-options.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bh20sequploader') diff --git a/bh20sequploader/bh20seq-options.yml b/bh20sequploader/bh20seq-options.yml index 02e911f..d05be5a 100644 --- a/bh20sequploader/bh20seq-options.yml +++ b/bh20sequploader/bh20seq-options.yml @@ -4,13 +4,14 @@ # types. host_age_unit: - year: http://purl.obolibrary.org/obo/UO_0000036 - month: http://purl.obolibrary.org/obo/UO_0000035 - week: http://purl.obolibrary.org/obo/UO_0000035 - day: http://purl.obolibrary.org/obo/UO_0000034 - hour: http://purl.obolibrary.org/obo/UO_0000032 + 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 - unknown: http://purl.obolibrary.org/obo/NCIT_C17998 + Intersex: http://purl.obolibrary.org/obo/NCIT_C45908 + Unknown: http://purl.obolibrary.org/obo/NCIT_C17998 -- cgit v1.2.3 From 88e6bb6e82f606c91fca6b3edd410cb28146f569 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Fri, 17 Apr 2020 12:19:33 -0700 Subject: Copy NCIT IRIs back to schema doc --- bh20sequploader/bh20seq-schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bh20sequploader') diff --git a/bh20sequploader/bh20seq-schema.yml b/bh20sequploader/bh20seq-schema.yml index d8641a6..0520e36 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 -- cgit v1.2.3