[redland-dev] Raptor Turle parser memory usage

Nicholas Humfrey njh at aelius.com
Mon Jul 9 04:30:00 EDT 2012


Hello,

Yes, the Turtle serialiser puts everything into RAM, in order to build a tree of the data and out a nice pretty file, with all the triples with the same subject next to each other.

If you output as ntriples, then output will be much faster and it won't try and load everything into RAM.

nick.


On 9 Jul 2012, at 02:15, Medha Atre wrote:

> Hello,
> 
> I am trying to use the Raptor RDF parser library to parse a very large RDF/XML file of LUBM dataset (synthetically generated) and convert it into Turle representation. The gzipped format of RDF/XML file itself is 5.1 GB (I am reading its input through a fifo and "rapper" reads from this fifo).
> 
> When I run "rapper" command to convert RDF/XML into Turtle on this file, the memory utilization shoots up very high (it consumes almost all of my RAM leaving me unable to do anything else on the computer).
> 
> I was wondering if there is any option to restrict the memory used by "rapper" tool? I checked "configure" and "rapper --help", but didn't find any such option.
> 
> Can someone please let me know what the best and easiest workaround for this?
> 
> Thanks.
> 
> Medha
> 
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.librdf.org/mailman/listinfo/redland-dev



More information about the redland-dev mailing list