On 29/11/12 21:24, Andy Seaborne wrote:
> final Dataset d = TDBFactory.createDataset();
> Node n = Node.createURI("urn:graph");
> d.addGraph(n, GraphFactory.createDefaultGraph());
(sorry for the delay replying)
I'm afraid that isn't going to work. I suspect it should be an error.
It seems that the code adds in the contents of the graph into the
dataset by copying over the triples - i.e. update before adding.
Andy
A TDB dataset is a triples+quad store. You can't add an in-memory
storage-backed graph to a dataset backed by TDB.
If you want a mixe dataset, you can create an in-memory dataset and add
in TDB backed graphs.
Andy
On 28/11/12 20:32, Dick Murray wrote:
Hi all.
I have an issue where triples which are added to a graph which has been
added to a dataset are not visible in the dataset.
However if I add the graph then add quads to the dataset with the quad
graph node as the node used to add the graph the quads are visible.
Is this expected?