tdwg / bdq

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

TG2-VALIDATION_DECIMALLONGITUDE_INRANGE #30

Open iDigBioBot opened 6 years ago

iDigBioBot commented 6 years ago
TestField Value
GUID 0949110d-c06b-450e-9649-7c1374d940d1
Label VALIDATION_DECIMALLONGITUDE_INRANGE
Description Is the value of dwc:decimalLongitude a number between -180 and 180 inclusive?
TestType Validation
Darwin Core Class dcterms:Location
Information Elements ActedUpon dwc:decimalLongitude
Information Elements Consulted
Expected Response INTERNAL_PREREQUISITES_NOT_MET if dwc:decimalLongitude is bdq:Empty or the value is not a number; COMPLIANT if the value of dwc:decimalLongitude is between -180 and 180 degrees, inclusive; otherwise NOT_COMPLIANT
Data Quality Dimension Conformance
Term-Actions DECIMALLONGITUDE_INRANGE
Parameter(s)
Source Authority
Specification Last Updated 2023-09-17
Examples [dwc:decimalLongitude="0": Response.status=RUN_HAS_RESULT, Response.result=COMPLIANT, Response.comment="dwc:decimalLongitude is in range"]
[dwc:decimalLongitude="181.0554": Response.status=RUN_HAS_RESULT, Response.result=NOT_COMPLIANT, Response.comment="dwc:decimalLongitude >180"]
Source ALA, GBIF, OBIS
References
Example Implementations (Mechanisms)
Link to Specification Source Code
Notes
iDigBioBot commented 6 years ago

Comment by Paula Zermoglio (@pzermoglio) migrated from spreadsheet: Order matters, useful AFTER interpretation of verbatim if no decimalLat and decimaLong were provided.

ArthurChapman commented 6 years ago

Comments from Gainesville: Perhaps this test could just be a prerequisite and not a separate test. Agreed to leave as test.

ArthurChapman commented 2 years ago

Similar to test #79

I believe the word "degrees" should be removed from - the value is a number between -180 and 180, not "-180 and 180 degrees"

| Expected Response | INTERNAL_PREREQUISITES_NOT_MET if dwc:decimalLatitude is EMPTY or the value is not interpretable as a number; COMPLIANT if the value of dwc:decimalLatitude is between -90 and 90 degrees, inclusive; otherwise NOT_COMPLIANT |

Tasilee commented 2 years ago

To a certain degree, I agree

ArthurChapman commented 2 years ago

Removed the "degrees" from COMPLIANT

tucotuco commented 2 years ago

I suggest the Description:

'Is the value of dwc:decimalLongitude a number between -180 and 180 inclusive?'

in place of:

'Is the value of dwc:decimalLongitude a number between -180 and 180?'

Tasilee commented 1 year ago

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