Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rdf::icalendar::exporter(3pm) [debian man page]

RDF::iCalendar::Exporter(3pm)				User Contributed Perl Documentation			     RDF::iCalendar::Exporter(3pm)

NAME
RDF::iCalendar::Exporter - export RDF data to iCalendar format SYNOPSIS
use RDF::iCalendar; my $input = "http://example.com/calendar-data.ics"; my $exporter = RDF::iCalendar::Exporter->new; print $_ foreach $exporter->export_calendars($input); DESCRIPTION
This module reads RDF and writes iCalendar files. This is a subclass of RDF::vCard::Exporter, so it can also export vCards. Constructor o "new(%options)" Returns a new RDF::iCalendar::Exporter object. There are no valid options at the moment - the hash is reserved for future use. Methods o "export_calendars($input, %options)" Returns a list of iCalendars found in the input, in no particular order. The input may be a URI, file name, RDF::Trine::Model or anything else that can be handled by the "rdf_parse" method of RDF::TrineShortcuts. Each item in the list returned is an RDF::iCalendar::Entity, though that class overloads stringification, so you can just treat each item as a string mostly. o "export_calendar($input, $subject, %options)" As per "export_calendars" but exports just a single calendar. The subject provided must be an RDF::Trine::Node::Blank or RDF::Trine::Node::Resource of type icaltzd:Vcalendar. o "export_component($input, $subject, %options)" Exports a component from a calendar - e.g. a single VEVENT The subject provided must be an RDF::Trine::Node::Blank or RDF::Trine::Node::Resource of type icaltzd:Vevent, icaltzd:Vtodo or similar. o "export_cards($input, %options)" See RDF::vCard::Exporter. o "export_card($input, $subject, %options)" See RDF::vCard::Exporter. RDF Input Input is expected to use the newer of the 2005 revision of the W3C's vCard vocabulary <http://www.w3.org/TR/rdfcal/>. (Note that even though this was revised in 2005, the term URIs include "2002" in them.) Some extensions from the namespace <http://buzzword.org.uk/rdf/icaltzdx#> are also supported. iCalendar Output The output of this module aims at iCalendar (RFC 2445) compliance. In the face of weird input data though, (e.g. an DTSTART property that is a URI instead of a literal) it can pretty easily descend into exporting junk, non-compliant iCalendars. The output has barely been tested in any iCalendar-supporting software, so beware. SEE ALSO
RDF::iCalendar. RDF::vCard, HTML::Microformats, RDF::TrineShortcuts. <http://www.w3.org/TR/rdfcal/>. <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. perl v5.14.2 2012-06-23 RDF::iCalendar::Exporter(3pm)

Check Out this Related Man Page

XML::Atom::FromOWL(3pm) 				User Contributed Perl Documentation				   XML::Atom::FromOWL(3pm)

NAME
XML::Atom::FromOWL - export RDF data to Atom SYNOPSIS
use LWP::UserAgent; use XML::Atom::OWL; use XML::Atom::FromOWL; my $ua = LWP::UserAgent->new; my $r = $ua->get('http://intertwingly.net/blog/index.atom'); my $atomowl = XML::Atom::OWL->new($r->decoded_content, $r->base); my $model = $atomowl->consume->graph; ## an RDF::Trine::Model my $exporter = XML::Atom::FromOWL->new; print $_->as_xml foreach $exporter->export_feeds($model); DESCRIPTION
This module reads RDF and writes Atom feeds. It does the reverse of XML::Atom::OWL. Constructor o "new(%options)" Returns a new XML::Atom::FromOWL object. There are no valid options at the moment - the hash is reserved for future use. Methods o "export_feeds($input, %options)" Returns a list of feeds found in the input, in no particular order. The input may be a URI, file name, RDF::Trine::Model or anything else that can be handled by the "parse" function of RDF::TrineX::Functions. Each item in the list returned is an XML::Atom::Feed. o "export_feed($input, $subject, %options)" As per "export_feeds" but exports just a single feed. The subject provided must be an RDF::Trine::Node::Blank or RDF::Trine::Node::Resource of type awol:Feed. o "export_entries($input, %options)" Returns a list of entries found in the input, in no particular order. The input may be a URI, file name, RDF::Trine::Model or anything else that can be handled by the "parse" function of RDF::TrineX::Functions. Each item in the list returned is an XML::Atom::Entry. o "export_entry($input, $subject, %options)" As per "export_entry" but exports just a single entry. The subject provided must be an RDF::Trine::Node::Blank or RDF::Trine::Node::Resource of type awol:Entry. RDF Input Input is expected to use AtomOwl http://bblfish.net/work/atom-owl/2006-06-06/# <http://bblfish.net/work/atom-owl/2006-06-06/#>. Feed Output This module doesn't attempt to enforce many of OWL's semantic constraints (e.g. it doesn't enforce that an entry has only one title). It relies on XML::Atom::Feed and XML::Atom::Entry for that sort of thing, but if your input is sensible that shouldn't be a problem. SEE ALSO
XML::Atom::OWL, HTML::Microformats, RDF::TrineX::Functions, XML::Atom::Feed, XML::Atom::Entry. http://bblfish.net/work/atom-owl/2006-06-06/ <http://bblfish.net/work/atom-owl/2006-06-06/>. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT AND LICENCE
This software is copyright (c) 2011-2012 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-05-30 XML::Atom::FromOWL(3pm)
Man Page