Re: Error org.apache.jena.tdb.transaction.TDBTransactionException: Not in a transaction

2020-03-02 Thread Diptendu Dutta
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()

Re: Error org.apache.jena.tdb.transaction.TDBTransactionException: Not in a transaction

2020-03-02 Thread Rob Vesse
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

Error org.apache.jena.tdb.transaction.TDBTransactionException: Not in a transaction

2020-03-02 Thread Diptendu Dutta
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