RDF::R...Stream(3pm)

✨ RDF::Redland::Stream ✨

okay bestie, gather round, because today we're talking about RDF::Redland::Stream from the User Contributed Perl Documentation β€” it's the Redland RDF Stream of RDF::Redland::Statement objects Class, and yes it's a whole class, not just a vibe πŸ’…


🌸 NAME 🌸

RDF::Redland::Stream β€” Redland RDF Stream of RDF::Redland::Statement objects Class

like. that's her. that's the whole name. iconic. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

the way you actually use her, fr fr:

use RDF::Redland;

...
my $stream=$model->serialise;
while($stream && !$stream->end) {
  my $statement=$stream->current;
  ...
  $stream->next;
}

see how she loops? see how she slays? yes. that's the energy. ⭐


πŸ’– DESCRIPTION πŸ’–

okay so. a RDF::Redland::Stream is literally just a sequence of RDF::Redland::Statement objects that gets passed around between all the various Redland objects like a little note in the group chat. 🫢 that's it. that's the whole description. no cap.


πŸŽ€ CONSTRUCTORS πŸŽ€

bad news bestie: no public constructors. 😭 you cannot just make one. she's not like other classes.

instead, they get created and returned from various methods of classes including RDF::Redland::Model and RDF::Redland::Parser. so you get handed one. you don't build one. it's giving ✨unattainable✨ and honestly? respect.


πŸ’… METHODS πŸ’…

here's the whole menu, no skips, no summaries, we don't do that here:

  • end β€” returns non 0 if the stream is finished. that's the whole thing. she's done, she tells you, bye. πŸ’€
  • current β€” returns the current RDF::Redland::Statement object in the stream, or undef if the stream is finished. (yes, undef when it's over. that's how you know.)
  • next β€” moves to the next RDF::Redland::Statement object in the stream. returns non-zero if the stream is finished. so like, walking forward and getting a little "we're done here" tap on the shoulder. πŸšΆβ™€οΈ
  • context β€” returns the context RDF::Redland::Node object in the stream, or undef if the stream is finished. note this one is a Node, not a Statement. she's different. she's the main character of her own little return type. 🌈

πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, they're the whole friend group:

  • RDF::Redland::Model
  • RDF::Redland::Parser

🌟 AUTHOR 🌟

Dave Beckett β€” http://www.dajobe.org/

the icon. the legend. the moment. 🫑


okay that's the page!! this little rewrite was living happily as perl v5.42.3, dated 2026-08-20, and she was already called RDF::R...Stream(3pm) when I found her. mwah. πŸ’–βœ¨πŸŽ€ go loop some streams, bestie. πŸ¦‹

πŸ“¦ where this page comes from