Hi all,

Having retrieved the default model through Model m = dataset.getDefaultModel(), I can see that any change on m is persistent after a TDB.sync in non-transactional or after a commit in transactional model.

While using named models, after adding a model to the dataset through dataset.addNamedModel(uri, model), then changes (i.e. adding a new triple to the model) on this added named model are not persistent on TDB neither in non-transactional nor in transactional mode. I need to explicitly call dataset.replaceModel to make the changes persistent.

What I need is to have the same behavior of default model for my named models added to the dataset. Is the "replaceModel" the only way to achieve this? Or, should I only work on the default model?

Best,
Anil.

Reply via email to