Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to filter OSLC RM query to RequirementCollections only?

I'm using the OSLC RM API in order to extract certain bits of information from RRC, and I'm a bit stuck when trying to restrict the result set to only return collections.

I've tried filtering on the rdf:type field as so: oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>&oslc.where=rdf:type=<http://open-services.net/ns/rm#RequirementCollection>, however this has had no effect. I've also tried just using the name "ResourceCollection" as the filter value but that had the same result.

What method should I be using to achieve this?

Edit: the forum seems to be mangling the URIs in the query above - the URIs I'm using are the correct ones.

0 votes


Accepted answer

Permanent link
It may be that the char '#' must be replaced by %23:

Below query works fine in my env.

oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns%23>,dcterms=<http://purl.org/dc/terms/>,oslc_rm=<http://open-services.net/ns/rm%23>&oslc.select=*&oslc.where=rdf:type=<http://open-services.net/ns/rm%23RequirementCollection>
Jared Russell selected this answer as the correct answer

2 votes

Comments

That was exactly it - thanks for the help.


2 other answers

Permanent link

Hi,

I tried the above URL to get all collections in RRC 4.0.3 but it also returns Modules created in the Project Area.

Below is the URL I used after encoding it using UTF -8 :-

https://wegsfes19358clm3.accenture.com/rm/views?oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns%23>&oslc.select=*&oslc.where=rdf:type=<http://open-services.net/ns/rm%23RequirementCollection>&projectURL=https://wegsfes19358clm3.accenture.com/jts/process/project-areas/_AMNOYO6_EeKXkoM7Um_54A

Kindly let me know a solution ASAP as this is affecting my build.

Thanks in advance.

  

0 votes


Permanent link
Hi,
  RRC ( DNG ) returns modules as OSLC collections. Currently there is no a direct way to differentiate them from OSLC perspective.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 516
× 201

Question asked: Jun 27 '12, 12:25 p.m.

Question was seen: 7,009 times

Last updated: Mar 03 '14, 9:54 a.m.

Confirmation Cancel Confirm