Re: how to put output of sparql query in jtable

2014-05-03 Thread Claude Warren
In the past when displaying the results of a SPARQL query in a browser I have used javascript and taken the SPARQL result from Fuseki in a JSON format. This makes it rather trivial do do. I am unfamiliar with the JTable properties, but if it can parse and display JSON or XML you might use the

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-03 Thread Andy Seaborne
On 05/02/14 21:19, Jean-Marc Vanel wrote: In fact, isInTransaction() returns false ( because ThreadLocal returns setInitialValue() ) , so there must be something broken in the TDB dataset . isInTransaction returning true means that the current thread is in a transaction, not that there is

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-03 Thread Andy Seaborne
This might help: // Setup: Dataset dataset = DatasetGraphTransaction dsgt = (DatasetGraphTransaction) (dataset.asDatasetGraph()) ; Location loc = dsgt.getLocation() ; StoreConnection sConn = StoreConnection.make(loc) ; // then anywhere:

Re: Getting classes from an ontology

2014-05-03 Thread Andy Seaborne
On 05/03/14 00:02, Cindy A McMullen wrote: Unfortunately, we're using an older version of Jena (2.7.2) for compatibility with the Oracle Jena adapter. I see more recent versions have these methods on OntModel: listClasses() listDatatypeProperties() and so on. How can I do the equivalent

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-03 Thread Andy Seaborne
On 05/03/14 17:31, Jean-Marc Vanel wrote: Thanks for the advice ; currently I suspect that *several* threads start a transaction, via a same Dataset object ; which tdb_transactions.html explicitely discourages. Where? That's normal practice. It does talk about sharing one transaction bewteen