Andy Seaborne commented on JENA-1499:

It's not a bug but it is inconsistent. This does not print anything.

DatasetGraph dsg = DatasetGraphFactory.createTxnMem();
UpdateAction.parseExecute("CREATE GRAPH <http://example/g2>", dsg);

I'd rather the TriG writers didn't have to test each named graph for being 

{{DatasetGraphFactory.createGeneral()}} is the exception and does have empty 
graphs but also it does print the name in the example.

> The TIM dataset retains a memory of named graphs after deleting all quads.
> --------------------------------------------------------------------------
>                 Key: JENA-1499
>                 URL: https://issues.apache.org/jira/browse/JENA-1499
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 3.6.0
>            Reporter: Andy Seaborne
>            Priority: Major
> Illustration:
> {noformat}
>         DatasetGraph dsg = DatasetGraphFactory.createTxnMem();
>         Quad q = SSE.parseQuad("(:g :s :p :o)");
>         dsg.add(q);
>         dsg.delete(q);
>         Iter.print(dsg.listGraphNodes());
> {noformat}
> prints {{http://example/g}}.

This message was sent by Atlassian JIRA

Reply via email to