Skip to content

Commit 710a65c

Browse files
author
Guy Davenport
committed
Merge branch 'brapi-V2.2' into 649-merge-generator-changes-into-v2_2-fix-the-misplacement-of-a-nullable-tag-and-remove-the-out-directory
# Conflicts: # Specification/BrAPI-Core/Studies/README.md # Specification/Generated/BrAPI-Core.yaml # Specification/Generated/BrAPI-Genotyping.yaml # Specification/Generated/BrAPI-Germplasm.yaml # Specification/Generated/BrAPI-Phenotyping.yaml # Specification/Generated/brapi_generated.graphqls # Specification/Generated/brapi_generated.json # Specification/Generated/brapi_generated.ttl # Specification/Generated/brapi_openapi.json # Specification/Generated/brapi_openapi_comparison.md
2 parents 36ea16f + 0cd758e commit 710a65c

File tree

17 files changed

+38709
-50458
lines changed

17 files changed

+38709
-50458
lines changed

Specification/BrAPI-Core/Studies/README.md

Lines changed: 224 additions & 24 deletions
Large diffs are not rendered by default.

Specification/BrAPI-Core/Studies/Schemas/StudyNewRequest.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,8 @@ components:
179179
nullable: true
180180
example: Irrigation was applied according needs during summer to prevent water stress.
181181
experimentalDesign:
182-
description: The experimental and statistical design full description plus a category PUI taken from crop research ontology or agronomy ontology
183-
type: object
182+
$ref: '#/components/schemas/ExperimentalDesign'
184183
nullable: true
185-
properties:
186-
description:
187-
description: MIAPPE V1.1 (DM-22) Description of the experimental design - Short description of the experimental design, possibly including statistical design. In specific cases, e.g. legacy datasets or data computed from several studies, the experimental design can be "unknown"/"NA", "aggregated/reduced data", or simply 'none'.
188-
type: string
189-
nullable: true
190-
example: Lines were repeated twice at each location using a complete block design. In order to limit competition effects, each block was organized into four sub-blocks corresponding to earliest groups based on a prior information.
191-
PUI:
192-
description: MIAPPE V1.1 (DM-23) Type of experimental design - Type of experimental design of the study, in the form of an accession number from the Crop Ontology.
193-
type: string
194-
nullable: true
195-
example: CO_715:0000145
196184
growthFacility:
197185
description: Short description of the facility in which the study was carried out.
198186
type: object

Specification/BrAPI-Phenotyping/ObservationUnits/README.md

Lines changed: 54 additions & 18 deletions
Large diffs are not rendered by default.

Specification/BrAPI-Phenotyping/ObservationUnits/Schemas/ObservationTreatment.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,28 @@ components:
1111
factor:
1212
description: |-
1313
The type of treatment/factor. ex. 'fertilizer', 'inoculation', 'irrigation', etc
14-
14+
1515
MIAPPE V1.1 (DM-61) Experimental Factor type - Name/Acronym of the experimental factor.
1616
type: string
17-
nullable: true
17+
deprecated: true
1818
example: fertilizer
19+
factorPUI:
20+
description: |-
21+
The PUI of the factor which may link to an ontology
22+
type: string
23+
nullable: true
24+
example: test-factor:dia2020-2-nv.fertilizer
1925
modality:
2026
description: |-
2127
The treatment/factor description. ex. 'low fertilizer', 'yellow rust inoculation', 'high water', etc
22-
23-
MIAPPE V1.1 (DM-62) Experimental Factor description - Free text description of the experimental factor. This includes all relevant treatments planned and protocol planned for all the plants targeted by a given experimental factor.
28+
29+
MIAPPE V1.1 (DM-62) Experimental Factor description - Free text description of the experimental factor. This includes all relevant treatments planned and protocol planned for all the plants targeted by a given experimental factor.
2430
type: string
25-
nullable: true
31+
deprecated: true
2632
example: low fertilizer
27-
33+
modalityPUI:
34+
description: |-
35+
The PUI of the modality which may link to an ontology
36+
type: string
37+
nullable: true
38+
example: test-factor:dia2020-2-nv.lf

