RDF::H...perties(3pm)
π 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β theRDF::Trine::Modelthat 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 ofRDF::Trine::Node::Resourceobjects, 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 ofRDF::Trine::Node::Resourceobjects, 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 supportsgetandsetmethods 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 & LICENSE π
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
- debian bookworm: librdf-helper-properties-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-helper-properties-perl 0.24-2 Β· 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