[
https://issues.apache.org/jira/browse/JENA-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16388508#comment-16388508
]
Andy Seaborne commented on JENA-1499:
-------------------------------------
It's not a bug but it is inconsistent. This does not print anything.
{noformat}
DatasetGraph dsg = DatasetGraphFactory.createTxnMem();
UpdateAction.parseExecute("CREATE GRAPH <http://example/g2>", dsg);
Iter.print(dsg.listGraphNodes());
{noformat}
I'd rather the TriG writers didn't have to test each named graph for being
empty.
{{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
(v7.6.3#76005)