bdq icon indicating copy to clipboard operation
bdq copied to clipboard

TG2-VALIDATION_BASISOFRECORD_STANDARD

Open iDigBioBot opened this issue 7 years ago • 14 comments

TestField Value
GUID 42408a00-bf71-4892-a399-4325e2bc1fb8
Label VALIDATION_BASISOFRECORD_STANDARD
Description Does the value of dwc:basisOfRecord occur in the bdq:sourceAuthority?
TestType Validation
Darwin Core Class Record-level
Information Elements ActedUpon dwc:basisOfRecord
Information Elements Consulted
Expected Response EXTERNAL_PREREQUISITES_NOT_MET if the bdq:sourceAuthority is not available; INTERNAL_PREREQUISITES_NOT_MET if dwc:basisOfRecord is bdq:Empty; COMPLIANT if the value of dwc:basisOfRecord is valid in the bdq:sourceAuthority; otherwise NOT_COMPLIANT
Data Quality Dimension Conformance
Term-Actions BASISOFRECORD_STANDARD
Parameter(s) bdq:sourceAuthority
Source Authority bdq:sourceAuthority default = "Darwin Core basisOfRecord" {[https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}{dwc:basisOfRecord vocabulary [https://rs.gbif.org/vocabulary/dwc/basis_of_record.xml]}
Specification Last Updated 2024-08-18
Examples [dwc:basisOfRecord="Taxon": Response.status=RUN_HAS_RESULT, Response.result=COMPLIANT, Response.comment="dwc:basisOfRecord matches a standard label of one of the Darwin Core classes"]
[dwc:basisOfRecord="Specimen": Response.status=RUN_HAS_RESULT, Response.result=NOT_COMPLIANT, Response.comment="dwc:basisOfRecord does not exactly match a standard label of one of the Darwin Core classes"]
Source VertNet
References
Example Implementations (Mechanisms)
Link to Specification Source Code
Notes The term dwc:basisOfRecord has the comment "Recommended best practice is to use a controlled vocabulary such as the set of local names of the identifiers for classes in Darwin Core." The list of these values can be determined by searching https://github.com/tdwg/dwc/blob/master/vocabulary/term_versions.csv for rows with status="recommended" and rdf_type="http://www.w3.org/2000/01/rdf-schema#Class". For tests against a dwc:Occurrence record, the set of valid terms is more limited and embodied in the resource found at https://rs.gbif.org/vocabulary/dwc/basis_of_record.xml. This test must return NOT_COMPLIANT if there is leading or trailing whitespace or there are leading or trailing non-printing characters.

iDigBioBot avatar Jan 05 '18 16:01 iDigBioBot

Comment by Arthur Chapman (@ArthurChapman) migrated from spreadsheet: Should follow on after Line 57

iDigBioBot avatar Jan 05 '18 16:01 iDigBioBot

I just detected that the Specifications for this test was lacking "Darwin Core Class | Record_level Terms" so I have just added it.

Tasilee avatar Feb 09 '22 20:02 Tasilee

Added note to clarify the default source authority, since it isn't itself a list of vocaublary terms:

See the dwc:basisOfRecord comment "Recommended best practice is to use the standard label of one of the Darwin Core classes."

chicoreus avatar Sep 10 '22 15:09 chicoreus

Added note "This test will fail if there are leading or trailing white space or non-printing characters."

Tasilee avatar Sep 12 '22 02:09 Tasilee

Note comments at https://github.com/tdwg/dwc/issues/416

Tasilee avatar Sep 13 '22 00:09 Tasilee

Changed Source Authority from

bdq:sourceAuthority default = "Darwin Core Terms" [https://dwc.tdwg.org/terms/#dwc:basisOfRecord]

to

bdq:sourceAuthority default = {Darwin Core} {Basis of record [https://dwc.tdwg.org/terms/#dwc:basisOfRecord] }

and removed bdq:sourceAuthority from Parameters (I presume, as there is no alternative vocab)?

Tasilee avatar Jun 30 '23 04:06 Tasilee

Amended Source Authority values to align with @chicoreus syntax

bdq:sourceAuthority default = {Darwin Core} {Basis of record [https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}

to

bdq:sourceAuthority default = "Darwin Core dwc:basisOfRecord" {[https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}

Tasilee avatar Jul 04 '23 23:07 Tasilee

Post Zoom 11/7/2023, I have aligned the Source Authority with the suggested syntax:

bdq:sourceAuthority default = "Darwin Core dwc:basisOfRecord" {[https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}

to

bdq:sourceAuthority default = "Darwin Core" {https://dwc.tdwg.org/} {dwc:basisOfRecord [https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}

Tasilee avatar Jul 11 '23 01:07 Tasilee

Due to recent discussions, changed Source Authority from

bdq:sourceAuthority default = "Darwin Core" {[https://dwc.tdwg.org/]} {dwc:basisOfRecord [https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}

to

bdq:sourceAuthority default = "Darwin Core basisOfRecord" {[https://dwc.tdwg.org/terms/#dwc:basisOfRecord]}{Basis of record vocabulary [https://rs.gbif.org/vocabulary/dwc/basis_of_record.xml]}

Notes needed by @tucotuco

Tasilee avatar Jul 16 '23 23:07 Tasilee

I missed the Parameter(s) (added) and the syntax on the vocabulary in Source Authority (done)

Tasilee avatar Jul 17 '23 00:07 Tasilee

Updated comment from

"See the dwc:basisOfRecord comment "Recommended best practice is to use the standard label of one of the Darwin Core classes." This test will fail if there is leading or trailing whitespace or there are leading or trailing non-printing characters."

to

"The term dwc:basisOfRecord has the comment "Recommended best practice is to use the standard label of one of the Darwin Core classes." The list of these values can be determined by searching https://github.com/tdwg/dwc/blob/master/vocabulary/term_versions.csv for rows with status="recommended" and rdf_type="http://www.w3.org/2000/01/rdf-schema#Class". For tests against a dwc:Occurrence record, the set of valid terms is more limited and embodied in the resource found at https://rs.gbif.org/vocabulary/dwc/basis_of_record.xml. This test will fail if there is leading or trailing whitespace or there are leading or trailing non-printing characters."

tucotuco avatar Jul 17 '23 01:07 tucotuco

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 02:09 Tasilee

Updated notes from "fail" to more specific "This test must return NOT_COMPLIANT if there is leading or trailing whitespace or there are leading or trailing non-printing characters. "

chicoreus avatar Feb 23 '24 19:02 chicoreus

Updated notes to current Darwin Core guidance "Recommended best practice is to use a controlled vocabulary such as the set of local names of the identifiers for classes in Darwin Core." as noted by @tucotuco in #63

chicoreus avatar Jul 24 '24 16:07 chicoreus