class RoadForest::TypeHandlers::RDFPost
application/x-www-form-urlencoded
Public Instance Methods
local_to_network(base_uri, graph)
click to toggle source
# File lib/roadforest/type-handlers/rdfpost.rb, line 287 def local_to_network(base_uri, graph) end
network_to_local(base_uri, list)
click to toggle source
# File lib/roadforest/type-handlers/rdfpost.rb, line 290 def network_to_local(base_uri, list) raise "Invalid base uri: #{base_uri.inspect}" if base_uri.nil? graph = ::RDF::Graph.new reader = Reader.new(list, :base_uri => base_uri.to_s) reader.each_statement do |statement| graph.insert(statement) end graph end