Source

p5-rdf-vcard-babelfish /

Filename Size Date modified Message
lib
t
534 B
2.3 KB
3.1 KB
153 B
1.1 KB
1.3 KB
2.3 KB
72 B
NAME
    RDF::vCard::Babelfish - convert between myriad contact formats

SYNOPSIS
      use RDF::vCard::Babelfish;
      my $babelfish = RDF::vCard::Babelfish->new('HCARD' => 'VCARDXML');
      print $babelfish->convert($input_string);

QUOTES
    "And the Lord descended, and we descended with him to see the city and
    the tower which the children of men had built. And he confounded their
    language, and they no longer understood one another's speech, and they
    ceased then to build the city and the tower." *Jubilees 10:23-24*

    "The practical upshot of all this is that if you stick a Babel fish in
    your ear you can instantly understand anything in any form of language."
    *Hitchhikers 6*

    "Now it is such a bizarrely improbable coincidence that anything so
    mindboggingly useful could have evolved purely by chance that some
    thinkers have chosen to see it as the final and clinching proof of the
    non-existence of God." *Hitchhikers 6*

DESCRIPTION
    This is a sort of supplementary module to go with RDF::vCard. It adds
    some cool functionality at the cost of a few additional dependencies.
    It's a simple way to convert between the following formats:

      HCARD         input only
      JCARD         output only
      NTRIPLES
      RDFA
      RDFJSON
      RDFXML
      TURTLE
      VCARD3
      VCARD4
      VCARDXML      output only

    For the RDF-based formats, the W3C vCard vocabulary, as described in
    RDF::vCard::Exporter is expected.

    Some conversions are slightly lossy, but overall, even when chaining
    several conversions together, results are fairly good.

TODO
    Nice to have: jCard and vCardXML input; Portable Contacts.

SEE ALSO
    hCard: HTML::Microformats::Format::hCard,
    <http://microformats.org/wiki/hcard>.

    jCard: <http://microformats.org/wiki/jCard>.

    N-Triples, RDF/JSON, RDF/XML, Turtle: RDF::Trine.

    RDFa: RDF::RDFa::Parser, RDF::RDFa::Generator,
    <http://www.w3.org/Submission/vcard-rdf/>.

    vCard 3, vCard 4, vCard XML: RDF::vCard,
    <http://www.ietf.org/rfc/rfc2445.txt>.

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

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.