-
Notifications
You must be signed in to change notification settings - Fork 27
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 #486 from cookeac/465-animal-observation-summary
465 animal observation summary
- Loading branch information
Showing
9 changed files
with
511 additions
and
199 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 observation summary statistics. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarObservationSummaryResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case observation summary statistics." | ||
} | ||
} | ||
} | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"description": "ISO8601/RFC3339 durations used in various types of aggregations. D=Day, M=Month, W=Week, Y=Year, H=Hour, M=Min.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"1D", | ||
"1H", | ||
"24H", | ||
"96H", | ||
"1W", | ||
"1M" | ||
] | ||
} | ||
|
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,28 @@ | ||
{ | ||
"description": "This resource (not an event) is delivered on request to summarise observations for an animal over a time period.", | ||
|
||
"allOf": [ | ||
{ | ||
"$ref": "../resources/icarResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"required": ["animal"], | ||
|
||
"properties": { | ||
"animal": { | ||
"$ref": "../types/icarAnimalIdentifierType.json", | ||
"description": "Unique animal scheme and identifier combination." | ||
}, | ||
"statistics": { | ||
"description": "The summary statistics for this animal. Likely to be summarised on demand based on query parameters.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarObservationStatisticsType.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,30 @@ | ||
{ | ||
"description": "Aggregated statistics for a animal behaviour or similar observation over a time period.", | ||
|
||
"allOf": [ | ||
{ | ||
"type": "object", | ||
|
||
"required": ["startDateTime", "duration"], | ||
|
||
"properties": { | ||
"startDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The start date/time of the aggregation period for this particular statistic." | ||
}, | ||
"duration": { | ||
"$ref": "../enums/icarDurationType.json", | ||
"description": "The type of period duration (e.g. 1D, 24H, 1W). A call may return statistics with different durations." | ||
}, | ||
"isIncomplete": { | ||
"type": "boolean", | ||
"description": "This flag is present with the value true, when there is insufficient or incomplete data in the duration." | ||
} | ||
} | ||
|
||
}, | ||
{ | ||
"$ref": "../types/icarStatisticsType.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
Oops, something went wrong.