Re: Removing a named model (backed by TDB)

2014-08-23 Thread Andy Seaborne
Hubert, A complete, minimal example makes it much easier to answer questions or fix bugs. In TDB, getNamedModel will always return a Model. You can check whether it current exists with containsNamedModel. TDB does not track empty graphs - it just has a set of quads and a set of triples.

Re: Removing a named model (backed by TDB)

2014-08-23 Thread Hubert A Le Van Gong
Andy, Rob, Thanks for the responses. I'm using Jena 2.11.2 (same version for both TDB and ARQ). Below are the relevant pieces of code. Code to delete a graph: public boolean deleteGraph(String datasetID, String graphName) { if

Assembler for Datasets

2014-08-23 Thread Martynas Jusevičius
Hey, are there any examples on how to assemble a Dataset, with files becoming (possibly renamed) named graphs? Or maybe assembler is not the right tool for this? I checked the how-to but it's mostly about Models. https://jena.apache.org/documentation/assembler/assembler-howto.html Martynas