ncihtan / data-models

Schema.org Data Models for HTAN
MIT License
14 stars 7 forks source link

Proposed data validation rules #23

Closed adamjtaylor closed 2 years ago

adamjtaylor commented 2 years ago

Please edit this markdown table to add potential HTAN validation rules that would improve data uniformity and user experience.

Parent Element Effect Rule/Regex Issues/PRs
All HTAN * ID Ensure HTAN ID format is followed r'^(((HTA\d*)_\d*)\_?\d*?)$' #13
All HTAN * ID Ensure HTAN ID format is unique Unsure how to do this
ImagingLevel2 Filename Only allow extensions:
.ome.tif
.ome.tiff
.svs
r'\.ome.tif{1,2}$\|\.svs$' #4
ImagingLevel2 Filetype Only allow filetypes:
OME-TIFF
svs
r'OME-TIFF\|svs'
Information Content Entity Checksum Ensure is a valid md5 hash r'^[a-f0-9]{32}$'
ImagingLevel2 LensNA Ensure is valid value Float > 0
adamjtaylor commented 2 years ago

Closing this issue as we have been opening individual issues