It's all about the answers!

Ask a question

How to filter OSLC RM query to RequirementCollections only?


Jared Russell (1.3k12019) | asked Jun 27 '12, 12:25 p.m.
edited Jun 27 '12, 12:28 p.m.
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.

Accepted answer


permanent link
Gabriel Ruelas (1.1k13) | answered Jun 27 '12, 1:27 p.m.
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

Comments
Jared Russell commented Jun 27 '12, 1:40 p.m.

That was exactly it - thanks for the help.

2 other answers



permanent link
Sanitha Pillai (61810) | answered Mar 03 '14, 8:57 a.m.

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.

  


permanent link
Gabriel Ruelas (1.1k13) | answered Mar 03 '14, 9:54 a.m.
Hi,
  RRC ( DNG ) returns modules as OSLC collections. Currently there is no a direct way to differentiate them from OSLC perspective.

Your answer


Register or 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.