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
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
One answer
Hi,
Have you tried the in clause ? as
Have you tried the in clause ? as
oslc.where=dctern:identifier in [id0, id1, id2 ]
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
https://clm502.sydney.rcs:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fclm502.sydney.rcs%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_sUgYEIPsEeSfUbpncKGSsw&oslc.where=dcterms:identifier in [1%2C2%2C3]&oslc.prefix=dcterms=<http://purl.org/dc/terms/>