Knowledge-Graph-Hub / kg-phenio

A Graph for experiments doing ML on ontologies.
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Build fails due to writing `relation` value on `Association` #151

Closed caufieldjh closed 1 month ago

caufieldjh commented 1 month ago

I was worried this may happen:

08:34:31  pydantic_core._pydantic_core.ValidationError: 1 validation error for Association
08:34:31  relation
08:34:31    Extra inputs are not permitted [type=extra_forbidden, input_value='type', input_type=str]
08:34:31      For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden

As of #150 , Associations get assigned a relation value since it's present in the incoming data. But Association can't actually tolerate a relation, just a predicate. See https://biolink.github.io/biolink-model/Association/