code: public HttpPut createTriplesPutMethod(final String path, final InputStream updatedProperties,
                                            final String contentType) throws FedoraException {
          if ( updatedProperties == null ) {
              throw new FedoraException("updatedProperties must not be null");
          } else if ( isBlank(contentType) ) {
              throw new FedoraException("contentType must not be blank");
          }
  
          final HttpPut put = new HttpPut(repositoryURL + path);
          put.setEntity( new InputStreamEntity(updatedProperties) );
          put.setHeader("Content-Type", contentType);
          return put;
      }
docs: Create a request to update triples.
  @param path The datastream path.
  @param updatedProperties InputStream containing RDF.
  @param contentType Content type of the RDF in updatedProperties (e.g., "text/rdf+n3" or
  "application/rdf+xml").
  @return PUT method
  @throws FedoraException