the three other religions that originated in india are , in fact , closely related to hinduism : buddhism , jainism , and sikhism , and in the 19th century , german philosopher arthur schopenhauer read both hindu and buddhist scriptures and based much of his thinking on them .