You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commonsrdf.apache.org by "Stian Soiland-Reyes (JIRA)" <ji...@apache.org> on 2016/07/05 15:32:11 UTC

[jira] [Commented] (COMMONSRDF-22) Rename getTriples/iterate to getTriplesAsStream/getTriplesAsIterable ?

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

Stian Soiland-Reyes commented on COMMONSRDF-22:
-----------------------------------------------

The suggestion from the quads branch is to rename getTriples() to stream() - thus there's stream() in both Dataset and Graph. This is also equivalent to java.util.Collection.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
>             Fix For: 0.3.0
>
>
> 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)