class SPARQL::Algebra::Operator::InsertData
The SPARQL
UPDATE `insertData` operator.
The INSERT DATA operation adds some triples, given inline in the request, into the Graph
Store
@example
(insertData ((graph <http://example.org/g1> ((triple :s :p :o)))))
Constants
- NAME
Public Instance Methods
execute(queryable, **options)
click to toggle source
Executes this upate on the given `writable` graph or repository.
@param [RDF::Queryable] queryable
the graph or repository to write
@param [Hash{Symbol => Object}] options
any additional keyword options
@option options [Boolean] debug
Query execution debugging
@return [RDF::Queryable]
Returns queryable.
@raise [IOError]
If `from` does not exist, unless the `silent` operator is present
@see www.w3.org/TR/sparql11-update/
# File lib/sparql/algebra/operator/insert_data.rb, line 32 def execute(queryable, **options) operand.each do |op| debug(options) {"InsertData #{op.to_sxp}"} queryable.insert(op) end queryable end