It's all about the answers!

Ask a question

How to I query RRC with multiple ids

Nilesh Patil (1733750) | asked Apr 07 '15, 4:46 a.m.
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.setWhere("dcterm:identifier=1"); // This

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

Thank you in advance

Nilesh Patil

One answer

permanent link
Gabriel Ruelas (1.1k13) | answered Apr 07 '15, 9:02 a.m.
Have you tried the in clause ?  as
oslc.where=dctern:identifier in [id0, id1, id2 ]

Nilesh Patil commented Apr 13 '15, 12:02 p.m.

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

Donald Nong commented Apr 14 '15, 1:14 a.m.

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