I had a similar problem 2 months back but this was never solved so I had to create RDFs manually
sent from my Google Nexus 7 On Jul 16, 2013 1:51 PM, "Nikolaos Konstantinou" <[email protected]> wrote: > Hi all, > I would like to know how and if it is possible to append to an existing > model and save only the difference, instead of the whole model. > Specifically, the problem setting is the following: Suppose we read an RDF > from the hard disk that has many (e.g. 1 million) triples, add another > triple, and save the model again. This goes somehow like: > model.read(...)Statement st = model.createStatement(s, p, > o);model.add(st);model.write(new FileOutputStream(...), syntax); > Is there a way to avoid writing the whole model to disk (which overwrites > the old one), and instead append only the difference, i.e. the extra > triple? If not for an RDF file on the hard disk, maybe this is possible for > a persistent (TDB/SDB) model? If not programmatically, maybe using > sparql/update? And if not out-of-the-box, any hints towards implementing it? > Thank you in advance for your support. > Best regards,Nikolaos Konstantinouhttp://www.cn.ntua.gr/~nkons/ >
