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.

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 and get_prefixes 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.

SEE ALSO

RDF::RDFa::Parser, RDF::RDFa::Parser::Profile::Null, RDF::RDFa::Parser::Profile::PrefixCC, RDF::RDFa::Parser::Profile::RDF.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT

Copyright 2008-2010 Toby Inkster

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