Debian Codegraph @

README

raw
1 NAME
2 RDF::vCard - convert between RDF and vCard
3
4 SYNOPSIS
5 use RDF::vCard;
6 use RDF::TrineShortcuts qw(rdf_string);
7
8 my $input = "http://example.com/contact-data.rdf";
9 my $exporter = RDF::vCard::Exporter->new;
10
11 my $data = join '', $exporter->export_cards($input);
12 print $data; # vCard 3.0 data
13
14 my $importer = RDF::vCard::Importer->new;
15 $importer->import_string($data);
16 print rdf_string($importer->model => 'RDFXML');
17
18 DESCRIPTION
19 This module doesn't do anything itself; it just loads RDF::vCard::Exporter
20 and RDF::vCard::Importer for you.
21
22 RDF::vCard::Exporter
23 RDF::vCard::Exporter takes some RDF using the W3C's vCard vocabulary, and
24 outputs RDF::vCard::Entity objects.
25
26 RDF::vCard::Importer
27 RDF::vCard::Importer does the reverse.
28
29 RDF::vCard::Entity
30 An RDF::vCard::Entity objects is an individual vCard. It overloads
31 stringification, so just treat it like a string.
32
33 RDF::vCard::Entity::WithXmlSupport
34 RDF::vCard::Entity::WithXmlSupport is a subclass of RDF::vCard::Entity,
35 with a `to_xml` method. It requires XML::LibXML to be installed and
36 working. The importer and exporter will try to create these if possible.
37
38 RDF::vCard::Line
39 RDF::vCard::Line is internal fu that you probably don't want to touch.
40
41 BUGS
42 If your RDF asserts that Alice is Bob's AGENT and Bob is Alice's AGENT,
43 then RDF::vCard::Export will eat your face. Don't do it.
44
45 Please report any other bugs to
46 <https://rt.cpan.org/Public/Dist/Display.html?Name=RDF-vCard>.
47
48 SEE ALSO
49 <http://www.w3.org/Submission/vcard-rdf/>.
50
51 <http://perlrdf.org/>.
52
53 RDF::vCard::Babelfish.
54
55 AUTHOR
56 Toby Inkster <[email protected]>.
57
58 COPYRIGHT
59 Copyright 2011 Toby Inkster
60
61 This library is free software; you can redistribute it and/or modify it
62 under the same terms as Perl itself.
63