nichtich / RDF-aREF

Perl module for another RDF Encoding Form
https://github.com/nichtich/RDF-aREF/wiki
Other
0 stars 4 forks source link

Implement pull decoder #1

Open nichtich opened 10 years ago

nichtich commented 10 years ago
my $iter = RDF::aREF::Decoder->iterator($aref)
while (my $triple = $iter->next) {
    ...; 
}

RDF::aREF::Decoder->iterator($aref, as => 'trine');  # emit RDF::Trine statements
RDF::aREF::Decoder->iterator($aref, as => sub { ... }); # filter

Implementation probably requires to wrap function calls in a custom stack to store the full parsing event state.