From 2db3f71967a1e0326ba92b4b3a750f27c35b16c8 Mon Sep 17 00:00:00 2001 From: Syphax bouazzouni Date: Mon, 13 May 2024 14:30:22 +0200 Subject: [PATCH] use read instead of readlines in the ttl appending to triples store --- lib/goo/sparql/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/goo/sparql/client.rb b/lib/goo/sparql/client.rb index beec3f05..6e78e65f 100644 --- a/lib/goo/sparql/client.rb +++ b/lib/goo/sparql/client.rb @@ -85,7 +85,7 @@ def append_triples_no_bnodes(graph,file_path,mime_type_in) response = nil if file_path.end_with?('ttl') bnodes_filter = file_path - file = File.foreach(bnodes_filter) + file = File.read(bnodes_filter) response = execute_append_request graph, file, mime_type_in else bnodes_filter, dir = bnodes_filter_file(file_path, mime_type_in)