RDF::H...perties(3pm)

πŸ“¦
version 0.24 Β· 4 versions
, in debian bookworm, ubuntu noble

πŸ’– RDF::Helper::Properties β€” bestie edition πŸ’–

ok so this is a page from the User Contributed Perl Documentation collection, and it's literally all about RDF::Helper::Properties, a module that gives you shortcuts to grab certain info. no cap. πŸŽ€


✨ NAME ✨

RDF::Helper::Properties β€” the module that hands you the little shortcuts so you can retrieve certain information without doing the absolute most. πŸ’…


🌸 VERSION 🌸

Version 0.22 πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

my $helper = RDF::Helper::Properties->new($model);
print $helper->title($node);

like. that's it. that's the whole vibe. ✨


πŸ’œ DESCRIPTION πŸ’œ

🧚 Constructor

  • new(model => $model, %attributes) β€” a Moose-style constructor, okay bestie? that's the whole thing, that's the moment. πŸ‘‘

πŸ“ Attributes

  • model β€” the RDF::Trine::Model that the data is gonna get extracted from. it's the only attribute the constructor actually requires, so don't come to the group chat without it. 😭
  • page_properties β€” an arrayref of RDF::Trine::Node::Resource objects, and every single one of them means "something a bit like foaf:homepage". there's a sensible default, so you're covered. 🌈
  • title_properties β€” an arrayref of RDF::Trine::Node::Resource objects, each of which means "something a bit like foaf:name". also has a sensible default. iconic. ⭐
  • cache β€” a hashref you can cache data into, OR a blessed object that supports get and set methods compatible with CHI and Cache::Cache. and if you don't supply a cache? a hashref gets used by default. easy. πŸ’–

🌸 Methods

  • page($node) β€” returns a suitable page to redirect to, based on foaf:page or foaf:homepage. go off. 🫢
  • title($node) β€” returns a suitable title for the document, based on document contents.
and listen β€” when it's called in list context, it returns a ($value, $lang, $datatype) tuple. don't forget that part, it's giving very important. πŸ”₯
  • description($node) β€” returns a suitable description for the document, based on document contents.
  • html_node_value($node) β€” formats the nodes for HTML output. slay. πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

most of the code was written by Gregory Todd Williams <gwilliams@cpan.org> for RDF::LinkedData::Apache, but then it got refactored into this class for use by other modules by Kjetil Kjernsmo, <kjetilk at cpan.org>, and then refactored again by Toby Inkster, <tobyink at cpan.org>. three icons, one module. the way that happened. πŸ’€βœ¨


Copyright 2010 Gregory Todd Williams and ABC Startsiden AS.

Copyright 2012 Toby Inkster.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


and that's the whole page, bestie!! πŸ¦‹ this was RDF::H...perties(3pm) from the User Contributed Perl Documentation, generated with perl v5.34.0 on 2022-06-17. drink water, go touch grass, and remember: the facts stayed exactly the same, only the vibe got a glow-up. periodt. πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from