RDF::R...::Note(3pm)

πŸ“¦
version 0.204 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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) β€” $node here is an RDF::Trine::Node or an Attean IRI or blank. this method checks if the subject of $note is $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 an XML::LibXML::Element that represents the note πŸ‘‘. $namespace and $tagname get 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::Generator
  • RDF::RDFa::Linter

go read those too, iykyk πŸ’œ


🌟 AUTHOR 🌟

Toby Inkster <tobyink@cpan.org>. icon behavior, no cap ✨


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