Closed mdorf closed 4 years ago
An outdated example from the AG documentation wrapped graph names with double-quotes, which resulted in request failures. After much trial-and-error, the actual working format turned out to be
if backend_name == BACKEND_4STORE
params[:payload] = {
graph: graph.to_s,
data: data_file,
"mime-type" => mime_type
}
#for some reason \\\\ breaks parsing
params[:payload][:data] = params[:payload][:data].split("\n").map { |x| x.sub("\\\\","") }.join("\n")
else
params[:url] << "?context=#{CGI.escape("<#{graph.to_s}>")}"
params[:payload] = data_file
end
There appear to be no parsed ontology records in AllegroGraph at a point in the test code, where an ontology should have been parsed. At the same point in the code, here is the content of each datastore: