bdq icon indicating copy to clipboard operation
bdq copied to clipboard

TG2-VALIDATION_DATEIDENTIFIED_STANDARD

Open iDigBioBot opened this issue 7 years ago • 6 comments

TestField Value
GUID 66269bdd-9271-4e76-b25c-7ab81eebe1d8
Label VALIDATION_DATEIDENTIFIED_STANDARD
Description Is the value of dwc:dateIdentified a valid ISO date?
TestType Validation
Darwin Core Class dwc:Identification
Information Elements ActedUpon dwc:dateIdentified
Information Elements Consulted
Expected Response INTERNAL_PREREQUISITES_NOT_MET if dwc:dateIdentified is bdq:Empty; COMPLIANT if the value of dwc:dateIdentified contains a valid ISO 8601 date; otherwise NOT_COMPLIANT
Data Quality Dimension Conformance
Term-Actions DATEIDENTIFIED_STANDARD
Parameter(s)
Source Authority
Specification Last Updated 2024-09-16
Examples [dwc:dateIdentified="1963-03-08T14:07": Response.status=RUN_HAS_RESULT, Response.result=COMPLIANT, Response.comment="dwc:dateIdentified is a valid ISO 8601-1:2019 date"]
[dwc:dateIdentified="1963-03-08X14:07-0600": Response.status=RUN_HAS_RESULT, Response.result=NOT_COMPLIANT, Response.comment="dwc:dateIdentified is not a valid ISO 8601-1:2019 date"]
Source
References
  • ISO (2019) ISO 8601-1:2019(en) Date and time — Representations for information interchange — Part 1: Basic rules. https://www.iso.org/obp/ui/
  • Wikipedia (2020) ISO 8601. https://en.wikipedia.org/wiki/ISO_8601
  • Library of Congress (2019) Extended Date/Time Format (EDTF). https://www.loc.gov/standards/datetime/
Example Implementations (Mechanisms) Kurator:event_date_qc
Link to Specification Source Code event_date_qc DwCOtherDateDQ.validationDateidentifiedStandard()
Notes

iDigBioBot avatar Jan 05 '18 15:01 iDigBioBot

Comment by Lee Belbin (@Tasilee) migrated from spreadsheet: Added post scoring for completeness

iDigBioBot avatar Jan 05 '18 15:01 iDigBioBot

Changing

INTERNAL_PREREQUISITES_NOT_MET if dwc:dateIdentified is EMPTY; COMPLIANT if the value of dwc:dateIdentified is a valid according to bdq:sourceAuthority; otherwise NOT_COMPLIANT

to

INTERNAL_PREREQUISITES_NOT_MET if dwc:dateIdentified is EMPTY; COMPLIANT if dwc:dateIdentified contains a valid ISO 8601-1 date; otherwise NOT_COMPLIANT

Reasoning as per recent discussions, ISO 8601 is a format standard, not a lookup vocabulary (which would require an EXTERNAL_PREREQUISITES_NOT_MET). So I will also remove the bdq:sourceAuthority.

Tasilee avatar Mar 10 '23 01:03 Tasilee

I've edited the Expected Response according to @tucotuco suggestion:

From

INTERNAL_PREREQUISITES_NOT_MET if dwc:dateIdentified is EMPTY; COMPLIANT if dwc:dateIdentified contains a valid ISO 8601-1 date; otherwise NOT_COMPLIANT

to

INTERNAL_PREREQUISITES_NOT_MET if dwc:dateIdentified is EMPTY; COMPLIANT if the value of dwc:dateIdentified is a valid ISO 8601-1 date; otherwise NOT_COMPLIANT

and updated the References

Tasilee avatar Mar 26 '23 22:03 Tasilee

I have updated the ISO Reference link

Tasilee avatar Mar 29 '23 22:03 Tasilee

Splitting bdqffdq:Information Elements into "Information Elements ActedUpon" and "Information Elements Consulted".

Also changed "Field" to "TestField", "Output Type" to "TestType" and updated "Specification Last Updated"

Tasilee avatar Sep 18 '23 01:09 Tasilee