connection.remove(subject, null, null, (Resource)null);
// add RDF data from input to the suject
connection.add(request.getReader(), configurationService.getBaseUri(), parser, contextService.getDefaultContext());
} finally {
connection.commit();
connection.close();
}
return Response.ok().build();
} catch (RepositoryException e) {
return ResourceWebServiceHelper.buildErrorPage(uri, configurationService.getBaseUri(), Status.INTERNAL_SERVER_ERROR, e.getMessage(), configurationService, templatingService);