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

OSLC RM - Query for implementedBy

 Hello,
When I run an OSLC-RM query I get a HTTP 500 error. Does anyone know what's wrong?
Thanks in advance for your help.

String oslcSearchQuery = queryCapabilityURI +
"&oslc.prefix=" + URLEncoder.encode("dcterms=<http://purl.org/dc/terms/>,oslc_rm=<http://open-services.net/ns/rm#>", "UTF8") +
"&oslc.select=" + URLEncoder.encode("dcterms:title,dcterms:description", "UTF8") + 
"&oslc.where="  + URLEncoder.encode("oslc_rm:implementedBy=<https://server:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/364457>", "UTF8");

String[] lhsrhs = oslcSearchQuery.split("\\?");
String url = lhsrhs[0];
String body = lhsrhs[1];
HttpPost post = new HttpPost(url);
post.addHeader("Accept", "application/rdf+xml");
post.addHeader("OSLC-Core-Version", "2.0");
post.addHeader("Content-type", "application/x-www-form-urlencoded");
HttpEntity entity = new ByteArrayEntity(body.getBytes("UTF8"));

post.setEntity(entity);
	
	
	

0 votes



2 answers

Permanent link
 I got it - I need to repeat the &oslc.prefix for each value. I can't use the comma separator.
Hopefully it'll help somebody else...

0 votes


Permanent link
 I got it - I need to repeat the &oslc.prefix for each value. I can't use the comma separator.
Hopefully it'll help somebody else...

0 votes

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
× 139

Question asked: Jul 22 '15, 9:33 a.m.

Question was seen: 2,049 times

Last updated: Jul 22 '15, 5:17 p.m.

Confirmation Cancel Confirm