From: Richard C. <ri...@cy...> - 2006-03-02 17:55:16
|
Hi Geraint, On 2 Mar 2006, at 17:32, Geraint Edwards wrote: > My data is in a strict hierarchical tree, 'nodes' have one and only > one parent and when I delete a 'node', say a member of a container, > I really want to remove all its descendents. > If I use ResSeq->remove($myStatement) I am left with many orphans, > but if I use Model->findForward I should be able to find the 'sub- > tree' model and then remove this model from my master model. The > trouble is that my data is created by parsing the output from > another application which uses resources instead of blanknodes. > > Is there a reason that findForward only recurses down through > BlankNodes and not through resources too? Yes, there's a reason. findForward computes the blank node closure of a statement and can be used to compute concise bounded descriptions (CBDs). Both seem to be useful to some folks and rely on recursing only over the blank nodes. So it's a different use case. Richard (Terminology nitpick: Blank nodes are resources too.) > > thanks > > Geraint > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |