@Override public PatchBuilderExtension body(final InputStream stream, final String contentType) { return (PatchBuilderExtension) super.body(stream, contentType); }
/** * Make a PATCH request to modify the triples associated with a resource with SPARQL-Update. * * @param url the URL of the resource to which to PATCH * @return a patch request builder object */ public PatchBuilder patch(final URI url) { return new PatchBuilder(url, this); }
/** * @param destinationURI URI * @param rdfBody InputStream * @throws ModellerClientFailedException Throwable */ public static void doPatch(final URI destinationURI, final InputStream rdfBody) throws ModellerClientFailedException { final FcrepoClient testClient; testClient = FcrepoClient.client().throwExceptionOnFailure().build(); try { final FcrepoResponse response = testClient.patch(destinationURI).body(rdfBody).perform(); log.info(String.valueOf(response.getStatusCode())); } catch (FcrepoOperationFailedException e) { log.info(getMessage(e)); throw new ModellerClientFailedException(e); } }