src/FedoraApi.php
public function modifyResource(
        $uri,
        $sparql = "",
        $headers = []
    ) {
        $options = ['http_errors' => false];

        // Set content.
        $options['body'] = $sparql;

        // Set headers.
        $options['headers'] = $headers;
        $options['headers']['content-type'] = 'application/sparql-update';

        return $this->client->request(
            'PATCH',
            $uri,
            $options
        );
    }
public function modifyResource(
        $uri,
        $sparql = "",
        $headers = []
    ) {
        $options = ['http_errors' => false];

        // Set content.
        $options['body'] = $sparql;

        // Set headers.
        $options['headers'] = $headers;
        $options['headers']['content-type'] = 'application/sparql-update';

        return $this->client->request(
            'PATCH',
            $uri,
            $options
        );
    }
public function modifyResource ( $ uri , $ sparql = "" , $ headers = [ ] ) { $ options = [ 'http_errors' => false ] ; // Set content. $ options [ 'body' ] = $ sparql ; // Set headers. $ options [ 'headers' ] = $ headers ; $ options [ 'headers' ] [ 'content-type' ] = 'application/sparql-update' ; return $ this -> client -> request ( 'PATCH' , $ uri , $ options ) ; }
Modifies a resource using a SPARQL Update query.

@param string    $uri            Resource URI
@param string    $sparql         SPARQL Update query
@param array     $headers        HTTP Headers

@return ResponseInterface
Modifies a resource using a SPARQL Update query .