Discussion:
Transactions over Fuseki REST?
Brad Stallion
2018-12-03 15:20:11 UTC
Permalink
Hi All,is it possible to work with transactions (commit/rollback) using Fuseki (3.9.0) REST API?Thanks a lot
ajs6f
2018-12-03 17:51:29 UTC
Permalink
Each request you send to Fuseki is executed in its own transaction, but it's not possible to bundle up requests, if that's what you mean. That's generally difficult to do well for an operation-oriented API being exposed over HTTP.

You could provide some mechanism in front of Fuseki to gather, execute, and potentially rollback requests.

Can you say a little more about your use case? That might help us give you better advice.

ajs6f
Post by Brad Stallion
Hi All,is it possible to work with transactions (commit/rollback) using Fuseki (3.9.0) REST API?Thanks a lot
Brad Stallion
2018-12-04 09:37:22 UTC
Permalink
Ciao ajs6f,my use case is exactly what you imagine: a set of read/write I'd like to include in a transactional block.I know this is difficult over REST/HTTP, but I asked just in case... ;-)
Probably I'll port part of my application to Java, in order to use Jena JAVA API directly.Thanks a lot
Il lunedì 3 dicembre 2018, 18:51:36 CET, ajs6f <***@apache.org> ha scritto:

Each request you send to Fuseki is executed in its own transaction, but it's not possible to bundle up requests, if that's what you mean. That's generally difficult to do well for an operation-oriented API being exposed over HTTP.

You could provide some mechanism in front of Fuseki to gather, execute, and potentially rollback requests.

Can you say a little more about your use case? That might help us give you better advice.

ajs6f
Post by Brad Stallion
Hi All,is it possible to work with transactions (commit/rollback) using Fuseki (3.9.0) REST API?Thanks a lot
Andy Seaborne
2018-12-04 11:28:02 UTC
Permalink
A SPARQL Update request can be several update operations and
RDFConnection has the design hooks but, yes, a transaction API would be
good to have.

It's JENA-700.

Andy
Ciao ajs6f,my use case is exactly what you imagine: a set of read/write I'd like to include in a transactional block.I know this is difficult over REST/HTTP, but I asked just in case... ;-)
Probably I'll port part of my application to Java, in order to use Jena JAVA API directly.Thanks a lot
Each request you send to Fuseki is executed in its own transaction, but it's not possible to bundle up requests, if that's what you mean. That's generally difficult to do well for an operation-oriented API being exposed over HTTP.
You could provide some mechanism in front of Fuseki to gather, execute, and potentially rollback requests.
Can you say a little more about your use case? That might help us give you better advice.
ajs6f
Post by Brad Stallion
Hi All,is it possible to work with transactions (commit/rollback) using Fuseki (3.9.0) REST API?Thanks a lot
Loading...