RDF::T...Filter(3pm)
π RDF::Trine::Model::StatementFilter β the vibe β¨
okay bestie, so this is RDF::Trine::Model::StatementFilter, a page from the User Contributed Perl Documentation situation, and it's literally a Model for filtering statements based on a user-specified criteria. that's the whole name, that's the whole energy. no cap. π
it's giving "i'm a model but make it β¨selectiveβ¨". you hand it rules, it decides what gets to stay. main character gatekeeping, but for RDF.
πΈ VERSION πΈ
this doc describes RDF::Trine::Model::StatementFilter version 1.019. periodt. π
β¨ METHODS β¨
okay so first things first, lowkey important: beyond the methods documented below, this class inherits methods from the RDF::Trine::Model class. so don't come for it saying it only has these, bestie, it got them from its parent. π«Ά
new ( $store )β returns a new statement-filter model. fresh out the box, slay. π¦count_statements ($subject, $predicate, $object)β returns a count of all the statements matching the specified subject, predicate and objects. and here's the cute part: any of the arguments may beundefto match any value. soundefis like the "idc, surprise me" option. π₯get_statements ($subject, $predicate, $object [, $context] )β returns a stream object of all statements matching the specified subject, predicate and objects from all of the rdf stores. yep, all of them. and same deal as before: any of the arguments may beundefto match any value. π§get_pattern ( $bgp [, $context] )β returns a stream object of all bindings matching the specified graph pattern. β¨apply_rules ( $statement )β that's it, that's the whole entry. no description given, bestie, so i'm not gonna invent one. iykyk. πrulesβ returns a list of all rules in the inferencing model. the whole roster, the full lineup. πadd_rule ( \&rule )β adds a rule to the inferencing model. and listen, the rule should be a CODE reference that, when passed a statement object, will return true if the statement should be allowed in the model, and false if it should be filtered out. so it's a lil bouncer at the door:true= come on in,false= not today. π
π BUGS π
found a bug? got a feature request? please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. (yes, the original really does say "to through", and i'm keeping it exactly as-is because facts don't change even when grammar does π). go tell them, bestie, they wanna know. π«Ά
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" β the icon, the legend, the moment. π
π 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.
fr fr, that's the actual license text, don't skip it, it's important. π
and that's the whole page, bestie!! π this was perl v5.38.2, dated 2024-01-13, and it's the RDF::T...Filter(3pm) page β mwah, iconic, no notes. go filter some statements. β¨ππ
π¦ 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