The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RDF::RDFa::Parser::Profile - base class for RDFa profiles

DESCRIPTION

This is a base class for RDFa profiles. You don't need to know anything about this module unless you're doing some seriously weird stuff.

This module uses Module::Pluggable to load all modules in the RDF::RDFa::Parser::Profile::* namespace and delegate to them as appropriate.

The constructor (new) takes a URI for an RDF profile and returns either undef (meaning "I don't want anything to do with that profile") or an object with get_terms, get_prefixes and get_vocabulary methods.

get_terms returns a list of arrayrefs such that each arrayref has the following entries:

0. A term (keyword) defined by the profile.
1. The full URI is should expand to.
2. True iff the term is case-insensitive.
3. A space-separated list of attributes the term is allowed in. (Defaults to '*'.)

get_prefixes returns a list of arrayrefs such that each arrayref has the following entries:

0. A prefix defined by the profile.
1. The full URI is should expand to.
2. True iff the term is case-insensitive.

get_vocabulary returns the URI stem for the default vocabulary set by the profile, or undef if no such vocabulary is set by the profile.

SEE ALSO

RDF::RDFa::Parser, RDF::RDFa::Parser::Profile::Null, RDF::RDFa::Parser::Profile::XHTML, RDF::RDFa::Parser::Profile::IETFLinkTypes, RDF::RDFa::Parser::Profile::RDF, etc.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT

Copyright 2008-2011 Toby Inkster

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