How to create an empty Module artifact in RDNG using OSLC?
![]()
I am using RDNG 6.0.6 and OSLC creation factory same as this article -> https://jazz.net/library/article/1197
I searched the forum and found this issue https://jazz.net/forum/questions/205757/dng-60-create-module-through-oslc. It seem RDNG should be able to create Module in 6.0.6.
I am not sure which is the correct rdf:type for creating module, so I try using "http://jazz.net/ns/rm#Module" as the value like this.
<rdf:RDF
The server responses '201 created' and it end up creating an empty 'Collection' not an empty 'Module' artifact.
Then, I try this request body and still not successful. (RDNG will create a text artifact instead)
<rdf:RDF <oslc:instanceShape rdf:resource="https://XXXX/rm/types/_XXXXXXXXXXXXXXXXXXXXXX"></oslc:instanceShape><dc:description rdf:parseType="Literal">OSLC Creation Example</dc:description> If I use only <rdf:type rdf:resource="http://jazz.net/ns/rm#Module"></rdf:type>, RDNG will return 403: Forbidden. CRRRS6401E Error parsing content. Content must be valid rdf+xml. <rdf:RDF I suspect that I am using incorrect rdf:type value.
If this is not the correct API for creating an empty Module artifact, please correct me.
|
2 answers
![]()
Hi,
I look forward to hearing from you.
If the rdf:type cannot be used, is it possible to change artifact format using API after creating artifact?
|
![]() Hi,
If you change the type to <rdf:type rdf:resource="http://jazz.net/ns/rm#Artifact"/> it should work.
This way it works for us.
A RequirementCollection will always be a Module.
|