Karma and Law
Karma, as the root of life, is at least as old as the Vedas if not even older. On the other hand, the inspiration to socialism may be vaguely traced to Plato's Republic or Greek philosophy. The second written inspiration was Thomas More's Utopia, a title which is self explanatory of socialism's deficiency in realism. In any case, it has no connection with the Indian ethos