biolink / biolink-model-toolkit

A collection of useful python functions for looking up information and working with the Biolink Model
https://biolink.github.io/biolink-model-toolkit/
BSD 3-Clause "New" or "Revised" License
20 stars 10 forks source link

Enhance qualifier value validation. #139

Closed RichardBruskiewich closed 11 months ago

RichardBruskiewich commented 12 months ago

We need to enhance bmt.validate_qualifier() to leverage to validate qualifier_value against the qualifier_type_id range registered in one or more given child subclass(es) of biolink:Association, which should be given as a new method parameter associations:

bmt.validate_qualifier(
                            qualifier_type_id=qualifier_type_id,
                            qualifier_value=qualifier_value,
                            associations=associations    # Optional[List[str]] - optional list of one or more association category CURIEs 
                        ):
RichardBruskiewich commented 11 months ago

Resolved by PR #143