kasei / attean

A Perl Semantic Web Framework
19 stars 10 forks source link

Simplify filtering iterator for patterns #127

Closed kjetilk closed 5 years ago

kjetilk commented 5 years ago

I had an quad iterator that I needed to filter for triple patterns, and I ended up pretty much copying https://github.com/kasei/attean/blob/master/lib/AtteanX/Store/Simple.pm#L59 because that seems to be pretty close to what it does.

I figured that should be simpler.

kasei commented 5 years ago

Are you looking for an equivalent of that get_quads method to be added to Attean::API::QuadIterator?

kasei commented 5 years ago

I'll still want to add some tests to this, but I think #128 should provide much better access to this functionality.