cancerDHC / tools

A repository for the work of the Tools workstream for CCDH
2 stars 1 forks source link

define validation approach for using terminology value sets with linkml #30

Closed balhoff closed 3 years ago

balhoff commented 3 years ago

The validation runner needs to be able to interact with the terminology services to check if values adhere to a value set.

gaurav commented 3 years ago

We currently implement this by:

  1. Retrieving all permissible values from the Terminology Service for a field (slot) when converting it from the Google Sheet representation into LinkML.
  2. Adding them to the slot definition when generating LinkML.
  3. Validating example data using Python Data Classes.

I think that's enough to consider this done for now. This will likely change in the future as our model generation workflow changes, but that's not something we can anticipate currently.