class SPARQL::Client::Update::Drop
Public Instance Methods
to_s()
click to toggle source
# File lib/sparql/client/update.rb, line 438 def to_s query_text = 'DROP ' query_text += 'SILENT ' if self.options[:silent] case @what.to_sym when :graph then query_text += 'GRAPH ' + SPARQL::Client.serialize_uri(@uri) when :default then query_text += 'DEFAULT' when :named then query_text += 'NAMED' when :all then query_text += 'ALL' else raise ArgumentError, "invalid DROP operation: #{@what.inspect}" end query_text end