RDF::R...::Note(3pm)
π RDF::R...::Note(3pm) β the manual page, but make it make sense π
okay bestie, welcome to RDF::RDFa::Generator::HTML::Pretty::Note(3pm) π β the perl doc page that's literally just a lil note object. she's small, she's cute, she's got opinions about namespaces. let's get into it β¨
β¨ NAME β¨
RDF::RDFa::Generator::HTML::Pretty::Note β a note about something π
π¦ DESCRIPTION π¦
so here's the tea: a lot of the time you're gonna wanna build your own subclass of this thing, because the basic notes are, and I say this with love, pretty limited β they're plain text only. that's it. no styling, no nothing. so if you want more, you go make a subclass, bestie, the door's wide open π«Ά
πΈ Constructor πΈ
$note = RDF::RDFa::Generator::HTML::Pretty::Note->new($subject, $text)β this is how you birth a note into existence.
$subject is an RDF::Trine::Node β though like, probably not a Literal, okay? π she's indicating the subject of the note. and $text is the plain text content of the note. that's the whole vibe.
π Public Methods π
$note->is_relevant_to($node)β$nodehere is anRDF::Trine::Nodeor an Attean IRI or blank. this method checks if the subject of$noteis$node. basically: "hey, are you the one this note is about?" π΅οΈββοΈ
Alias: is_relevent_to.
yes, that alias is spelled is_relevent_to. with the typo. fr fr. it's literally in the source, don't come for me π β just use whichever one, both work.
$note->node($namespace, $tagname)β this gets you anXML::LibXML::Elementthat represents the note π.$namespaceand$tagnameget used to create that new element.
β οΈ heads up: if an unexpected namespace or tagname gets supplied, this may die. not a drill, bestie π
the expected namespace is 'http://www.w3.org/1999/xhtml'. the expected tagname is any XHTML tag that can contain text nodes. like, any tag that's chill with holding some text. that's the assignment π
π SEE ALSO π
RDF::RDFa::GeneratorRDF::RDFa::Linter
go read those too, iykyk π
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. icon behavior, no cap β¨
π COPYRIGHT AND LICENCE π
Copyright (C) 2010 by Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available.
okay and that's the whole page, you ate it π this was perl v5.40.0 documentation from 2025-01-21, and honestly? she's giving vintage-but-still-slaying. mwah, go write some notes bestie ππ¦β¨
π¦ where this page comes from
- debian trixie: librdf-rdfa-generator-perl 0.204-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-rdfa-generator-perl 0.204-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-rdfa-generator-perl 0.204-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