phenopackets / phenopacket-tools

An app and library for building, conversion, and validation of GA4GH Phenopackets.
http://phenopackets.org/phenopacket-tools/stable/
GNU General Public License v3.0
12 stars 5 forks source link

Elaborate on the validation workflow #102

Closed ielis closed 1 year ago

ielis commented 1 year ago

The phenopacket validation workflow consist of 2 steps: syntax step and semantic step.

The syntax step checks if the building blocks meet the requirements independently (e.g. all required fields are defined for a Resource).

The semantic step checks for presence of errors in the context of the entire top-level element of the Phenopacket schema (e.g. a phenopacket contains an HPO term but a Resource for HPO is missing in MetaData).

The PR adds ValidationWorkflowRunnerBuilder, an abstract class to simplify ValidationWorkflowRunner building process.