bdq
bdq copied to clipboard
TG2-VALIDATION_DATEIDENTIFIED_STANDARD
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 |
|
Example Implementations (Mechanisms) | Kurator:event_date_qc |
Link to Specification Source Code | event_date_qc DwCOtherDateDQ.validationDateidentifiedStandard() |
Notes |
Comment by Lee Belbin (@Tasilee) migrated from spreadsheet: Added post scoring for completeness
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.
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
I have updated the ISO Reference link
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"