It's all about the answers!

Ask a question

Creating Collection artifact using OSLC

Mustafa Askin (108713) | asked Apr 06 '18, 3:29 p.m.


I couldn't create a collection artifact as I want.

I create a Collection artifact manually with following properties.

Then I get collection xml with http get.

After I took xml content of Collection artifact. I delete following line then I post xml as it is.

<dcterms:identifier rdf:datatype="">5016</dcterms:identifier> (This is artifact ID, I don't need this while creating a new one)

A new artifact is created but following properties.

Why ? Why OSLC created artifact format is TEXT ? 
I post with 
"</oslc_rm:RequirementCollection>" & "<rdf:type rdf:resource=""/>" tags
but created artifact has "</oslc_rm:Requirement>" & "<rdf:type rdf:resource=""/>" tags which I did not set.

PS: DOORS version is  6.0.4 iFix006

Any help would be appreciated.

Mustafa Askin

Donald Nong commented Apr 09 '18, 3:42 a.m.

I can see the same thing and something is not quite right. I have the below two lines in the POST data along with <oslc:instanceShape>
    <rdf:type rdf:resource=""/>
    <rdf:type rdf:resource=""/>
but the resulting artifact has the below content
    <rdf:type rdf:resource="" />
    <rdf:type rdf:resource="" />
I'm using DNG 6.0.5 iFix003a.

I suggest you contact IBM Support.

One answer

permanent link
Jim Amsden (26837) | answered Apr 06 '18, 4:04 p.m.

 the dcterms:identifier is not the URI for the collection, its just the identifier in the context of the project area. You need to POST a new resource with a blank node for the identifier (the resource URI). Something like:





  <rdf:Description rdf:nodeID="A0">

    <dc:title>Some new resource</dc:title>

    <dc:description>To check the Contributes To on a REST created Work Item</dc:description>

    <rdf:type rdf:resource=""/>



Your answer

Register or to post your answer.