Skip to content

Commit

Permalink
Feat/add mcpd (#47)
Browse files Browse the repository at this point in the history
* fix: add originLocation to ignore-links.

* fix: add validation file for germplasmMcpd.

* fix: add config for germplasmMcpd.

Co-authored-by: Jeremy Destin <[email protected]>
  • Loading branch information
cpommier and Jeremy Destin authored Jun 10, 2021
1 parent 6858987 commit c8bf637
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/transform-elasticsearch/documents/germplasmMcpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"document-type": "germplasmMcpd",
"source-entity": "germplasmMcpd"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "object",
"properties": {
"@id": {
"type": "string",
"format": "uri"
},
"schema:includedInDataCatalog": {
"type": "string",
"format": "uri"
},
"schema:url": {
"type": "string",
"format": "url"
},

"germplasmDbId": {
"type": "string"
},
"germplasmName": {
"type": "string"
}
},
"required": [
"germplasmDbId",
"@id",
"schema:includedInDataCatalog"
]
}
5 changes: 5 additions & 0 deletions config/transform-jsonld.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"@context": "linked-data/Germplasm.jsonld",
"brapi-name": "germplasm"
},
"germplasmMcpd": {
"@type": "GermplasmMcpd",
"@context": "linked-data/GermplasmMcpd.jsonld",
"brapi-name": "germplasmMcpd"
},
"observationUnit": {
"@type": "ObservationUnit",
"@context": "linked-data/ObservationUnit.jsonld",
Expand Down
3 changes: 2 additions & 1 deletion config/transform-uri.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scale",
"studyType",
"season",
"crop"
"crop",
"originLocation"
]
}

0 comments on commit c8bf637

Please sign in to comment.