Thanks for the prompt answer.
On Mon 2 Mar, 2020 11:34 pm Rob Vesse, wrote:
> It's because you are trying to close the model after you've committed the
> transaction so the error message is quite correct in that you are no longer
> in a transaction at that point
>
> Put the dataset.commit()
It's because you are trying to close the model after you've committed the
transaction so the error message is quite correct in that you are no longer in
a transaction at that point
Put the dataset.commit() after the model.close() line and it will work
Rob
On 02/03/2020, 16:16, "Diptendu
I have the following code
public class JenaProcessor {
static Dataset dataset = null;
static String ns = "http://www.lke.com/lke.owl#;;
static {
try {
dataset = TDBFactory.createDataset("C:\\Users\\Diptendu\\Desktop\\lke");
}
catch(Exception ex) {
ex.printStackTrace();
}
}
static public void