How to create Child Of link to another artifact?

I'm currently working with the IBM OSLC API to update artifact attributes. I've developed a sample REST API that successfully updates the content of an artifact. However, when I try to update the child link of an artifact in a similar way, it doesn't work. Kindly assist me with this.
Here content is XML data:
<rdf:RDF . . . <rdf:Description rdf:about=""> . <oslc_rm:implementedBy rdf:ID="n0" rdf:resource="http://www.google.com"/> <oslc_rm:validatedBy rdf:ID="n1" rdf:resource="http://www.something.com"/> . </rdf:Description> <rdf:Description rdf:about="#n0"> <dc:title rdf:parseType="Literal">Link1</dc:title> </rdf:Description> <rdf:Description rdf:about="#n1"> <dc:title rdf:parseType="Literal">Link2</dc:title> </rdf:Description> </rdf:RDF>
put.addHeader("If-Match",etag);HttpPut put = new HttpPut(artifactURI);
put.addHeader("Accept", "application/rdf+xml");
put.addHeader("Content-Type", "application/rdf+xml");
put.setEntity(new StringEntity(content, HTTP.UTF_8));
HttpResponse response = requestManager.put(put);
7 answers

"doesn't work" is completely useless if you really want help solving your problem then provide the response/behaviour you get and what you expected.

put.addHeader("If-Match",etag);Hi Barnard, I have modified my header as you suggested, but I am still unable to update the child of a link. I have a question: can we update the child links of an artifact in DOORS NG?
HttpPut put = new HttpPut(artifactURI);
put.addHeader("Accept", "application/rdf+xml"); put.addHeader("OSLC-Core-Version", "2.0");
put.addHeader("Content-Type", "application/rdf+xml");
put.addHeader("Configuration-Context", configurationUrl);

I am trying to modify the child link of an artifact using the steps below, but my new child link is not replacing with old one. I am not seeing any error messages in fact, I am getting a success message(200).
Here validation has been done before doing put

Finally some usable details of what the problem is.

Hi Barnard,
Xml content to PUT :
Here validation has been done before doing put

Messing around with fragments just isn't working - you aren't giving enough detail to diagnose what's going on.

Hi Barnard,
Comments

Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 22, 5:19 a.m."doesn't work": what happens?
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 25, 10:35 a.m.I edited the title of your question to make it clearer what the question is - title used to be "
How to update child of attribute of an artifact
"