def insert(statements)
      raise(TriplestoreAdapter::TriplestoreException, "insert received an invalid array of statements") unless statements.any?

      writer = RDF::Writer.for(:jsonld)
      request = Net::HTTP::Post.new(@uri)
      request['Content-Type'] = 'application/ld+json'
      request.body = writer.dump(statements)
      @http.request(@uri, request)
      return true
    end
def insert(statements)
      raise(TriplestoreAdapter::TriplestoreException, "insert received an invalid array of statements") unless statements.any?

      writer = RDF::Writer.for(:jsonld)
      request = Net::HTTP::Post.new(@uri)
      request['Content-Type'] = 'application/ld+json'
      request.body = writer.dump(statements)
      @http.request(@uri, request)
      return true
    end
@param [String] url of SPARQL endpoint

 Insert the provided statements into the triplestore, JSONLD allows for
 UTF8 charset.
 @param [RDF::Enumerable] statements to insert into triplestore
 @return [Boolean] true if the insert was successful