This looks like a prime candidate for a contract test (as soon as we agree on what the action should be)
Claude On Wed, Mar 7, 2018 at 4:26 PM, A. Soroka (JIRA) <j...@apache.org> wrote: > > [ https://issues.apache.org/jira/browse/JENA-1499?page= > com.atlassian.jira.plugin.system.issuetabpanels:comment- > tabpanel&focusedCommentId=16389757#comment-16389757 ] > > A. Soroka commented on JENA-1499: > --------------------------------- > > [~andy.seaborne], > {{org.apache.jena.sparql.core.mem.QuadTableForm.GSPO.listGraphNodes()}} > is just taking the keys of the GSPO index and returning a stream of them. > That's why (see above) if there are mappings fro{{m }}{{Node => Node => > Set<Node>}} with that {{Set}} empty, we're still seeing names of graphs > appear at that exact method. > > > 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) > -- I like: Like Like - The likeliest place on the web <http://like-like.xenei.com> LinkedIn: http://www.linkedin.com/in/claudewarren