tdwg / bdq

Biodiversity Data Quality (BDQ) Interest Group
https://github.com/tdwg/bdq
43 stars 7 forks source link

TG2-VALIDATION_SPECIFICEPITHET_NOTEMPTY #220

Closed Tasilee closed 9 months ago

Tasilee commented 10 months ago
TestField Value
GUID cdb37443-292e-49b6-a012-4718f0d7ba64
Label VALIDATION_SPECIFICEPITHET_NOTEMPTY
Description Is there a value in dwc:specificEpithet?
TestType Validation
Darwin Core Class Taxon
Information Elements ActedUpon dwc:specificEpithet
Information Elements Consulted
Expected Response INTERNAL_PREREQUISITES_NOT_MET if dwc:specificEpithet is bdq:EmptyY and dwc:taxonRank contains a value that is not interpretable as a taxon rank; COMPLIANT if dwc:specificEpithet is bdq:NotEmpty, or dwc:specificEpithet is bdq:Empty and the value in dwc:taxonRank is higher than specific epithet; otherwise NOT_COMPLIANT.
Data Quality Dimension Completeness
Term-Actions SPECIFICEPITHET_NOTEMPTY
Parameter(s)
Source Authority
Specification Last Updated 2024-06-05
Examples [dwc:specificEpithet="noidea": Response.status=RUN_HAS_RESULT, Response.result=COMPLIANT, Response.comment="dwc:specificEpithet is bdq:NotEmpty"]
[dwc:specificEpithet="": Response.status=RUN_HAS_RESULT, Response.result=NOT_COMPLIANT, Response.comment="dwc:specificEpithet is bdq:Empty"]
Source TG2
References
Example Implementations (Mechanisms) Kurator/FilteredPush sci_name_qc Library
Link to Specification Source Code https://github.com/FilteredPush/sci_name_qc/blob/v1.1.2/src/main/java/org/filteredpush/qc/sciname/DwCSciNameDQ.java#L3238
Notes This bdq:Supplementary test is not regarded as CORE (cf. bdq:CORE) because of one or more of the reasons: not being widely applicable; not informative; not straightforward to implement or likely to return a high percentage of either bdq:COMPLIANT or bdq:NOT_COMPLIANT results (cf bdq:Response.result). A Supplementary test may be implemented as CORE when a suitable use case exists.
Tasilee commented 5 months ago

Changed Expected Response from

COMPLIANT if dwc:specificEpithet is not EMPTY; otherwise NOT_COMPLIANT

to

INTERNAL_PREREQUISITES_NOT_MET if dwc:specificEpithet is EMPTY and dwc:taxonRank contains a value that is not interpretable as a taxon rank; COMPLIANT if dwc:specificEpithet is not EMPTY, or dwc:specificEpithet is EMPTY and the value in dwc:taxonRank is higher than specific epithet; otherwise NOT_COMPLIANT.