You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Reto Bachmann-Gmuer <re...@trialox.org> on 2011/03/15 20:03:30 UTC

Your commit and RichGraphNode

Hi Henry

Could you please fix yesterday's commit? There are still experiments and
discussion in it.

One discussion (taken from
rdf.scala.utils/src/main/scala/org/apache/clerezza/rdf/scala/utils/RichGraphNode.scala):

/* because it is tedious to wrap nodes as happens in a lot of code.

That's why there are dynamic conversions, the Preamble Object converts any
GraphNode to RichGraphNode, instances of the preamble class also convert
Resources (such as UriRefs) to RichGraphNodes.
         *
         * todo: does one really need to create the graph node? Is there a
reason this is passed ike that,
What do you suggest, RichGraphNode not to be a subclass of GraphNode? Why?

         * todo: or was that just a quick hack? If it is because we don't
want to use any of the superclass implementations
Not sure what you're refreing too, RichGraphNode doesn't reimplement any of
the superclass methods
         * todo: then it would be worth creating an interface above
GraphNode and implementing the interface instead...
I see no need for this.


Cheers,
reto