Difference between revisions of "Rule frame"
From D4Science Wiki
(→ICIS Rule Frame) |
(→ICIS Rule Frame) |
||
Line 14: | Line 14: | ||
| align="center" | AI / AU | | align="center" | AI / AU | ||
| align="center" | New | | align="center" | New | ||
− | | align="center" | | + | | align="center" | |
| align="center" | Check that Seawater is warmer then 0, and cooler than 30 | | align="center" | Check that Seawater is warmer then 0, and cooler than 30 | ||
| align="center" | Raise Alert ("Your water temp is out of range") | | align="center" | Raise Alert ("Your water temp is out of range") | ||
+ | |- | ||
+ | | align="center" | Tuple | ||
+ | | align="center" | dtStart <= dtEnd | ||
+ | | align="center" | BI / BU | ||
+ | | align="center" | New | ||
+ | | align="center" | | ||
+ | | align="center" | A check to ensure start dates are before end-dates | ||
+ | | align="center" | Raise Alert ("A start date must be before the end-date") | ||
+ | |- | ||
+ | | align="center" | Entity | ||
+ | | align="center" | Unique key on genus, species, subspecies | ||
+ | | align="center" | BI / BU | ||
+ | | align="center" | New | ||
+ | | align="center" | | ||
+ | | align="center" | Check that species are unique | ||
+ | | align="center" | Raise Error ("This species already exists") | ||
+ | |- | ||
+ | | align="center" | Inter Entity | ||
+ | | align="center" | Valid Lat/Long | ||
+ | | align="center" | App logic | ||
+ | | align="center" | New | ||
+ | | align="center" | | ||
+ | | align="center" | Find if Lat/Long fits within BBox of distributions | ||
+ | | align="center" | Raise Alert ("This position seems unvalid") | ||
|} | |} |
Revision as of 14:34, 1 July 2013
ICIS Rule Frame
One approach to capturing requirements and potentially define on the implementation facilities, is to use a rule frame. This classifies and describes the expected types of rules to apply to data once an action has been triggered.
The rule frame described in this example related to the validation of a imaginary dataset that is collected from a Regional Fisheries Organization, and has been loaded as a CSV in ICIS. It now needs to be reconciled with previous datasets from the same reporting strema, and be published in various locations.
Type | Trigger | When | Status | Implemented by | Comment | Action |
---|---|---|---|---|---|---|
Attr | 0 <= temp <= 30 | AI / AU | New | Check that Seawater is warmer then 0, and cooler than 30 | Raise Alert ("Your water temp is out of range") | |
Tuple | dtStart <= dtEnd | BI / BU | New | A check to ensure start dates are before end-dates | Raise Alert ("A start date must be before the end-date") | |
Entity | Unique key on genus, species, subspecies | BI / BU | New | Check that species are unique | Raise Error ("This species already exists") | |
Inter Entity | Valid Lat/Long | App logic | New | Find if Lat/Long fits within BBox of distributions | Raise Alert ("This position seems unvalid") |