summaryrefslogtreecommitdiff
path: root/_posts/2013-06-05-simplify-rdfwriter-method.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2013-06-05-simplify-rdfwriter-method.md')
-rw-r--r--_posts/2013-06-05-simplify-rdfwriter-method.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/_posts/2013-06-05-simplify-rdfwriter-method.md b/_posts/2013-06-05-simplify-rdfwriter-method.md
index 6ebe9a3..db06731 100644
--- a/_posts/2013-06-05-simplify-rdfwriter-method.md
+++ b/_posts/2013-06-05-simplify-rdfwriter-method.md
@@ -14,7 +14,7 @@ Simplify the RDF::Writer method if you have already an rdf graph like:
reader.each_statement{ |statement| @rdf << statement }
end
-To parse it to another format simpy use:
+To parse it to another format simply use:
RDF::Writer.for(format).buffer(:encoding => Encoding::ASCII) do |writer|
writer << @rdf
@@ -25,6 +25,3 @@ instead of:
RDF::Writer.for(format).buffer(:encoding => Encoding::ASCII) do |writer|
@rdf.each{|statement| writer << statement}
end
-
-and use the base class RDF::Writer instead of subclasses like RDF::Turtle::Writer.
-It is much more time-efficient !