TDB needs enough working memory to do its job so you need to tell java
to allow a reasonable maximum heap. E.g. -Xmx1200M

Note that an alternative to writing code for this is to use the command
line utility tdbloader

On Thu, 2011-09-22 at 16:36 +0200, Ján Mojžiš wrote: 
> Hi,
> I would appreciate any help for this problem:
> 
> I want to import rdf data into tdb dataset.
> To do this, I use following code:
> 
>     InputStream in = new FileInputStream(new File(filename));    // filename
> is a big file 500MB of rdf data
>     Dataset ds = TDBFactory.createDataset("data\\");   // store new data
> here
>     model = ds.getDefaultModel() ;
>     model.read(in, null);   // start converting rdf -> tdb...
>     in.close();
>     model.commit();

To ensure disk synchronization use TDB.sync

Dave


Reply via email to