---
name: "RDF::RDFa::Generator::HTML::Pretty::Note"
section: "3pm"
platform: "linux"
package: "librdf-rdfa-generator-perl"
version: "0.204-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/RDF::RDFa::Generator::HTML::Pretty::Note"
---

# RDF::RDFa::Generator::HTML::Pretty::Note(3pm)

a note about something

## NAME

RDF::RDFa::Generator::HTML::Pretty::Note - a note about something

## DESCRIPTION

Often you'll want to create your own subclass of this as the basic notes are pretty limited (plain text only).

### Constructor

- "$note = RDF::RDFa::Generator::HTML::Pretty::Note-\>new($subject, $text)"

  `$subject` is an RDF::Trine::Node (though probably not a Literal!) indicating the subject of the note. `$text` is the plain text content of the note.

### Public Methods

- "$note-\>is\_relevant\_to($node)"

  `$node` is an RDF::Trine::Node or Attean IRI or blank. Checks if the subject of `$note` is `$node`.

  Alias: is\_relevent\_to.

- "$note-\>node($namespace, $tagname)"

  Gets an XML::LibXML::Element representing the note. `$namespace` and `$tagname` are used to create the new element. If an unexpected namespace or tagname is supplied, may die.

  Expected namespace is 'http://www.w3.org/1999/xhtml'. Expected tagname is any XHTML tag that can contain text nodes.

## SEE ALSO

RDF::RDFa::Generator, RDF::RDFa::Linter.

## AUTHOR

Toby Inkster \<tobyink@cpan.org\>.

## 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.
