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.
|
Accepted answer
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 other answers
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.
|
Hi,
RRC ( DNG ) returns modules as OSLC collections. Currently there is no a direct way to differentiate them from OSLC perspective. |
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.