RDF::T...alized(3pm)
π NAME π
RDF::Trine::Iterator::Bindings::Materialized β the materialized bindings class, bestie. that's it, that's the whole vibe β¨
π VERSION π
this doc is describing RDF::Trine::Iterator::Bindings::Materialized version 1.019 π
πΈ SYNOPSIS πΈ
okay so here's the whole thing in action, copy it exactly, no edits queen:
use RDF::Trine::Iterator;
my $iterator = RDF::Trine::Iterator::Bindings::Materialized->new( \@data, \@names );
while (my $row = $iterator->next) {
my @vars = keys %$row;
# do something with @vars
}
my $iterator = RDF::Trine::Iterator::Bindings->new( \&code, \@names );
my $miter = $iterator->materialize;
while (my $row = $miter->next) {
my @vars = keys %$row;
# do something with @vars
}
$miter->reset; # start the iteration again
while (my $row = $miter->next) {
# ...
}
see that? you can spin one up directly with new, or you can grab a lazy bindings iterator and hit materialize on it, and then rewind with reset and go again π iconic behavior honestly
π¦ METHODS π¦
not me listing every single oneβ¦ but also yes, every single one, because you deserve the full tea π
on top of the methods written down below, this class inherits methods from the RDF::Trine::Iterator::Bindings class β so go look there too, iykyk
new ( \@results, \@names, %args )β hands you back a brand-new materialized bindings iterator π«Ά the results have to be a reference to an array, and inside that array are the individual results.\@namesand%argsride along too, no cap.resetβ sends the iterator all the way back to where it started, like a rewind button on the group chat πΌnextβ gives you the next item in the iterator. the main character method, fr fr πlengthβ tells you how many elements are chillin' in the iterator π’
π BUGS π
found a bug? need a feature? please report it through the GitHub web interface at:
https://github.com/kasei/perlrdf/issues
go off, they wanna hear it π
π AUTHOR π
Gregory Todd Williams β "<gwilliams@cpan.org>" β¨ the legend himself
π COPYRIGHT π
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
yes bestie, that means it's free software under the same terms as Perl itself β slay, go forth and redistribute π
and that's a wrap on RDF::T...alized π this page was brought to you by perl v5.38.2, dated 2024-01-13, from the User Contributed Perl Documentation collection π bye bestie, go materialize something gorgeous π¦β
π¦ where this page comes from
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms