Class: SPARQL::Client::Update::Load
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb
Overview
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#into(uri) ⇒ self
readonly
Cause data to be loaded into graph specified by
uri
.
Attributes inherited from Operation
Instance Method Summary collapse
-
#initialize(from, into: nil, **options) ⇒ Load
constructor
Load statements into the graph.
- #to_s ⇒ Object
Methods inherited from Operation
Constructor Details
#initialize(from, into: nil, **options) ⇒ Load
Load statements into the graph
327 328 329 330 331 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 327 def initialize(from, into: nil,**) @from = RDF::URI(from) @into = RDF::URI(into) if into super(**) end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
306 307 308 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 306 def from @from end |
#into(uri) ⇒ self (readonly)
Cause data to be loaded into graph specified by uri
338 339 340 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 338 def into @into end |
Instance Method Details
#to_s ⇒ Object
343 344 345 346 347 348 349 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 343 def to_s query_text = 'LOAD ' query_text += 'SILENT ' if self.[:silent] query_text += SPARQL::Client.serialize_uri(@from) query_text += ' INTO GRAPH ' + SPARQL::Client.serialize_uri(@into) if @into query_text end |