NCEAS / metadig-checks

MetaDIG suites and checks for data and metadata improvement and guidance.
Apache License 2.0
8 stars 9 forks source link

entity.type.present check #86

Closed gothub closed 4 years ago

gothub commented 5 years ago

Description

For each data entity, check if a type is specified

Priority

Issues

Procedure

cscully-allison commented 5 years ago

EML does differentiate between format and type so there is not an overlap between this check and entity.format.present.

gothub commented 5 years ago

@cscully-allison thx - yep, the EML entity type to check for is one of dataTable, otherEntity, spatialRaster, spatialVector, storedProcedure, view.

gothub commented 5 years ago

The XPath expression for this check could use the XPath name() function to identity the EML entity type present, but this isn't supported by the Java XPath 1.0 implementation. The workaround is to just check for the presence of the element, without returning the name (e.g. dataTable found), which would appear in the check output.

See https://github.com/NCEAS/metadig-engine/issues/219

gothub commented 5 years ago

Superceded by #146