Skip to content

Commit 2c9c0ef

Browse files
committed
If no @type, then defaulting to Phenotyping study. This is likely a temp workaround
1 parent 86e616f commit 2c9c0ef

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

config/transform-elasticsearch/documents/datadiscovery_study.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
{
2222
"{replace}":{
2323
"possible_terms": [
24+
"", null,
2425
"Phenotypes", "Phenotyping", "Field Experiement",
2526
"Greenhouse (29\u00baC/20\u00baC)", "Green house",
2627
"Growth chamber", "Phenotyping Study", "Provenance trial",

config/transform-elasticsearch/documents/study.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,45 @@
22
"document-type": "study",
33
"source-entity": "study",
44
"document-transform": {
5+
"@type": {
6+
"{list}": [
7+
{
8+
"{or}": [
9+
{
10+
"{replace}":{
11+
"possible_terms": [
12+
"Genotyping", "Genotyping Study",
13+
"allele size", "genotype"
14+
]
15+
},
16+
"{with}": {
17+
"replaced_by": "Genotyping Study"
18+
}
19+
},
20+
{
21+
"{replace}":{
22+
"possible_terms": [
23+
"", null,
24+
"Phenotypes", "Phenotyping", "Field Experiement",
25+
"Greenhouse (29\u00baC/20\u00baC)", "Green house",
26+
"Growth chamber", "Phenotyping Study", "Provenance trial",
27+
"Half sibling progeny trial", "Clonal trial", "Progeny trial",
28+
"Other", "Provenance and half sibling progeny trial",
29+
"Species comparison", "Seed orchard", "Demonstration test",
30+
"Full sibling progeny trial", "Juveniles comparison",
31+
"Clonal archiva, clone bank", "Conservation plot",
32+
"Biomasse test - sylvabiom", "Response study", "raw"
33+
]
34+
},
35+
"{with}": {
36+
"replaced_by": "Phenotyping Study"
37+
}
38+
},
39+
"Study"
40+
]
41+
}
42+
]
43+
},
544
"schema:url": "{.documentationURL}",
645
"schema:includedInDataCatalog": "{.source}",
746
"studyName": {
@@ -34,4 +73,4 @@
3473
}
3574
}
3675
}
37-
}
76+
}

0 commit comments

Comments
 (0)