-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TG2-VALIDATION_YEAR_STANDARD #141
Comments
Added missing guid. |
Working with Zooarch, I do not agree with the rejection of years that are less than four digits. We have plenty of existing dated examples with those characteristics. |
Identify them as non-standard? Not in the Zooarch case. 900 is a great year in zooarch, for example. So is 50. So is -4000. Perhaps if this test was similarly parametrized it would make all the difference. |
We still need to add a reference to why it is parameterized. For example to set the earliest date (for example for most data it will be 1700. I wonder if in the notes we should say that if a parameter is not set it defaults to a four digit year (or to 1700) or something like that. This is the year of an Event - it interests me that we have a lot of fossil collections that were "collected" as far as 50 or -4000. I guess that boils down to what is meant by an Event. Interesting! |
We need to perhaps change the Expected Response to something like INTERNAL_PREREQUISITES_NOT_MET if the field dwc:year is not present or is EMPTY; COMPLIANT if the value of the field dwc:year was unambiguously interpreted to be an integer less than the current year, and optionally not extending before a year designated when the test is run; otherwise NOT_COMPLIANT |
I agree with the @ArthurChapman solution. I still don't like the test in Issue #129. |
I have made some changes to the Expected Response and the Notes. Please check. And #129 is no longer. |
Looks better. I added "set" after Parameretized in Expected Response - Should we say when the test was "Run" rather than "established" I think we have used run elsewhere. Do you want to add to the Note something about "Some palaentological records may be earlier than the year 1000 and thus two or three digits would be acceptable in those cases." |
I agree @ArthurChapman. I've also added negative integers as an example? What about things like 1.5BP? |
1.5BP would not be valid - would need to be translated (that is another example for now deleted #129 - so not only MCMXXVIII etc.) |
Should 123 in Example stay or should it say dwc:year="123" (if Parameter set to 1753, for example) |
I would think we do need the "If" |
I would change the expected response from "INTERNAL_PREREQUISITES_NOT_MET if the field dwc:year is not present or is EMPTY; COMPLIANT if the value of the field dwc:year was unambiguously interpreted to be an integer less than or equal to the current year, and not before a year designated by the parameter set when the test was established; otherwise NOT_COMPLIANT" to "INTERNAL_PREREQUISITES_NOT_MET if dwc:year is not present or is EMPTY; COMPLIANT if the I would change the notes from "This test should detect at least 1, 2 and 3 digit values for year where interpretation may be ambiguous and non integer values. The test is Parameterized by having a value set for the minimal (earliest) year that will be acceptable in the environment. Palaentological records may be earlier than the year 1000 and thus two or three digits would be acceptable, and in some cases, negative integers." to "The results of this test are time-dependent. Next year is not valid now. Next year it will be. This test provides the option to designate lower and upper limits to the year. The upper limit, if not provided, should default to the year when the test is run. There should be no default lower limit. NB By convention, use 1700 as a lower limit for collecting dates of biological specimens." |
So, if following principle of #178 and adding a Field called Parameter it would read something like |
I've edited the table, according to comments |
I would suggest default earliest year should be 1700, and if there are palaentological records they could set to -500 or something. This would pick up all the living material earlier than 1700. |
Seems reasonable. |
And #121 |
Woops - I think I meant #129 |
I have taken the liberty to edit the Parameter(s) to be explicit about what the parameters are and what their default values are. Was, "Default values = 1600 and current year". Changed to, "Default values: earliest year = 1600, latest year = current year". |
Following the discussions arising from the event date case study for the BISS paper, I believe that this test should be updated to use the expected response of TG2-VALIDATION_YEAR_OUTOFRANGE (#84), which should then be deprecated. Everything else about this test is already up to date with the proposed change. |
Updated to incorporate TG2_VALIDATION_YEAR_OUTOFRANGE (#84). |
The current wording of the specification is problematic for implementors. "cast" has a specific meaning in typed programing languages that is probably not what is meant here, and confilicts with the meaning of nonstandard. This looks like it comes from bringing in the language from #84, which should probably be reopened and the paameters switched to there. The two tests are for different concepts. #84 tests if a validly formatted year is within range, #141 tests if a year is validly formatted and would go in paralell with an ammendment which would convert a value that can be unabmigously interpreted as an integer into that integer. We had this set of paralell tests on the board in gainesville, and it is important that we don't merge multiple concepts into single tests. This test, and the accompaniying ammendment should assert "unambiguously interpreted to be an integer", and should not include a parameter for range. Test #84 can assert "cast as an integer" (meaning that the string "1" can be treated as the integer 1), and should include the range parameters. |
The name and dimension of this test no longer agree with the specification. |
Specifications updated to align with the current template |
Corrected the TERM-ACTION from "YEAR_NOTATANDARD" to "YEAR_STANDARD" |
The text was updated successfully, but these errors were encountered: