Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » OSLC Query to get requirements from a RequirementCollection on DOORS NG
OSLC Query to get requirements from a RequirementCollection on DOORS NG [message #1700119] Tue, 30 June 2015 09:38 Go to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
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 09:39]

Report message to a moderator

Re: OSLC Query to get requirements from a RequirementCollection on DOORS NG [message #1700867 is a reply to message #1700119] Tue, 07 July 2015 17:57 Go to previous messageGo to next message
Jim Ruehlin is currently offline Jim RuehlinFriend
Messages: 73
Registered: July 2009
Member
Hi Carlos,

My understanding of the DOORS OSLC support is limited, but it looks like the query you're using returns all requirements for the entire project. So you're probably getting a collection that contains everything. You'll probably need to query based on the collection to get the requirements for that collection. The following query returns all requirements for a specific collection:
&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
Re: OSLC Query to get requirements from a RequirementCollection on DOORS NG [message #1700915 is a reply to message #1700867] Wed, 08 July 2015 07:21 Go to previous message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
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
Previous Topic:Add link to Requirement on DOORS NG
Next Topic:Missing nesting capabilities of ServiceProviders
Goto Forum:
  


Current Time: Tue Apr 23 11:51:43 GMT 2024

Powered by FUDForum. Page generated in 0.03124 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top