Creating Collection artifact using OSLC
Hi,
Format:Text
One answer
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:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" >
<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="http://open-services.net/rm#RequirementCollection"/>
</rdf:Description>
</rdf:RDF>
Comments
I don't have rdf:Description. Could you tell me where I should change?
Comments
Donald Nong
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="http://jazz.net/ns/rm#Collection"/>
<rdf:type rdf:resource="https://ibm.com/domain/collection"/>
but the resulting artifact has the below content
<rdf:type rdf:resource="http://jazz.net/ns/rm#Text" />
<rdf:type rdf:resource="https://ibm.com/domain/collection" />
I'm using DNG 6.0.5 iFix003a.
I suggest you contact IBM Support.