RDF::T...Filter(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 be undef to match any value. so undef is 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 be undef to 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 (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