Toby Inkster > RDF-vCard-0.010 > RDF::vCard::Importer

Download:
RDF-vCard-0.010.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.010   Source   Latest Release: RDF-vCard-0.012

NAME ^

RDF::vCard::Importer - import RDF data from vCard format

SYNOPSIS ^

 use RDF::vCard;
 use RDF::TrineShortcuts qw':all';
 
 my $importer = RDF::vCard::Importer->new;
 print $_
        foreach $importer->import_file('contacts.vcf');
 print rdf_string($importer->model => 'RDFXML');

DESCRIPTION ^

This module reads vCards and writes RDF.

Constructor

Methods

vCard Input

vCard 3.0 should be supported fairly completely. Some vCard 4.0 constructs will also work.

Much of the heavy lifting is performed by Text::vFile::asData, so this module may be affected by bugs in that distribution.

RDF Output

Output uses the newer of the 2010 revision of the W3C's vCard vocabulary http://www.w3.org/Submission/vcard-rdf/. (Note that even though this was revised in 2010, the term URIs include "2006" in them.)

Some extensions from the namespace http://buzzword.org.uk/rdf/vcardx# are also output.

The AGENT property is currently omitted from output. This will be added in a later version.

SEE ALSO ^

RDF::vCard.

http://www.w3.org/Submission/vcard-rdf/.

http://www.perlrdf.org/.

AUTHOR ^

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT ^

Copyright 2011 Toby Inkster

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

syntax highlighting: