You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have defined my base class in one YAML file, and derived classes in a separate one. I want to inherit the base class in my derived one. Here's what I am doing
id: http://localhost/MEX
name: MEX
prefixes:
linkml: https://w3id.org/linkml/
schema: http://schema.org/
ORCID: https://orcid.org/
imports:
- linkml:types
- master # My base class is defined in a file named master.yaml, which is in the same directory
classes:
MEX:
is_a: master # My base class is named Master
attributes:
test_param:
required: True
However, I am getting
ValueError: File "mex.yaml", line 13, col 11 Class: "MEX" - unknown is_a reference: master
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have defined my base class in one YAML file, and derived classes in a separate one. I want to inherit the base class in my derived one. Here's what I am doing
However, I am getting
Here's my
master.yaml
fileBeta Was this translation helpful? Give feedback.
All reactions