I used the bulk loader with Jena API to store data in TDB, but I don't know what is the best way to use it. Because I create statements for each iteration, and I pass data to bulk loader via InputStream. But if I store data after load statements into a model, I have an OutOfMemoryError, but I store data for each iteration, the system is too slow. So, I would like to know what is the best way to do this with Jena API.
Thanks