Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Specification/BrAPI-Schema/BrAPI-Germplasm/Germplasm.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@
"referencedAttribute": "germplasm",
"relationshipType": "one-to-one"
},
"media": {
"description": "Descriptive images of a model example for a particular germplasm",
"type": ["null", "array"],
"items": {
"$ref": "Germplasm.json#/$defs/GermplasmMedia"
}
},
"pedigree": {
"description": "The cross name and optional selection history.\n\nMCPD (v2.1) (ANCEST) 20. Information about either pedigree or other description of ancestral information (e.g. parent variety in case of mutant or selection). For example a pedigree 'Hanna/7*Atlas//Turk/8*Atlas' or a description 'mutation found in Hanna', 'selection from Irene' or 'cross involving amongst others Hanna and Irene'.",
"type": [
Expand Down Expand Up @@ -1012,6 +1019,28 @@
"brapi-metadata": {
"primaryModel": false
}
},
"GermplasmMedia":{
"title": "GermplasmMedia",
"type": "object",
"brapi-metadata": {
"primaryModel": false
},
"description": "Descriptive images of a model example for a particular germplasm",
"properties": {
"image": {
"description": "associated image reference",
"$ref": "../BrAPI-Phenotyping/Image.json#/$defs/Image",
"relationshipType": "one-to-one",
"referencedAttribute": "germplasmMedia"
},
"imageURL": {
"descritpion": "URL of the image file",
"type": ["null", "string"],
"format": "url",
"examples": ["http://foo.bar/baz.png"]
}
}
}
},
"$id": "https://brapi.org/Specification/BrAPI-Schema/BrAPI-Germplasm/Germplasm.json",
Expand Down
6 changes: 6 additions & 0 deletions Specification/BrAPI-Schema/BrAPI-Phenotyping/Image.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@
"referencedAttribute": "images",
"relationshipType": "one-to-many",
"type": ["null", "array"]
},
"germplasmMedia": {
"description": "A list of observation Ids this image is associated with, if applicable.",
"$ref": "../BrAPI-Germplasm/Germplasm.json#/$defs/GermplasmMedia",
"referencedAttribute": "image",
"relationshipType": "one-to-one"
}
},
"required": [
Expand Down
4 changes: 4 additions & 0 deletions generator/openapi-options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ properties:
linkPropertyFor:
Observation:
uploadedByPerson: false
GermplasmMedia:
image: false
linkTypeFor:
Person:
observations: none
Image:
germplasmMedia: none
Loading