DNG-How to get all the artifacts of module using OSLC
Hi
In Requirement Management I have created the module (Module->create module, - name as SWC, artifact type as software component->ok) and In SWC module I have imported custom artifacts from excel, after that I moved theses artifacts to folder name SWCartifact.
When I am trying to get these artifacts using oslc I am not able to fetch it.
Any help will greatly appreciated!
2 answers
It works for me. The <oslc_rm:uses> attribute in the response is the resource URI of each artifact included in the module.
Comments
According to the Jazz.net article: https://jazz.net/library/article/1197
You should be able to query the items in a collection (perhaps Modules too?).
Note says:
To query for all artifacts in a collection based on collection’s identifier, use a query similar to:
&oslc.prefix=oslc_rm=<http://open-services.net/ns/rm%23>,dcterms=<http://purl.org/dc/terms/>
&oslc.select=oslc_rm:uses&oslc.where=dcterms:identifier=1
Unfortunately, this query does not seem to work in 6.03. Adding a prefix for oslc_rm simply eliminated the filtering applied by the where clause. It returns the entire set. This may be a bug.