XML::Generator::vCard::RDF - generate RDF/XML SAX2 events for vCard 3.0
use XML::SAX::Writer; use XML::Generator::vCard::RDF; my $writer = XML::SAX::Writer->new(); my $driver = XML::Generator::vCard::RDF->new(Handler=>$writer); $driver->parse_files("test.vcf");
Generate RDF/XML SAX2 events for vCard 3.0
SAX2 events map to the Representing vCard Objects in RDF/XML W3C note:
http://www.w3.org/TR/2001/NOTE-vcard-rdf-20010222/
This method inherits from XML::SAX::Base
Generate SAX2 events for one, or more, vCard files.
Returns true or false.
Private methods are documented below in case you need to subclass this package to tweak its output.
By default this method does nothing. It is here to be subclassed.
Returns a hash ref mapping an instant messaging service type to an XML element. Default is :
{"aim" => "foaf:aimChatID", "yahoo" => "foaf:yahooChatID", "msn" => "foaf:msnChatID", "jabber" => "foaf:JabberID", "icq" => "foaf:icqChatId"}
This is called by the _render_instantmessaging method.
Returns a hash reference of prefix - URI pairs.
This package generates SAX events using the following XML namespaces :
vCard
http://www.w3.org/2001/vcard-rdf/3.0#
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
foaf:
http://xmlns.com/foaf/0.1/
geo
http://www.w3.org/2003/01/geo/wgs84_pos#
1.0
$Date: 2004/10/17 02:51:56 $
Aaron Straup Cope <ascope@cpan.org>
Text::vCard
XML::Generator::vCard
Please report all bugs via http://rt.cpan.org
Copyright (c) 2004, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.
To install XML::Generator::vCard::RDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Generator::vCard::RDF
CPAN shell
perl -MCPAN -e shell install XML::Generator::vCard::RDF
For more information on module installation, please visit the detailed CPAN module installation guide.