How do I add a link, e.g. a ‘link to’, to an existing requirement? Please answer with Java code example.
Your question does not have enough details to give you a piece of (working) code.
Let’s start at the beginning: when you say requirement, I assume you mean http://docs.oasis-open.org/oslc-domains/oslc-rm/v2.1/cs01/part2-requirements-management-vocab/oslc-rm-v2.1-cs01-part2-requirements-management-vocab.html#requirement. Then, I assume by a link you mean a property like
Hope it helps.