It's all about the answers!

Ask a question

How to pass Artifact URL as a filter in OSLC Query where clause (DOORS Next Generartion 5.0.2)


Nikhil Pachpande (2519) | asked Dec 22 '15, 4:36 a.m.
 Hi, 
I want to pass artifact URL as a filter to OSLC query where clause.
I have tried the following code snippet :

OslcQueryParameters queryParams = new OslcQueryParameters(); 
queryParams.setPrefix("rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>");
queryParams.setWhere("rdf:about=<https://localhost:9443/rm/resources/_kleppzqIEeW_svemam2HRw>");
queryParams.setSelect("*");

OslcQuery query = new OslcQuery(client, queryCapability, queryParams);        
//client and queryCapability are properly initialized

OslcQueryResult result = query.submit();
int resultsSize = result.getMembersUrls().length;


//resultsSize is always 0.

Is 'rdf:about' the correct property to be queried for artifact URL?
Is there any other property to fetch artifacts based on their URL value?




Be the first one to answer this question!


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.