class SPARQL::Client::Update::Load
Attributes
from[R]
into[R]
Public Class Methods
new(from, into: nil,**options)
click to toggle source
Load
statements into the graph
@example LOAD <example.org/data.rdf>
load(RDF::URI(http://example.org/data.rdf))
@example LOAD SILENT<example.org/data.rdf>
load(RDF::URI(http://example.org/data.rdf)).silent load(RDF::URI(http://example.org/data.rdf), silent: true)
@example LOAD <example.org/data.rdf> INTO <example.org/data.rdf>
load(RDF::URI(http://example.org/data.rdf)).into(RDF::URI(http://example.org/data.rdf)) load(RDF::URI(http://example.org/data.rdf), into: RDF::URI(http://example.org/data.rdf))
@param [RDF::URI] from @param [Hash{Symbol => Object}] options @option [RDF::URI] :into @option [Boolean] :silent
Calls superclass method
SPARQL::Client::Update::Operation::new
# File lib/sparql/client/update.rb, line 327 def initialize(from, into: nil,**options) @from = RDF::URI(from) @into = RDF::URI(into) if into super(**options) end
Public Instance Methods
to_s()
click to toggle source
# File lib/sparql/client/update.rb, line 343 def to_s query_text = 'LOAD ' query_text += 'SILENT ' if self.options[:silent] query_text += SPARQL::Client.serialize_uri(@from) query_text += ' INTO GRAPH ' + SPARQL::Client.serialize_uri(@into) if @into query_text end