Skip to content

Commit

Permalink
If no @type, then defaulting to Phenotyping study. This is likely a t…
Browse files Browse the repository at this point in the history
…emp workaround
  • Loading branch information
cpommier committed Mar 16, 2021
1 parent df95a49 commit afea854
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
{
"{replace}":{
"possible_terms": [
"", null,
"Phenotypes", "Phenotyping", "Field Experiement",
"Greenhouse (29\u00baC/20\u00baC)", "Green house",
"Growth chamber", "Phenotyping Study", "Provenance trial",
Expand Down
41 changes: 40 additions & 1 deletion config/transform-elasticsearch/documents/study.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@
"document-type": "study",
"source-entity": "study",
"document-transform": {
"@type": {
"{list}": [
{
"{or}": [
{
"{replace}":{
"possible_terms": [
"Genotyping", "Genotyping Study",
"allele size", "genotype"
]
},
"{with}": {
"replaced_by": "Genotyping Study"
}
},
{
"{replace}":{
"possible_terms": [
"", null,
"Phenotypes", "Phenotyping", "Field Experiement",
"Greenhouse (29\u00baC/20\u00baC)", "Green house",
"Growth chamber", "Phenotyping Study", "Provenance trial",
"Half sibling progeny trial", "Clonal trial", "Progeny trial",
"Other", "Provenance and half sibling progeny trial",
"Species comparison", "Seed orchard", "Demonstration test",
"Full sibling progeny trial", "Juveniles comparison",
"Clonal archiva, clone bank", "Conservation plot",
"Biomasse test - sylvabiom", "Response study", "raw"
]
},
"{with}": {
"replaced_by": "Phenotyping Study"
}
},
"Study"
]
}
]
},
"schema:url": "{.documentationURL}",
"schema:includedInDataCatalog": "{.source}",
"studyName": {
Expand Down Expand Up @@ -34,4 +73,4 @@
}
}
}
}
}

0 comments on commit afea854

Please sign in to comment.