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

How to I query RRC with multiple ids

Hi All,
I am new to OSLC. I am trying to access DNG artifacts using OSLC query. How to write query to fetch multiple artifacts using ids. I have list of ids according to that I want to fetch Artifacts. I am using following code for querying

OslcQueryParameters queryParams = new OslcQueryParameters();
queryParams.setPrefix("dcterm=<http://purl.org/dc/terms/>");
queryParams.setWhere("dcterm:identifier=1"); // This

How can I write query to get multiple artifacts in single query ?

Thank you in advance

Regards,
Nilesh Patil


0 votes



One answer

Permanent link
Hi,
Have you tried the in clause ?  as
oslc.where=dctern:identifier in [id0, id1, id2 ]

1 vote

Comments

Hi
I tried with above option, but seems no luck, the resultset shows 0 aritifact found

It works for me, even though I have to escape the commas within the square brackets - I use a URL similar to this one

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
× 10,938

Question asked: Apr 07 '15, 4:46 a.m.

Question was seen: 4,203 times

Last updated: Apr 14 '15, 1:14 a.m.

Confirmation Cancel Confirm