What is best way to use OSLC queries URL in source code
![](http://jazz.net/_images/myphoto/1dc5caf2b3efe2f4d8e02027a3beb966.jpg)
I am retrieving all the test cases for category_Name value is true. I am able to do that through query:
https://Myserver.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_x3L0gk6ZEeSTjIlfgxRM-Q/testcase?fields=feed/entry/content/testcase/category[@term='CXategry_Name' and @value ='false']
and then parse the response in xml parser to get all the Test Cases Urls which is working fine. I am wondering if there is a better way to use this query programmatically in OSLC Lyo instead of passing direct this url in
response = jazzClient.getResource(queryUrl, OSLCConstants.CT_RDF);
and that too encoded value of this url.
https://Myserver.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_x3L0gk6ZEeSTjIlfgxRM-Q/testcase?fields=feed/entry/content/testcase/category[@term='CXategry_Name' and @value ='false']
and then parse the response in xml parser to get all the Test Cases Urls which is working fine. I am wondering if there is a better way to use this query programmatically in OSLC Lyo instead of passing direct this url in
response = jazzClient.getResource(queryUrl, OSLCConstants.CT_RDF);
and that too encoded value of this url.