[ 
https://issues.apache.org/jira/browse/JENA-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235111#comment-13235111
 ] 

Andy Seaborne commented on JENA-223:
------------------------------------


I've tracked this from m.removeAll(...) turns to a graph find iterator over 
reifier and base graph.  iter.remove does not seem to remove the triple from 
the reifiers fragments list.

(Works for TDB but TDB reification is just an algorithm over the base storage 
state - there is no "reifier" that stores fragments -- TDB only support 
ReificationStyle.Standard via GraphBase2+Reifier2 in ARQ's graph extras.  Long 
term, I'd like to suggest use this or somethign similar for reification and 
simplify the reifier architecture.)
                
> Default memory model will not remove (partially) reified statements
> -------------------------------------------------------------------
>
>                 Key: JENA-223
>                 URL: https://issues.apache.org/jira/browse/JENA-223
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.7.0
>            Reporter: Damian Steer
>              Labels: reification
>
> From antiguru on IRC:
> Model m = ModelFactory.createDefaultModel();
> Resource r = m.createResource("http://example.com/a";);
> r.addProperty(RDF.object, "test1"); // or predicate or subject
> m.removeAll(r, null, null);
> System.err.println(m.size()); // => 1
> Works (returns 0) with:
> ModelFactory.createMemModelMaker(ReificationStyle.Minimal).createDefaultModel();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to