forked from adewg/ICAR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from adewg/Develop
Develop
- Loading branch information
Showing
30 changed files
with
939 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of daily feed reports. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarDailyFeedReportResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case daily feed reports." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feeds. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feeds." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feed intakes. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedIntakeEventResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feed intakes." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feed recommendations. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedRecommendationResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feed recommendations." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feed reports. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedReportResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feed reports." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of rations. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarRationResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case rations." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"description": "Enumeration for feed categories. Each category can have more detail in a type specification.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Concentrate", | ||
"Roughage", | ||
"Additives", | ||
"Other" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"description": "Enumeration for the method with which a value was determined.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Analyzed", | ||
"Derived" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"description": "Reporting the feed consumed during a certain time period", | ||
|
||
"allOf": [{ | ||
"$ref": "../resources/icarResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"eventDate": { | ||
"$ref": "../types/icarDateType.json", | ||
"description": "date of the feeding" | ||
}, | ||
"feedVisitDuration": { | ||
"$ref": "../types/icarFeedDurationType.json" | ||
}, | ||
"consumedFeed": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarConsumedFeedType.json" | ||
} | ||
}, | ||
"consumedRation": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarConsumedRationType.json" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"description": "Event for recording a feed intake", | ||
|
||
"allOf": [{ | ||
"$ref": "../resources/icarEventCoreResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"required": [ | ||
"feedingStartingDateTime", | ||
"feedVisitDuration" | ||
], | ||
|
||
"properties": { | ||
"feedingStartingDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The moment the feeding started" | ||
}, | ||
"feedVisitDuration": { | ||
"$ref": "../types/icarFeedDurationType.json" | ||
}, | ||
"consumedFeed": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarConsumedFeedType.json" | ||
} | ||
}, | ||
"consumedRation": { | ||
"$ref": "../types/icarConsumedRationType.json", | ||
"description": "The eventual ration that has been consumed" | ||
}, | ||
"device": { | ||
"$ref": "../types/icarDeviceReferenceType.json", | ||
"description": "Optional information about the device used for the feeding." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"description": "An overview of the recommended feeding of animals", | ||
|
||
"allOf": [{ | ||
"$ref": "../resources/icarResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"required": [ | ||
"id", | ||
"animal" | ||
], | ||
|
||
"properties": { | ||
"id": { | ||
"$ref": "../types/icarFeedRecommendationIdType.json", | ||
"description": "Unique identifier in the source system for this recommendation." | ||
}, | ||
"animal": { | ||
"$ref": "../types/icarAnimalIdentifierType.json", | ||
"description": "Unique animal scheme and identifier combination." | ||
}, | ||
"recommendationDateTime ": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The timestamp of the recommendation." | ||
}, | ||
"startDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The date of the beginning of the recommendation." | ||
}, | ||
"endDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The end date of the recommendation." | ||
}, | ||
"recommendedFeed": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarRecommendedFeedType.json" | ||
} | ||
}, | ||
"recommendedRation": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarRecommendedRationType.json" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.