Actually your pretty close but, Ahamkara would be the equivalent of the Japanese wish granting serpent dragons. In fact they are pretty much a one to one translation of those.
English
-
I chose to compare the Ryū to the worm gods based on characteristics and appearance. We know more about the worm gods appearances than the Ahamkara. Hence the comparison.