OSLC Query to get requirements from a RequirementCollection on DOORS NG [message #1700119] |
Tue, 30 June 2015 05:38  |
Eclipse User |
|
|
|
Hi,
I'm using DOORS NG (V5.0.2) and I'm trying to get requirements referenced by a RequirementCollection using OSLC.
I tried the query given on:
https://jazz.net/library/article/1197
which is:
&oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns%23>,dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=rdf:type=<http://open-services.net/ns/rm%23Requirement>
But this query only returns the RequirementCollection itself.
So, is the query correct?
[Updated on: Tue, 30 June 2015 05:39] by Moderator
|
|
|
|
Re: OSLC Query to get requirements from a RequirementCollection on DOORS NG [message #1700915 is a reply to message #1700867] |
Wed, 08 July 2015 03:21  |
Eclipse User |
|
|
|
Hello Jim,
In fact, as you say, that query returns all requirements on a project. I was wrong with the query that I posted and the correct one is the query that you posted, i.e.:
&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
However, this query only returns the RequirementCollection whose identifier is 1 and it does not return its requirements.
The solution that I found and it was supported by Jazz forum (https://jazz.net/forum/questions/200343/oslc-query-for-getting-requirements-from-a-requirement-collection) is to get the RequirementCollection and using the "uses" attributes (links to the associated requirements), which contain the requirement URL, we access to requirement info. by using REST commands.
I do not have better answer than this one. If someone has a better idea, I would appreciate.
Cordially,
Carlos
|
|
|
Powered by
FUDForum. Page generated in 0.07407 seconds