On the cohomology ring of chains in $R^d$