How to links artifacts/Requirements using Custom link in DNG through OSLC rest api
I have created Custom link in DNG/RRC project area(Setting->Manage Project Properties->Link types->Add). Consider the link type "YYY"(bi-directional yyy1->yyy2)
I want to link RRC/DNG artifacts(Requirement type) using above custom link type("YYY"). How can I achieve this using OSLC rest API. Sample code for same will be very much helpful.
Thanks in advance
4 answers
The support to create internal links via OSLC was added in RDNG 5.0.2. If you are on that version, the easiest way to handle is manually add a link to an artifact, do an OSLC GET to that artifact and you will see how it is represented. Use that to add more entries for new links you want to create.
Comments
Hi Gabriel,
I am using DNG/RRC 5.0 version.
I tried the way you suggested, but I am not getting any data related to custom link in OSLC get response. I have manually added different links in artifact(Internal(Embeds)/Custom), I am getting data for internal links but no data for Custom links.
Comments
Hi Gabriel,
I am using DNG/RRC 5.0 version.
I tried the way you suggested, but I am not getting any data related to custom link in OSLC get response. I have manually added different links in artifact(Internal(Embeds)/Custom), I am getting data for internal links but no data for for the link Satisfaction(Custom link).
However, When I am trying to update the requirement object with internal links(link type-Link) through the OSLC rest api, put operation isĀ successful but link doesn't appear in artifact.
In 5.0 you will not be able to create new internal or customer links, you will have to move to 5.0.2.
I think that in 5.0 you will have the links exposed as read only in OSLC GET to teh artifact, entries representing those links will looks like :
<rm_property:_s2YtoeUGEeSLk4svMxbYqg rdf:resource="https://gradev1.ibm.com:9444/rdm/resources/_pAPcIeT-EeSLk4svMxbYqg"/>
Links only show up in the originator artifact, so if they do not show up in one oslc get try to get the other link end point.
In 5.0 you will not be able to create new internal or customer links, you will have to move to 5.0.2.
I think that in 5.0 you will have the links exposed as read only in OSLC GET to teh artifact, entries representing those links will looks like :
<rm_property:_s2YtoeUGEeSLk4svMxbYqg rdf:resource="https://gradev1.ibm.com:9444/rdm/resources/_pAPcIeT-EeSLk4svMxbYqg"/>
Links only show up in the originator artifact, so if they do not show up in one oslc get try to get the other link end point.