1. Toby Inkster
  2. p5-rdf-icalendar

Commits

Toby Inkster  committed e2132d6

rearrange files

  • Participants
  • Parent commits f2692ca
  • Branches RDF-iCalendar

Comments (0)

Files changed (10)

File Changes

-############################################################################
-## Changes #################################################################
-############################################################################
-
-RDF-iCalendar
-=============
-
-Created:      2011-01-21
-Home page:    <http://search.cpan.org/dist/RDF-iCalendar/>
-Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar>
-Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
-
-0.002 [2011-02-04]
- - (Addition) Support for VALARM.
- - (Addition) Support for VFREEBUSY.
- - (Addition) Support for VJOURNAL.
- - (Bugfix) Minor bugfixes and cleanups.
-
-0.001 [2011-01-23] # First release
-

File Changes.ttl

-#############################################################
-
-@prefix :        <http://usefulinc.com/ns/doap#> .
-@prefix dcs:     <http://ontologi.es/doap-changeset#> .
-@prefix dc:      <http://purl.org/dc/terms/> .
-@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
-@prefix my:      <http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/> .
-@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix toby:    <http://tobyinkster.co.uk/#> .
-@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
-
-#############################################################
-
-<>
-
-	dc:title         "Changes" ;
-	dc:description   "Revision history for Perl extension RDF::iCalendar."@en ;
-	dc:subject       my:project ;
-	dc:creator       toby:i .
-
-#############################################################
-
-my:v_0-001
-
-	a               :Version ;
-	dc:issued       "2011-01-23"^^xsd:date ;
-	:revision       "0.001"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.001.tar.gz> ;
-	rdfs:label      "First release"@en .
-
-my:v_0-002
-
-	a               :Version ;
-	dc:issued       "2011-02-04"^^xsd:date ;
-	:revision       "0.002"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.002.tar.gz> ;
-	dcs:changeset [
-		dcs:versus my:v_0-001 ;
-		dcs:item   [ rdfs:label "Minor bugfixes and cleanups." ; a dcs:Bugfix ] ; 
-		dcs:item   [ rdfs:label "Support for VALARM." ; a dcs:Addition ] ; 
-		dcs:item   [ rdfs:label "Support for VJOURNAL." ; a dcs:Addition ] ; 
-		dcs:item   [ rdfs:label "Support for VFREEBUSY." ; a dcs:Addition ] 
-		] .
-
-#############################################################
-
-my:project
-
-	a               :Project ;
-	:name           "RDF-iCalendar" ;
-	:shortdesc      "convert between RDF and iCalendar"@en ;
-	:programming-language  "Perl" ;
-	:homepage       <https://metacpan.org/release/RDF-iCalendar> ;
-	:download-page  <https://metacpan.org/release/RDF-iCalendar> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/RDF-iCalendar/> ] ;
-	:maintainer     toby:i ;
-	:developer      toby:i ;
-	:documenter     toby:i ;
-	:tester         toby:i ;
-	:created        "2011-01-21"^^xsd:date ;
-	:license        <http://dev.perl.org/licenses/> ;
-	:release        my:v_0-001 , my:v_0-002 .
-
-#############################################################
-
-toby:i
-
-	a               foaf:Person ;
-	foaf:name       "Toby Inkster" ;
-	foaf:homepage   <http://tobyinkster.co.uk/> ;
-	foaf:page       <https://metacpan.org/author/TOBYINK> ;
-	foaf:mbox       <mailto:tobyink@cpan.org> ;
-	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
-
-#############################################################

File Changes.xml

