src/main/java/org/trellisldp/http/PartitionedLdpResource.java
/**
     * Perform a PATCH operation on an LDP Resource
     * @param req the request
     * @param body the body
     * @return the response
     */
Perform a PATCH operation on an LDP Resource
@param req the request
@param body the body
@return the response
Perform a PATCH operation on an LDP Resource @param req the request @param body the body @return the response
@PATCH
    @Timed
    @Consumes("application/sparql-update")
    public Response updateResource(@BeanParam final LdpRequest req, final String body) {
        final String baseUrl = partitions.get(req.getPartition());
        final IRI identifier = rdf.createIRI(TRELLIS_PREFIX + req.getPartition() + req.getPath());
        final PatchHandler patchHandler = new PatchHandler(req, body, resourceService, ioService, baseUrl);
        return resourceService.get(identifier, MAX).map(patchHandler::updateResource)
            .orElseGet(() -> status(NOT_FOUND)).build();
    }
@ PATCH @ Timed @ Consumes ( "application/sparql-update" ) public Response updateResource ( @ BeanParam final LdpRequest req , final String body ) { final String baseUrl = partitions . get ( req . getPartition ( ) ) ; final IRI identifier = rdf . createIRI ( TRELLIS_PREFIX + req . getPartition ( ) + req . getPath ( ) ) ; final PatchHandler patchHandler = new PatchHandler ( req , body , resourceService , ioService , baseUrl ) ; return resourceService . get ( identifier , MAX ) . map ( patchHandler :: updateResource ) . orElseGet ( ( ) -> status ( NOT_FOUND ) ) . build ( ) ; }
Perform a PATCH operation on an LDP Resource
 @param req the request
 @param body the body
 @return the response
Perform a PATCH operation on an LDP Resource @param req the request @param body the body @return the response