diff options
author | gebele <gebele@in-silico.ch> | 2013-06-07 16:18:31 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-07 16:18:31 +0200 |
commit | 237f2f39f45da1b7eed92585bf44d946afb4ee2c (patch) | |
tree | 1e2619a01ba36e28f5d6633c6a67bc025da06879 | |
parent | 923a684ae3040a22c353453e77b3da55f94bf61c (diff) |
fixed typo, removed misleading statement
-rw-r--r-- | _posts/2013-06-05-simplify-rdfwriter-method.md | 5 |
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 ! |