-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF xmlns:dbug="http://ontologi.es/doap-bugs#" xmlns:dc="http://purl.org/dc/terms/" xmlns:dcs="http://ontologi.es/doap-changeset#" xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
-<rdf:Description rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r0">
-	<dcs:item rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r1"/>
-	<dcs:item rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r2"/>
-	<dcs:item rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r3"/>
-	<dcs:item rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r4"/>
-	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/v_0-001"/>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r1">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Bugfix"/>
-	<rdfs:label>Minor bugfixes and cleanups.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r2">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
-	<rdfs:label>Support for VALARM.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r3">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
-	<rdfs:label>Support for VJOURNAL.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r4">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
-	<rdfs:label>Support for VFREEBUSY.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r5">
-	<doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/RDF-iCalendar/"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
-</rdf:Description>
-<rdf:Description rdf:about="file:///home/tai/src/perlmods/RDF-iCalendar/Changes.ttl">
-	<dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<dc:description xml:lang="en">Revision history for Perl extension RDF::iCalendar.</dc:description>
-	<dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/project"/>
-	<dc:title>Changes</dc:title>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/project">
-	<doap:bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar"/>
-	<doap:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-01-21</doap:created>
-	<doap:developer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:documenter rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:download-page rdf:resource="http://search.cpan.org/dist/RDF-iCalendar/"/>
-	<doap:homepage rdf:resource="http://search.cpan.org/dist/RDF-iCalendar/"/>
-	<doap:license rdf:resource="http://dev.perl.org/licenses/"/>
-	<doap:maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:name>RDF-iCalendar</doap:name>
-	<doap:programming-language>Perl</doap:programming-language>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/v_0-001"/>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/v_0-002"/>
-	<doap:repository rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r5"/>
-	<doap:shortdesc xml:lang="en">convert between RDF and iCalendar</doap:shortdesc>
-	<doap:tester rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Project"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/v_0-001">
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-01-23</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.001.tar.gz"/>
-	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.001</doap:revision>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-	<rdfs:label xml:lang="en">First release</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/v_0-002">
-	<dcs:changeset rdf:nodeID="r729F2E2030AB11E095DB91DB0C5F65C8r0"/>
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-02-04</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.002.tar.gz"/>
-	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.002</doap:revision>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-</rdf:Description>
-<rdf:Description xmlns:ns1="http://www.w3.org/2002/07/owl#" rdf:about="http://tobyinkster.co.uk/#i">
-	<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
-	<ns1:sameAs rdf:resource="http://purl.org/NET/cpan-uri/person/tobyink"/>
-	<foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
-	<foaf:mbox rdf:resource="mailto:tobyink@cpan.org"/>
-	<foaf:name>Toby Inkster</foaf:name>
-	<foaf:page rdf:resource="http://search.cpan.org/~tobyink/"/>
-</rdf:Description>
-</rdf:RDF>

File MANIFEST.SKIP

-^MANIFEST.bak$
-^Makefile.old$
-^Makefile$
-^blib/
-^pm_to_blib
-^blibdirs
-\.svn
-^example.*\.pl$
-^[^/]+\.(tar\.gz|tar\.bz2|tgz|tbz2|tbz|zip|tar)$
-^MYMETA.yml

File META.yml

----
-abstract: 'convert between RDF and iCalendar'
-author:
-  - 'Toby Inkster <tobyink@cpan.org>'
-build_requires:
-  ExtUtils::MakeMaker: 6.42
-  Module::Signature: 0.66
-  Test::More: 0.61
-configure_requires:
-  ExtUtils::MakeMaker: 6.42
-distribution_type: module
-generated_by: 'Module::Install version 1.00'
-keywords:
-  - RDF
-  - Semantic
-  - Web
-  - SemWeb
-  - vCalendar
-  - iCalendar
-  - iCal
-  - Directory
-  - Event
-  - Todo
-  - hCalendar
-  - hCal
-license: perl
-meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
-name: RDF-iCalendar
-no_index:
-  directory:
-    - inc
-    - t
-requires:
-  DateTime: 0
-  MIME::Base64: 0
-  RDF::Trine: 0.130
-  RDF::TrineShortcuts: 0.100
-  RDF::vCard: 0.004
-  Scalar::Util: 0
-  URI: 0
-  common::sense: 0
-  namespace::clean: 0
-  perl: 5.8.0
-resources:
-  bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar
-  homepage: http://search.cpan.org/dist/RDF-iCalendar/
-  license: http://dev.perl.org/licenses/
-  repository: http://goddamn.co.uk/viewvc/perlmods/RDF-iCalendar/
-version: 0.002

File README

-NAME
-    RDF::iCalendar - convert between RDF and iCalendar
-
-DESCRIPTION
-    This module doesn't do anything itself; it just loads
-    RDF::iCalendar::Exporter for you.
-
-  RDF::iCalendar::Exporter
-    RDF::iCalendar::Exporter takes some RDF using the W3C's iCalendar
-    vocabulary, and outputs RDF::iCalendar::Entity objects.
-
-  RDF::iCalendar::Importer
-    RDF::vCard::Importer will do the reverse, but doesn't exist yet.
-
-  RDF::iCalendar::Entity
-    An RDF::iCalendar::Entity objects is an individual iCalendar calendar.
-    It overloads stringification, so just treat it like a string.
-
-  RDF::iCalendar::Line
-    RDF::iCalendar::Line is internal fu that you probably don't want to
-    touch.
-
-BUGS
-    Please report any bugs to
-    <https://rt.cpan.org/Public/Dist/Display.html?Name=RDF-iCalendar>.
-
-SEE ALSO
-    <http://www.w3.org/TR/rdfcal/>.
-
-    <http://www.perlrdf.org/>.
-
-    RDF::vCard.
-
-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.
-

