Hi, I think I've done something similar. Unfortunately, I haven't been able to get any feedback from the ChEBI guys.. Anyway please check it out: https://github.com/cthoyt/chemical-relations