Which artifacts can be created from creationFactory in RDNG 6.0?
<oslc:CreationFactory>
<oslc:usage rdf:resource="http://open-services.net/ns/core#default"/>
<oslc:resourceShape rdf:resource="https://ip:port/rm/types/_GLymQUpKEeWXsenjqT5uYQ"/>
<oslc:resourceType rdf:resource="http://open-services.net/ns/rm#Requirement"/>
<oslc:creation rdf:resource="https://ip:port/rm/requirementFactory?projectURL=https%3A%2F%2Fip%3Aport%2Frm%2Fprocess%2Fproject-areas%2F_AwZo4UgLEeWXsenjqT5uYQ"/>
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Requirement Creation Factory</dcterms:title>
<oslc:creationFactory>
<oslc:CreationFactory>
<oslc:usage rdf:resource="http://open-services.net/ns/core#default"/>
<oslc:resourceShape rdf:resource="https://ip:9443/rm/types/_tm3NAUpLEeWXsenjqT5uYQ"/>
<oslc:resourceShape rdf:resource="https://ip:9443/rm/types/_ymBRAUgOEeWXsenjqT5uYQ"/>
<oslc:resourceType rdf:resource="http://open-services.net/ns/rm#RequirementCollection"/>
<oslc:creation rdf:resource="https://ip:9443/rm/requirementFactory?projectURL=https%3A%2F%2Fip%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_AwZo4UgLEeWXsenjqT5uYQ"/>
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Collection Creation Factory</dcterms:title>
</oslc:CreationFactory>
</oslc:creationFactory>
One answer
2. The word "Collection" in "Collection Creation Factory" refers to the "artifact format" "Collection" and "Module". The "ResourceShape" in this section only refers to "artifact types" with "artifact format" being "Collection" or "Module".
3. If I'm not mistaken, only "artifact types" with "artifact format" being "Text" will appear in the "Requirement Creation Factory" section.
To sum up, you need to understand the difference between "artifact type" and "artifact format". I suspect that you also made some mistakes in description in your original post. Check your artifact type defintion again carefully to see what is what.
Comments
Ok Dinald I reread the documentation for artifact formats and artifact type. Thanks that you tell me the mistakes, because I am new and I still wrong the notions.
So I am not completely agree with you Donald I made the following custom artifact types with the following names:
- MyCollectionType - with Collection format
- MyModuleType - with Module format
- MyStoryboardType - from StoryBoard
-
MyTextType - from Text
- MyuseCaseDiagramType - Use-Case
And now the Collection Creation Factory has 3 resourceShapes - MyTextType, MyModuleType, MyCollectionType. Why artifact type with text format is here?
And Requirement Creation Factory has 4 resourceShapes - MyuseCaseDiagramType,MyTextType,MyModuleType, add Http 404,when try to request the 4th.
Why text and module are in the two factories? I can't find an documentation on this.
Well I followed exactly what you did and got a quite different result.
For Collection Creation Factory, I got MyModuleType, MyCollectionType and Test Plan Collection (the last one is pre-built in the process template).
For Requirement Creation Factory, I got MyuseCaseDiagramType, MyTextType, MyStoryboardType, and Requirement (the last one is pre-built in the process template).
Everything is expected. It appears that apart from the Text format, other "diagram" format will appear in the Requirement Creation Factory as well.