File TODO

View file
 * Need to do more testing and polishing.
 
 * And of course iCalendar -> RDF.
-* Add keywords to Makefile.PL

File example1.pl

-use lib "lib";
-use lib "../HTML-HTML5-Parser/lib";
-use lib "../HTML-Microformats/lib";
-use lib "../RDF-vCard/lib";
-
-use HTML::Microformats;
-use RDF::TrineShortcuts;
-use RDF::iCalendar::Exporter;
-
-my $hcalendar = <<'HTML';
-
-	<div class="hentry" id="fooble">
-		<span class="entry-title">Foo</span>
-		<span class="published updated">2011-02-02</span>
-	</div>
-	
-	<div class="vfreebusy">
-		<b class="summary">I'm busy some times</b>
-		<i class="freebusy">
-			<u class="fbtype">busy</u>
-			<b class="value">19980415T133000Z/19980415T170000Z</b>
-			<b class="value">19990415T133000Z/19990415T170000Z</b>
-		</i>
-	</div>
-
-  <div class="vevent">
-    <h1 class="uid" id="xmas">
-      <span class="summary">Christmas</span> Schedule
-    </h1>
-    <abbr class="dtstart" title="0001-12-25" style="display:none"></abbr>
-    <p class="comment rrule"><span class="freq">Yearly</span>
-    period of festive merriment.</p>
-    <div class="attendee vcard">
-      <b class="role">
-        <abbr title="REQ-PARTICIPANT">Required for merriment:</abbr>
-      </b><br>
-      <span class="fn">
-        <span class="honorific-prefix nickname">Santa</span>
-        <span class="given-name">Claus</span>
-      </span>
-      (<span class="adr><span class="region">North Pole</span></span>)
-    </div>
-	 <p class="location geo">12;34</p>
-  </div>
-  
-    <div class="vtodo">
-      <h2 class="uid" id="shopping">Shopping</h2>
-      <abbr class="dtstart" title="2008-12-01">In December</abbr>, don't forget
-      to <span class="summary">buy everyone their presents</span> before the
-      shops shut on <abbr class="due" title="2008-12-24T16:00:00">Christmas
-      Eve</abbr>!
-      <a class="attach" rel="enclosure" href="data:,Perl%20is%20good">attachment</a>
-		<div class="valarm">
-			<span class="summary">Reminder!</span>
-			<span class="trigger">-PT12H</span>
-		</div>
-    </div>
-    
-    <div class="vevent">
-      <h2 id="jones" class="uid summary">Jones' Christmas Lunch</h2>
-      <p class="comment">The Joneses have been having a wonderful lunch 
-      <abbr class="rrule" title="FREQ=YEARLY">every year</abbr> at
-      <abbr class="dtstart" title="2003-12-25T13:00:00Z">1pm for the last
-      few years</abbr>.</p>
-      <p><span class="attendee">Everyone</span>'s invited.</p>
-      <i class="category">Foo</i>
-      <i class="category">Bar</i>
-      <i class="category">Baz</i>
-      <a rel="tag" href="/tag/Foo">Foo</a>
-		<div class="location vcard">
-			 <p class="adr">
-				<span class="fn extended-address">Jones Household</span>
-				<span class="locality">Lewes</span>
-				<span class="region">East Sussex</span>
-			 </p>
-		 </div>
-    </div>
-  
-  <div class="vevent">
-    <h2 class="summary">Boxing Day</h2>
-    <p class="comment">
-      <abbr class="rrule" title="FREQ=YEARLY">Every year</abbr>
-      <abbr class="dtstart" title="0001-12-26">the day after</abbr>
-      <a class="related-to" href="#xmas" rel="vcalendar-sibling">Christmas</a>
-      is Boxing Day. Nobody knows quite why this day is called that.
-    </p>
-	 <p class="contact organizer attendee vcard">
-		<a class="fn email" href="mailto:alice@example.net">Alice Jones</a>
-		<span class="role">required</span>
-		<span class="sent-by vcard">
-			<a class="fn email" href="mailto:bob@example.net">Bob Jones</a>
-		</span>
-	 </p>
-	 <p class="location adr">
-		<span class="locality">Lewes</span>
-		<span class="region">East Sussex</span>
-	 </p>
-  </div>
-  
-  <div class="vevent">
-  <p>Our organisation has been offering a series of <span class="summary"
-  >summer lectures</span> since
-  <abbr class="dtstart" title="19970105T083000">January 1997</abbr>. They
-are
-  <span class="rrule">
-    held <span class="freq">yearly</span>,
-    every <span class="interval">2</span>nd year (1999, 2001, etc),
-    every <span class="byday">Sunday</span>
-    in January <abbr class="bymonth" title="1" style="display:none"></abbr>
-    at <span class="byhour">8</span>:<span class="byminute">30</span> and
-    repeated at <span class="byhour">9</span>:30.
-  </span>
-</p>
-</div>
-
-HTML
-
-my $doc = HTML::Microformats->new_document($hcalendar, 'http://hcal.example.net/')->assume_all_profiles;
-my @objects = $doc->objects('hCalendar');
-print $objects[0]->to_icalendar;
-
-#print rdf_string($doc->model =>'RDFXML');
-#print "========\n";
-#my @cals = RDF::iCalendar::Exporter->new->export_calendars($doc->model);
-#print "========\n";
-#print $_ foreach @cals ;
-

File examples/example1.pl

View file
+use lib "lib";
+use lib "../HTML-HTML5-Parser/lib";
+use lib "../HTML-Microformats/lib";
+use lib "../RDF-vCard/lib";
+
+use HTML::Microformats;
+use RDF::TrineShortcuts;
+use RDF::iCalendar::Exporter;
+
+my $hcalendar = <<'HTML';
+
+	<div class="hentry" id="fooble">
+		<span class="entry-title">Foo</span>
+		<span class="published updated">2011-02-02</span>
+	</div>
+	
+	<div class="vfreebusy">
+		<b class="summary">I'm busy some times</b>
+		<i class="freebusy">
+			<u class="fbtype">busy</u>
+			<b class="value">19980415T133000Z/19980415T170000Z</b>
+			<b class="value">19990415T133000Z/19990415T170000Z</b>
+		</i>
+	</div>
+
+  <div class="vevent">
+    <h1 class="uid" id="xmas">
+      <span class="summary">Christmas</span> Schedule
+    </h1>
+    <abbr class="dtstart" title="0001-12-25" style="display:none"></abbr>
+    <p class="comment rrule"><span class="freq">Yearly</span>
+    period of festive merriment.</p>
+    <div class="attendee vcard">
+      <b class="role">
+        <abbr title="REQ-PARTICIPANT">Required for merriment:</abbr>
+      </b><br>
+      <span class="fn">
+        <span class="honorific-prefix nickname">Santa</span>
+        <span class="given-name">Claus</span>
+      </span>
+      (<span class="adr><span class="region">North Pole</span></span>)
+    </div>
+	 <p class="location geo">12;34</p>
+  </div>
+  
+    <div class="vtodo">
+      <h2 class="uid" id="shopping">Shopping</h2>
+      <abbr class="dtstart" title="2008-12-01">In December</abbr>, don't forget
+      to <span class="summary">buy everyone their presents</span> before the
+      shops shut on <abbr class="due" title="2008-12-24T16:00:00">Christmas
+      Eve</abbr>!
+      <a class="attach" rel="enclosure" href="data:,Perl%20is%20good">attachment</a>
+		<div class="valarm">
+			<span class="summary">Reminder!</span>
+			<span class="trigger">-PT12H</span>
+		</div>
+    </div>
+    
+    <div class="vevent">
+      <h2 id="jones" class="uid summary">Jones' Christmas Lunch</h2>
+      <p class="comment">The Joneses have been having a wonderful lunch 
+      <abbr class="rrule" title="FREQ=YEARLY">every year</abbr> at
+      <abbr class="dtstart" title="2003-12-25T13:00:00Z">1pm for the last
+      few years</abbr>.</p>
+      <p><span class="attendee">Everyone</span>'s invited.</p>
+      <i class="category">Foo</i>
+      <i class="category">Bar</i>
+      <i class="category">Baz</i>
+      <a rel="tag" href="/tag/Foo">Foo</a>
+		<div class="location vcard">
+			 <p class="adr">
+				<span class="fn extended-address">Jones Household</span>
+				<span class="locality">Lewes</span>
+				<span class="region">East Sussex</span>
+			 </p>
+		 </div>
+    </div>
+  
+  <div class="vevent">
+    <h2 class="summary">Boxing Day</h2>
+    <p class="comment">
+      <abbr class="rrule" title="FREQ=YEARLY">Every year</abbr>
+      <abbr class="dtstart" title="0001-12-26">the day after</abbr>
+      <a class="related-to" href="#xmas" rel="vcalendar-sibling">Christmas</a>
+      is Boxing Day. Nobody knows quite why this day is called that.
+    </p>
+	 <p class="contact organizer attendee vcard">
+		<a class="fn email" href="mailto:alice@example.net">Alice Jones</a>
+		<span class="role">required</span>
+		<span class="sent-by vcard">
+			<a class="fn email" href="mailto:bob@example.net">Bob Jones</a>
+		</span>
+	 </p>
+	 <p class="location adr">
+		<span class="locality">Lewes</span>
+		<span class="region">East Sussex</span>
+	 </p>
+  </div>
+  
+  <div class="vevent">
+  <p>Our organisation has been offering a series of <span class="summary"
+  >summer lectures</span> since
+  <abbr class="dtstart" title="19970105T083000">January 1997</abbr>. They
+are
+  <span class="rrule">
+    held <span class="freq">yearly</span>,
+    every <span class="interval">2</span>nd year (1999, 2001, etc),
+    every <span class="byday">Sunday</span>
+    in January <abbr class="bymonth" title="1" style="display:none"></abbr>
+    at <span class="byhour">8</span>:<span class="byminute">30</span> and
+    repeated at <span class="byhour">9</span>:30.
+  </span>
+</p>
+</div>
+
+HTML
+
+my $doc = HTML::Microformats->new_document($hcalendar, 'http://hcal.example.net/')->assume_all_profiles;
+my @objects = $doc->objects('hCalendar');
+print $objects[0]->to_icalendar;
+
+#print rdf_string($doc->model =>'RDFXML');
+#print "========\n";
+#my @cals = RDF::iCalendar::Exporter->new->export_calendars($doc->model);
+#print "========\n";
+#print $_ foreach @cals ;
+

File meta/changes.ttl

View file
+#############################################################
+
+@prefix :        <http://usefulinc.com/ns/doap#> .
+@prefix dcs:     <http://ontologi.es/doap-changeset#> .
+@prefix dc:      <http://purl.org/dc/terms/> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix toby:    <http://tobyinkster.co.uk/#> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+
+#############################################################
+
+<>
+
+	dc:title         "Changes" ;
+	dc:description   "Revision history for Perl extension RDF::iCalendar."@en ;
+	dc:subject       my:project ;
+	dc:creator       toby:i .
+
+#############################################################
+
+my:v_0-001
+
+	a               :Version ;
+	dc:issued       "2011-01-23"^^xsd:date ;
+	:revision       "0.001"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.001.tar.gz> ;
+	rdfs:label      "First release"@en .
+
+my:v_0-002
+
+	a               :Version ;
+	dc:issued       "2011-02-04"^^xsd:date ;
+	:revision       "0.002"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.002.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-001 ;
+		dcs:item   [ rdfs:label "Minor bugfixes and cleanups." ; a dcs:Bugfix ] ; 
+		dcs:item   [ rdfs:label "Support for VALARM." ; a dcs:Addition ] ; 
+		dcs:item   [ rdfs:label "Support for VJOURNAL." ; a dcs:Addition ] ; 
+		dcs:item   [ rdfs:label "Support for VFREEBUSY." ; a dcs:Addition ] 
+		] .
+
+#############################################################
+
+my:project
+
+	a               :Project ;
+	:name           "RDF-iCalendar" ;
+	:shortdesc      "convert between RDF and iCalendar"@en ;
+	:programming-language  "Perl" ;
+	:homepage       <https://metacpan.org/release/RDF-iCalendar> ;
+	:download-page  <https://metacpan.org/release/RDF-iCalendar> ;
+	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar> ;
+	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/RDF-iCalendar/> ] ;
+	:maintainer     toby:i ;
+	:developer      toby:i ;
+	:documenter     toby:i ;
+	:tester         toby:i ;
+	:created        "2011-01-21"^^xsd:date ;
+	:license        <http://dev.perl.org/licenses/> ;
+	:release        my:v_0-001 , my:v_0-002 .
+
+#############################################################
+
+toby:i
+
+	a               foaf:Person ;
+	foaf:name       "Toby Inkster" ;
+	foaf:homepage   <http://tobyinkster.co.uk/> ;
+	foaf:page       <https://metacpan.org/author/TOBYINK> ;
+	foaf:mbox       <mailto:tobyink@cpan.org> ;
+	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
+
+#############################################################