Skip to content
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-AMENDMENT_YEAR_STANDARDIZED #129

Closed
pzermoglio opened this issue Jan 18, 2018 · 18 comments
Closed

TG2-AMENDMENT_YEAR_STANDARDIZED #129

pzermoglio opened this issue Jan 18, 2018 · 18 comments
Labels
Amendment Conformance DO NOT IMPLEMENT A potential test that it is not recommended be implemented Parameterized Test requires a parameter Test Tests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT TG2 TIME

Comments

@pzermoglio
Copy link
Member

pzermoglio commented Jan 18, 2018

TestField Value
GUID baf2a90b-af45-4f1a-839f-47126743a48a
Label AMENDMENT_YEAR_STANDARDIZED
Description Attempt to amend the year
TestType Amendment
Darwin Core Class Event
Information Elements ActedUpon dwc:year
Information Elements Consulted
Expected Response INTERNAL_PREREQUISITES_NOT_MET if the field dwc:year is bdq:Empty or if the predefined default value is bdq:Empty; AMENDED if the value of dwc:year is 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_CHANGED
Data Quality Dimension Conformance
Term-Actions YEAR_STANDARDIZED
Parameter(s) Default value for minimum year = 1753
Source Authority
Specification Last Updated 2024-02-23
Examples [dwc:year="MCMXVII": Response.status=AMENDED, Response.result=dwc:year="1917", Response.comment="The text in year was able to be amended to a valid value"]
[dwc:year="X": Response.status=_NOT_AMENDED, Response.result="", Response.comment="The text in year was not able to be amended to a valid value"]
Source TG2-Gainesville
References
Example Implementations (Mechanisms) Kurator/FilteredPush event_date_qc Library
Link to Specification Source Code
Notes
@ArthurChapman ArthurChapman added the Test Tests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT label Jan 19, 2018
@chicoreus
Copy link
Collaborator

It doesn't feel like there is sufficient information here to implement. Is this only a translation from roman numerals into a 4 digit integer? What values exist in the wild which could be translated with little ambiguity? Would a roman numeral in the range I to XII be translated to a year near 0, or would these be more likely seen as errors placing a roman numeral month in the year term?

@ArthurChapman
Copy link
Collaborator

Perhaps needs someone to extract what variations occur in dwc:year and decide then if worth keeping this test

@Tasilee
Copy link
Collaborator

Tasilee commented Jan 29, 2018

This does beg the question on what text/number would be interpreted and transformed to a valid year. I had a scan of what is currently in dwc:year in the ALA and no 'odd' entry could be 'standardized' (as they may have already been 'processed'). Here are the first numbers

EMPTY | 3743922
1 | 21
2 | 69
3 | 59
4 | 50
5 | 49
6 | 30
7 | 30
8 | 47
9 | 33
10 | 67
11 | 61
12 | 35
13 | 1
18 | 1
20 | 3
30 | 2
31 | 1
195 | 1
313 | 4
612 | 1
1008 | 7
1193 | 2
1208 | 1
1629 | 1
1634 | 12
1636 | 1
1648 | 1
1652 | 2
1654 | 1
1668 | 2
...

@Tasilee
Copy link
Collaborator

Tasilee commented Aug 14, 2018

After 'sleeping on this' for a while, I'm inclined to agree with @chicoreus. The test seems to have little utility except for the odd Roman numeral, which we would hopefully flag. While this will lose @pzermoglio symmetry, rationality should prevail? Any strong arguments before I close this one. One less test?

@Tasilee Tasilee added the DO NOT IMPLEMENT A potential test that it is not recommended be implemented label Aug 14, 2018
@ArthurChapman
Copy link
Collaborator

I agree Lee - leave as DO NOT IMPLEMENT at this stage - if someone comes up with good examples (can't think of any) at a later date - it can always be reinstalled. I am sure there are other tests like that (probably in the SUPPLEMENTAL).

@tucotuco tucotuco added the Parameterized Test requires a parameter label Aug 26, 2018
@pzermoglio pzermoglio removed DO NOT IMPLEMENT A potential test that it is not recommended be implemented NEEDS WORK labels Aug 26, 2018
@ArthurChapman
Copy link
Collaborator

I still have some problem with this one. I can see the direct translation from roman numerals and I am happy for it to remain, but there are a couple of things I do not understand as we have it written.

e.g. What is the “Pre-defined default value” that we mention? It is listed as Parameterized – what parameter needs to be set? (I guess for the predefined default value - but what is this default value - I can't possibly see how we can have a default value for a year (is it the current year?) - I don't understand!

@Tasilee
Copy link
Collaborator

Tasilee commented Jan 22, 2019

I have to agree @ArthurChapman as I noted previously.

@chicoreus
Copy link
Collaborator

I also still have problems with this one. @ArthurChapman I think the pre-defined value is attempting to get around the risk of interpreting months as a year. A pre-defined value that is taken as the minimum possible year to translate might be a value such as 1000 or 1700, and XII, translating to 12, would fall below this threshold and not be translated. I think that was the intent. Still problematic, and I find @Tasilee 's list of values in the wild good evidence for not implementing this one.

@Tasilee
Copy link
Collaborator

Tasilee commented Jan 23, 2019

Forget any concept of defaults. We cannot LOWER the 'quality' by making an AMENDMENT that may be a guess. IF (and it is a guess at this point) we can only interpret Romans, I suggest we are better off with one less 'test'

@ArthurChapman
Copy link
Collaborator

In discussion with @Tasilee - the only examples we can think of are translations from Roman years. Is it likely that there are significant numbers of these? (i.e. can we do a search of GBIF/iDigBio/VertNet to see if this occurs). There do not appear to be any cases in the ALA. If it is not a common occurrence, @Tasilee and I believe we should remove this test

@Tasilee
Copy link
Collaborator

Tasilee commented Jan 23, 2019

...and remember that we have the VALIDATION anyway. Best leave it at that.

@chicoreus
Copy link
Collaborator

@Tasilee I concur.

@tucotuco
Copy link
Member

There are no instances of Roman years in VertNet. @Tasilee I concur with dropping the test.

@Tasilee Tasilee removed the Test Tests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT label Jan 24, 2019
@chicoreus chicoreus added the DO NOT IMPLEMENT A potential test that it is not recommended be implemented label Aug 9, 2019
@chicoreus
Copy link
Collaborator

This test is still showing up in the csv generated from the issues by bdq_issue_to_csv code, adding the do not implement label back in as this appears to be the consensus.

@Tasilee
Copy link
Collaborator

Tasilee commented Aug 11, 2019

@chicoreus - We have previously 'Closed' test issues when we have judged them as not being CORE. That way, such issues won't by default turn up on dumps. The history of such actions will still be available. What do others think? We should try for consistency wherever possible.

@ArthurChapman
Copy link
Collaborator

Should Parameter be earliest year (not minimum year) and note that #141 has "Default values: earliest year = 1600" - we have an inconsistency

@Tasilee
Copy link
Collaborator

Tasilee commented Aug 12, 2019

@ArthurChapman - we also have reference to 'begin' and 'end years' in #141

@Tasilee Tasilee closed this as completed Aug 13, 2019
@Tasilee Tasilee added the Test Tests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT label Jan 15, 2024
@Tasilee
Copy link
Collaborator

Tasilee commented Feb 22, 2024

Specifications updated to align with the current template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Amendment Conformance DO NOT IMPLEMENT A potential test that it is not recommended be implemented Parameterized Test requires a parameter Test Tests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT TG2 TIME
Projects
None yet
Development

No branches or pull requests

6 participants