lib/eol/sparql.rb
# options must include :graph_name, :data (array). TODO: I am not crazy
# about how #insert_data was implemented, but it's something to use for
# now. I cut the size of inserts in half from PHP; it seemed quite large
# to me. TODO: it would be nice to get some kind of return value and/or
# catch exceptions. :\
options must include :graph_name, :data (array). TODO: I am not crazy
about how #insert_data was implemented, but it's something to use for
now. I cut the size of inserts in half from PHP; it seemed quite large
to me. TODO: it would be nice to get some kind of return value and/or
catch exceptions.
options must include : graph_name : data ( array ) . TODO : I am not crazy about how #insert_data was implemented but it ' s something to use for now . I cut the size of inserts in half from PHP ; it seemed quite large to me . TODO : it would be nice to get some kind of return value and / or catch exceptions .
def insert_into_graph(graph_name, data)
        EOL.log("insert_into_graph(#{graph_name}, #{Array(data).count} rows)",
          prefix: "#")
        Array(data).in_groups_of(2500, false) do |group|
          @connection.insert_data(data: group, graph_name: graph_name)
        end
      end
def insert_into_graph ( graph_name , data ) EOL . log ( "insert_into_graph(#{graph_name}, #{Array(data).count} rows)" , prefix : "#" ) Array ( data ) . in_groups_of ( 2500 , false ) do | group | @connection . insert_data ( data : group , graph_name : graph_name ) end end
options must include :graph_name, :data (array).
options must include : graph_name : data ( array ) .
graph_name
<not_specific>
data
<not_specific>