I'm sorry, I don't quite understand your response. Are you saying if I'd like 
to stream I should try using a format other than rdf/xml? In oder to do so, 
could I use the command of: 



bin/riot --out rdfthrift ~/Downloads/chembl_20.0_molecule.ttl > 
~/Downloads/chembl_20.0_molecule.rdf 




What would go in place of "rdfthrift"? 


From: "Damian Steer" <[email protected]> 
To: [email protected] 
Sent: Wednesday, August 5, 2015 5:05:48 PM 
Subject: Re: Convert .ttl turtle format file into .rdf file 

> On 5 Aug 2015, at 15:30, Marko Pance <[email protected]> wrote: 
> 
> Thanks for your response. I am using the riot utility successfully on smaller 
> file sizes. But for large ones I get a " 
> 
> java.lang.OutOfMemoryError: GC overhead limit exceeded" error message. 

I think you’re converting to rdf/xml? That doesn’t stream, so it will take 
memory. 

You can use —stream <format> to ensure steaming: 

$ bin/riot --stream rdfxml input.rdf 
Language 'RDF/XML' not registered for streaming. 
Streaming languages: 
TriX 
Turtle 
N-Quads 
RDF-THRIFT 
TriG 
N-Triples 
Non-streaming languages: 
RDF/JSON 
JSON-LD 
RDF/XML 

> Is there a way I can increase the heap size allocated to the JVM with a 
> command line option? 

$ export JVM_ARGS=-Xmx1G # or whatever you want 
$ riot …. 

Damian 

-- 
Damian Steer 
Senior Technical Researcher 
Research IT 
+44 (0) 117 928 7057 

Reply via email to