On 02/09/13 02:37, Wang Dongsheng wrote:
Hi, all
    It confused me a lot that when I maintain a named graph.

    I stored many named graph in TDB, I can get the named graph by
dataset.getNamedModel("model name"); or delete the named model by
dataset.removeNamedModel("").

    But when I want to add a new triple, into the named model, it does
not work. For example, Model model = dataset.getNamedModel("model
name"); model.add("a statement");

    The statement is not found in the named model or even in the default model.~

I do this all the time and it works fine. The added statement will show up in the named model. It will only show up in the default model if you have symUnionDefaultGraph set.

If you can't get this to work then you would need to show us a complete, minimal example of your code.

Dave


Reply via email to