[
https://issues.apache.org/jira/browse/CLEREZZA-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057874#comment-13057874
]
Reto Bachmann-Gmür commented on CLEREZZA-510:
---------------------------------------------
you write
"- RichGraphNode extends GraphNode which is a read only TripleCollection, to
turn it into a mutable graph would be a dramatic API change. I think there is a
good reason for separating reading and writing of graphs. Most RichGraphNodes
are used in SSPs where no writing should be done, so that offering that
functionality could easily be misleading. Now to build immutable but evolvable
GraphNodes would be an interesting project, but perhaps not right for this
issue. "
RichGraphNode allows modification of the Triple Coolection (adding and removing
properties), you currently just need to use the inherited method from GraphNode
(which is neither a TripleCollection nor read-only). The idea behind
RichGraphNode and GraphNode was to be a Resource-Wrapper usable both on top of
mutable as well as immutable triple collections (i.e. Graphs and MGraphs).
RichGraphNode had less DSL style methods for graph-anging operations, adding
those would imho be the scope of this issue.
> DSL for writing RDF elegantly
> -----------------------------
>
> Key: CLEREZZA-510
> URL: https://issues.apache.org/jira/browse/CLEREZZA-510
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Henry Story
> Assignee: Henry Story
> Attachments: NiceLookingGraphInScala.png
>
>
> Writing RDF like
> graph.add(new TripleImp(Subj,rel,obj))
> is tedious to read and to write and makes every thing seem really heavy. Make
> it look good.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira