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);