Open vemonet opened 1 year ago
I think it should be a quick fix to allow the non-conventional names used in biolink (all other linkml schemas have switched to camelcase + snake case)
however, there will likely be some degree of customization required such as prompt hints, describing preferred annotators, etc. Ideally these would be in a separate configuration file to have separation of concerns but for now it's necessary to do a bit of copy and pasting to get the desired behavior. this should be something we can fix with the linkml-transformer framework!
Just wondering if this has been fixed yet.
No, not yet - the workaround is to replace the offending class name with something equivalent to the Python class, like chemical to disease or phenotypic feature association
-> ChemicalToDiseaseOrPhenotypicFeatureAssociation
.
But ideally that shouldn't be necessary.
Hi, I tried to use the BioLink model as base to run the SPIRES engine (as it was recommended in the readme!), but faced some issue.
Generating the
.py
file from thebiolink_model.yaml
put insrc/ontogpt/templates/
worked well withmake
But we encounter an error when trying to extract a class:
We are getting the error
ValueError: Template biolink_model.ChemicalToDiseaseOrPhenotypicFeatureAssociation not found
because the classes name defined in the BioLink model are in the formatchemical to disease or phenotypic feature association
If we try to provide the class name with spaces:
There is an error due to the python classes name not matching:
I could easily implement a fix I think, but I wonder if anyone here with a better knowledge of LinkML than me has a quick fix for this problem? @cmungall