English 中文(简体)
Managing transactions with AllegroGraph s Jena API
原标题:

I m uncertain as to the behaviour of the AllegroGraph triple store in regard to transactions. The tutorial talks about using two connections, but does not mention Jena models.

If I use Model s begin(), commit(), and abort() methods, do I still need to use two connections? How does a model interact with the connection s auto-commit setting?

最佳回答

The Jena tutorial doesn t have an example of transactions, but they are supported by using the Model methods: begin, commit, and abort.

You don t have to do anything manually with 2 connections. I ll work on clarifying the language in the tutorial.

The way it s implemented, when you call begin(), it calls setAutoCommit(false).

问题回答

暂无回答




相关问题
OWL reasoning in Prolog query from AllegroGraph Python API

I noticed that in the AllegroGraph Python API tutorial here, whenever they want to use OWL reasoning they use the conn.getStatements method instead of issuing a Prolog or SPARQL query. Is it possible ...

RDF reading/parsing errors

I have some RDF files which I want to import into a tripplestore(AllegroGraph), but at the first file I get a SAX parser error, stating there is an unrecognized character. After removing the line in ...

Allegrograph - Functors like RDF objects properties?

Using Allegrograph, Prolog functors are pretty awesome, but there is one downside. Let s say you define a functor that links two entities, for example parentOf which equals to "!n:motherOf OR !n:...

Managing transactions with AllegroGraph s Jena API

I m uncertain as to the behaviour of the AllegroGraph triple store in regard to transactions. The tutorial talks about using two connections, but does not mention Jena models. If I use Model s begin()...

Is it possible to query AllegroGraph using roqet?

I am trying to query AllegroGraph 4.0 using roqet to extract data in CSV. Is it possible? In roqet man page it is not clear if it can query a triple store besides rdf files. About AG HTTP protocol: ...

热门标签