Specification/BrAPI-Schema/BrAPI-Core/Study.json

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,20 @@
393393
"ExperimentalDesign": {
394394
"properties": {
395395
"PUI": {
396+
"description": "MIAPPE V1.1 (DM-23) Type of experimental design - Type of experimental design of the study, in the form of an accession number from the Crop Ontology. **Deprecated in v2.2** Please use `experimentalDesignPUI`. Github issue number #539",
397+
"type": [
398+
"null",
399+
"string"
400+
],
401+
"deprecated": true
402+
},
403+
"experimentalDesignPUI": {
396404
"description": "MIAPPE V1.1 (DM-23) Type of experimental design - Type of experimental design of the study, in the form of an accession number from the Crop Ontology.",
397405
"type": [
398406
"null",
399407
"string"
400-
]
408+
],
409+
"examples": ["CO_715:0000145"]
401410
},
402411
"description": {
403412
"description": "MIAPPE V1.1 (DM-22) Description of the experimental design - Short description of the experimental design, possibly including statistical design. In specific cases, e.g. legacy datasets or data computed from several studies, the experimental design can be \"unknown\"/\"NA\", \"aggregated/reduced data\", or simply 'none'.",
@@ -406,6 +415,56 @@
406415
"string"
407416
]
408417
},
418+
"randomizationType": {
419+
"description": "The type of randomization use to create the experimental design.",
420+
"type": [
421+
"null",
422+
"string"
423+
],
424+
"examples": ["RCB:Randomize Complete Block"]
425+
},
426+
"layoutPattern": {
427+
"description": "How the trial is layout in the field.",
428+
"type": [
429+
"null",
430+
"string"
431+
],
432+
"examples": ["Serpentine"]
433+
},
434+
"setSize": {
435+
"description": "The size of the sets in the design.",
436+
"type": [
437+
"null",
438+
"number"
439+
],
440+
"examples": [1]
441+
},
442+
"rowsPerPlot": {
443+
"description": "The number of rows in a plot.",
444+
"type": [
445+
"null",
446+
"number"
447+
],
448+
"examples": [1]
449+
},
450+
"firstRepRand": {
451+
"description": "Is the first replication random.",
452+
"type": [
453+
"null",
454+
"boolean"
455+
],
456+
"examples": [true]
457+
},
458+
"experimentFactors": {
459+
"description": "The factors used in the experimental design.",
460+
"items": {
461+
"$ref": "../BrAPI-Core/Study.json#/$defs/ExperimentFactor"
462+
},
463+
"type": [
464+
"null",
465+
"array"
466+
]
467+
},
409468
"study": {
410469
"description": "Experimental design associated with a study",
411470
"$ref": "../BrAPI-Core/Study.json#/$defs/Study",
@@ -420,6 +479,64 @@
420479
"primaryModel": false
421480
}
422481
},
482+
"ExperimentFactor": {
483+
"properties": {
484+
"factor": {
485+
"description": "The type of treatment/factor. ex. 'fertilizer', 'inoculation', 'irrigation', etc\n\nMIAPPE V1.1 (DM-61) Experimental Factor type - Name/Acronym of the experimental factor.",
486+
"type": "string",
487+
"examples": [
488+
"fertilizer"
489+
]
490+
},
491+
"factorPUI": {
492+
"description": "The PUI of the factor which may link to an ontology.",
493+
"type": [
494+
"null",
495+
"string"
496+
],
497+
"examples": [
498+
"test-factor:dia2020-2-nv.fertilizer"
499+
]
500+
},
501+
"modalities": {
502+
"description": "The type of treatment/factor. ex. 'fertilizer', 'inoculation', 'irrigation', etc\n\nMIAPPE V1.1 (DM-61) Experimental Factor type - Name/Acronym of the experimental factor.",
503+
"items": {
504+
"type": "object",
505+
"properties": {
506+
"modality": {
507+
"description": "The treatment/factor description. ex. 'low fertilizer', 'yellow rust inoculation', 'high water', etc\n\nMIAPPE V1.1 (DM-62) Experimental Factor description - Free text description of the experimental factor. This includes all relevant treatments planned and protocol planned for all the plants targeted by a given experimental factor. ",
508+
"type": "string",
509+
"examples": [
510+
"low fertilizer"
511+
]
512+
},
513+
"modalityPUI": {
514+
"description": "The PUI of the modality which may link to an ontology.",
515+
"type": [
516+
"null",
517+
"string"
518+
],
519+
"examples": [
520+
"test-factor:dia2020-2-nv.lf"
521+
]
522+
}
523+
}
524+
},
525+
"type": [
526+
"null",
527+
"array"
528+
],
529+
"examples": [
530+
"fertilizer"
531+
]
532+
}
533+
},
534+
"title": "ExperimentFactor",
535+
"type": "object",
536+
"brapi-metadata": {
537+
"primaryModel": false
538+
}
539+
},
423540
"GrowthFacility": {
424541
"properties": {
425542
"PUI": {

Specification/BrAPI-Schema/BrAPI-Phenotyping/ObservationUnit.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
"observationUnitDbId"
170170
],
171171
"title": "ObservationUnit",
172-
"description": "A representation of the physical entity being observed during a phenotype data collection process. Typically, this is a Plot or a Plant, but it could include things like Fields, Blocks, or Samples.",
173172
"type": "object",
174173
"brapi-metadata": {
175174
"primaryModel": true
@@ -284,21 +283,23 @@
284283
"primaryModel": false
285284
}
286285
},
287-
"Treatment": {
286+
"ObservationTreatment": {
288287
"properties": {
289288
"factor": {
290289
"description": "The type of treatment/factor. ex. 'fertilizer', 'inoculation', 'irrigation', etc\n\nMIAPPE V1.1 (DM-61) Experimental Factor type - Name/Acronym of the experimental factor.",
291290
"type": [
292291
"null",
293292
"string"
294-
]
293+
],
294+
"examples": ["test-factor:dia2020-2-nv.fertilizer"]
295295
},
296296
"modality": {
297297
"description": "The treatment/factor description. ex. 'low fertilizer', 'yellow rust inoculation', 'high water', etc\n\nMIAPPE V1.1 (DM-62) Experimental Factor description - Free text description of the experimental factor. This includes all relevant treatments planned and protocol planned for all the plants targeted by a given experimental factor. ",
298298
"type": [
299299
"null",
300300
"string"
301-
]
301+
],
302+
"examples": ["test-factor:dia2020-2-nv.lf"]
302303
},
303304
"observationUnit": {
304305
"description": "associated observation Unit",
@@ -307,7 +308,7 @@
307308
"referencedAttribute": "treatments"
308309
}
309310
},
310-
"title": "Treatment",
311+
"title": "ObservationTreatment",
311312
"description": "The type of treatment/factor. ex. 'fertilizer', 'inoculation', 'irrigation', etc. MIAPPE V1.1 (DM-61) Experimental Factor type - Name/Acronym of the experimental factor.",
312313
"type": "object",
313314
"brapi-metadata": {
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
info:
2+
title: BrAPI
3+
version: ''
4+
openapi: 3.0.0
5+
paths: {}
6+
components:
7+
schemas:
8+
ExperimentalDesign:
9+
title: ExperimentalDesign
10+
type: object
11+
description: |-
12+
The experimental and statistical design full description plus a category PUI taken from crop research ontology or agronomy ontology
13+
properties:
14+
description:
15+
description: MIAPPE V1.1 (DM-22) Description of the experimental design - Short description of the experimental design, possibly including statistical design. In specific cases, e.g. legacy datasets or data computed from several studies, the experimental design can be "unknown"/"NA", "aggregated/reduced data", or simply 'none'.
16+
type: string
17+
nullable: true
18+
example: Lines were repeated twice at each location using a complete block design. In order to limit competition effects, each block was organized into four sub-blocks corresponding to earliest groups based on a prior information.
19+
PUI:
20+
description: |-
21+
MIAPPE V1.1 (DM-23) Type of experimental design - Type of experimental design of the study, in the form of an accession number from the Crop Ontology.
22+
23+
**Deprecated in v2.2** Please use `experimentalDesignPUI`. Github issue number #539
24+
type: string
25+
deprecated: true
26+
nullable: true
27+
example: CO_715:0000145
28+
experimentalDesignPUI:
29+
description: MIAPPE V1.1 (DM-23) Type of experimental design - Type of experimental design of the study, in the form of an accession number from the Crop Ontology.
30+
type: string
31+
nullable: true
32+
example: CO_715:0000145
33+
randomizationType:
34+
description: The type of randomization use to create the experimental design
35+
type: string
36+
nullable: true
37+
example: RCB:Randomize Complete Block
38+
layoutPattern:
39+
description: How the trial is layout in the field
40+
type: string
41+
nullable: true
42+
example: Serpentine
43+
setSize:
44+
description: The size of the sets in the design
45+
type: number
46+
nullable: true
47+
example: 1
48+
rowsPerPlot:
49+
description: The number of rows in a plot
50+
type: number
51+
nullable: true
52+
example: 1
53+
firstRepRand:
54+
description: Is the first replication random
55+
type: boolean
56+
nullable: true
57+
example: true
58+
experimentFactors:
59+
description: |-
60+
The factors used in the experimental design
61+
type: array
62+
nullable: true
63+
items:
64+
type: object
65+
title: "ExperimentFactor"
66+
properties:
67+
factor:
68+
description: |-
69+
The type of treatment/factor. For example 'fertilizer', 'inoculation', 'irrigation', etc
70+
71+
MIAPPE V1.1 (DM-61) Experimental Factor type - Name/Acronym of the experimental factor.
72+
type: string
73+
example: fertilizer
74+
factorPUI:
75+
description: |-
76+
The PUI of the factor which may link to an ontology
77+
type: string
78+
nullable: true
79+
example: test-factor:dia2020-2-nv.fertilizer
80+
modalities:
81+
items:
82+
type: object
83+
properties:
84+
modality:
85+
description: |-
86+
The treatment/factor modality or level. For example 'low fertilizer', 'yellow rust inoculation', 'high water', etc
87+
88+
MIAPPE V1.1 (DM-62) Experimental Factor description - Free text description of the experimental factor. This includes all relevant treatments planned and protocol planned for all the plants targeted by a given experimental factor.
89+
type: string
90+
example: low fertilizer
91+
modalityPUI:
92+
description: |-
93+
The PUI of the modality which may link to an ontology
94+
type: string
95+
nullable: true
96+
example: test-factor:dia2020-2-nv.lf

0 commit comments

Comments
 (0)