-
Notifications
You must be signed in to change notification settings - Fork 9
TG2-AMENDMENT_EVENTDATE_FROM_VERBATIM #86
Copy link
Copy link
Closed
Labels
AmendmentCODEDCORETG2 CORE testsTG2 CORE testsCompletenessTG2TIMETestTests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENTTests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT
Description
iDigBioBot
opened on Jan 5, 2018
Issue body actions
| TestField | Value |
|---|---|
| GUID | 6d0a0c10-5e4a-4759-b448-88932f399812 |
| Label | AMENDMENT_EVENTDATE_FROM_VERBATIM |
| Description | Proposes an amendment to the value of dwc:eventDate from the content of dwc:verbatimEventDate. |
| TestType | Amendment |
| Darwin Core Class | dwc:Event |
| Information Elements ActedUpon | dwc:eventDate |
| Information Elements Consulted | dwc:verbatimEventDate |
| Expected Response | INTERNAL_PREREQUISITES_NOT_MET if dwc:eventDate is bdq:NotEmpty or the value of dwc:verbatimEventDate is bdq:Empty; FILLED_IN the value of dwc:eventDate if an unambiguous ISO 8601 date is interpreted from dwc:verbatimEventDate; otherwise NOT_AMENDED |
| Data Quality Dimension | Completeness |
| Term-Actions | EVENTDATE_FROM_VERBATIM |
| Parameter(s) | |
| Source Authority | |
| Specification Last Updated | 2024-09-16 |
| Examples | [dwc:eventDate="", dwc:verbatimEventDate="Friday 29th Oct. 2021": Response.status=FILLED_IN, Response.result=dwc:eventDate="2021-10-29", Response.comment="dwc:verbatimEventDate contains an interpretable value (assuming some external lookup thesauri)"] |
| [dwc:eventDate="", dwc:verbatimEventDate="03/04/2020": Response.status=NOT_AMENDED, Response.result="", Response.comment="dwc:verbatimEventDate is ambiguous - could be either 3rd April or 4th March"] | |
| Source | VertNet, FP, Kurator |
| References |
|
| Example Implementations (Mechanisms) | Kurator/FilteredPush event_date_qc Library DOI: 10.5281/zenodo.596795 |
| Link to Specification Source Code | https://github.com/FilteredPush/event_date_qc/blob/v3.0.5/src/main/java/org/filteredpush/qc/date/DwCEventDQ.java#L334 For a minimum set of unit tests see: DwcEventDQTest, see also unit tests for underlying implementation in DateUtilsTest and DateUtilsTest |
| Notes | If the proposed eventDate is prior to 1918-02-14, the Response.comment will include a note that the "verbatimDate was assumed to be in the Gregorian calendar". When running the test, the original precision, e.g. year=1980, month=1 should be retained, e.g. dwc:eventDate should become 1980-01, not 1980-01-01/1980-01-31. |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AmendmentCODEDCORETG2 CORE testsTG2 CORE testsCompletenessTG2TIMETestTests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENTTests created by TG2, either CORE, Supplementary or DO NOT IMPLEMENT