[
https://issues.apache.org/jira/browse/COMMONSRDF-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15611291#comment-15611291
]
Stian Soiland-Reyes commented on COMMONSRDF-22:
-----------------------------------------------
We ended up with {{GraphLike.iterate()}} which works for both {{Triple}} in
{{Graph}} and {{Quad}} in {{Dataset}}. This is then a natural sibling to
{{stream()}}.
> Rename getTriples/iterate to getTriplesAsStream/getTriplesAsIterable ?
> ----------------------------------------------------------------------
>
> Key: COMMONSRDF-22
> URL: https://issues.apache.org/jira/browse/COMMONSRDF-22
> Project: Apache Commons RDF
> Issue Type: Wish
> Affects Versions: 0.1.0
> Reporter: Alexandre Bertails
> Priority: Minor
> Labels: iterable, stream
>
> Alexandre Bertails suggested on
> [2015-05-06|http://mail-archives.apache.org/mod_mbox/commonsrdf-dev/201505.mbox/%3CCANvn8kzfnDoA%3DsgZLmHyN%3DbE2Gmba%3D1oNO0Haq72mi_GFkLRng%40mail.gmail.com%3E]:
> > # getTriples vs iterate
> >
> > Not a big deal but I believe the naming could be improved. When I read
> > getTriples, I expect to have all the triples in my hand, but this is
> > not quite what Streams are about. On the other hand, when I read
> > iterate, I kinda expect the opposite. Of course the types clarify
> > everything but I believe it'd be easier to use getTriplesAsStream and
> > getTriplesAsIterable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)