http://git-wip-us.apache.org/repos/asf/any23/blob/19d85f2f/test-resources/src/test/resources/calendar.xml/rfc6321-example1-expected.nquads
----------------------------------------------------------------------
diff --git 
a/test-resources/src/test/resources/calendar.xml/rfc6321-example1-expected.nquads
 
b/test-resources/src/test/resources/calendar.xml/rfc6321-example1-expected.nquads
new file mode 100644
index 0000000..779b6de
--- /dev/null
+++ 
b/test-resources/src/test/resources/calendar.xml/rfc6321-example1-expected.nquads
@@ -0,0 +1,26 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+_:node1clu4bdubx2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Vcalendar> <http://bob.example.com/> .
+_:node1clu4bdubx2 <http://www.w3.org/2002/12/cal/icaltzd#calscale> "GREGORIAN" 
<http://bob.example.com/> .
+_:node1clu4bdubx2 <http://www.w3.org/2002/12/cal/icaltzd#prodid> "-//Example 
Inc.//Example Calendar//EN" <http://bob.example.com/> .
+_:node1clu4bdubx2 <http://www.w3.org/2002/12/cal/icaltzd#component> 
_:node1clu4bdubx3 <http://bob.example.com/> .
+_:node1clu4bdubx3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Vevent> <http://bob.example.com/> .
+_:node1clu4bdubx3 <http://www.w3.org/2002/12/cal/icaltzd#dtstamp> 
"2008-02-05T19:12:24Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4bdubx3 <http://www.w3.org/2002/12/cal/icaltzd#dtstart> 
"2008-10-06"^^<http://www.w3.org/2001/XMLSchema#date> <http://bob.example.com/> 
.
+_:node1clu4bdubx3 <http://www.w3.org/2002/12/cal/icaltzd#summary> "Planning 
meeting" <http://bob.example.com/> .
+_:node1clu4bdubx3 <http://www.w3.org/2002/12/cal/icaltzd#uid> 
"4088E990AD89CB3DBB484909" <http://bob.example.com/> .

http://git-wip-us.apache.org/repos/asf/any23/blob/19d85f2f/test-resources/src/test/resources/calendar.xml/rfc6321-example1.xml
----------------------------------------------------------------------
diff --git 
a/test-resources/src/test/resources/calendar.xml/rfc6321-example1.xml 
b/test-resources/src/test/resources/calendar.xml/rfc6321-example1.xml
new file mode 100755
index 0000000..2c1f069
--- /dev/null
+++ b/test-resources/src/test/resources/calendar.xml/rfc6321-example1.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
+       <vcalendar>
+               <properties>
+                       <calscale>
+                               <text>GREGORIAN</text>
+                       </calscale>
+                       <prodid>
+                               <text>-//Example Inc.//Example 
Calendar//EN</text>
+                       </prodid>
+                       <version>
+                               <text>2.0</text>
+                       </version>
+               </properties>
+               <components>
+                       <vevent>
+                               <properties>
+                                       <dtstamp>
+                                               
<date-time>2008-02-05T19:12:24Z</date-time>
+                                       </dtstamp>
+                                       <dtstart>
+                                               <date>2008-10-06</date>
+                                       </dtstart>
+                                       <summary>
+                                               <text>Planning meeting</text>
+                                       </summary>
+                                       <uid>
+                                               
<text>4088E990AD89CB3DBB484909</text>
+                                       </uid>
+                               </properties>
+                       </vevent>
+               </components>
+       </vcalendar>
+</icalendar>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/any23/blob/19d85f2f/test-resources/src/test/resources/calendar.xml/rfc6321-example2-expected.nquads
----------------------------------------------------------------------
diff --git 
a/test-resources/src/test/resources/calendar.xml/rfc6321-example2-expected.nquads
 
b/test-resources/src/test/resources/calendar.xml/rfc6321-example2-expected.nquads
new file mode 100644
index 0000000..70ebe15
--- /dev/null
+++ 
b/test-resources/src/test/resources/calendar.xml/rfc6321-example2-expected.nquads
@@ -0,0 +1,75 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+_:node1clu4e12ox2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Vcalendar> <http://bob.example.com/> .
+_:node1clu4e12ox2 <http://www.w3.org/2002/12/cal/icaltzd#prodid> "-//Example 
Inc.//Example Client//EN" <http://bob.example.com/> .
+_:node1clu4e12ox2 <http://www.w3.org/2002/12/cal/icaltzd#component> 
_:node1clu4e12ox3 <http://bob.example.com/> .
+_:node1clu4e12ox3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Vtimezone> <http://bob.example.com/> .
+_:node1clu4e12ox3 <http://www.w3.org/2002/12/cal/icaltzd#lastModified> 
"2004-01-10T03:28:45Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox3 <http://www.w3.org/2002/12/cal/icaltzd#tzid> "US/Eastern" 
<http://bob.example.com/> .
+_:node1clu4e12ox3 <http://www.w3.org/2002/12/cal/icaltzd#daylight> 
_:node1clu4e12ox4 <http://bob.example.com/> .
+_:node1clu4e12ox4 <http://www.w3.org/2002/12/cal/icaltzd#dtstart> 
"2000-04-04T02:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox4 <http://www.w3.org/2002/12/cal/icaltzd#rrule> 
_:node1clu4e12ox5 <http://bob.example.com/> .
+_:node1clu4e12ox5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Value_RECUR> <http://bob.example.com/> .
+_:node1clu4e12ox5 <http://www.w3.org/2002/12/cal/icaltzd#freq> "YEARLY" 
<http://bob.example.com/> .
+_:node1clu4e12ox5 <http://www.w3.org/2002/12/cal/icaltzd#byday> "1SU" 
<http://bob.example.com/> .
+_:node1clu4e12ox5 <http://www.w3.org/2002/12/cal/icaltzd#bymonth> 
"4"^^<http://www.w3.org/2001/XMLSchema#int> <http://bob.example.com/> .
+_:node1clu4e12ox4 <http://www.w3.org/2002/12/cal/icaltzd#tzname> "EDT" 
<http://bob.example.com/> .
+_:node1clu4e12ox4 <http://www.w3.org/2002/12/cal/icaltzd#tzoffsetfrom> 
"-05:00" <http://bob.example.com/> .
+_:node1clu4e12ox4 <http://www.w3.org/2002/12/cal/icaltzd#tzoffsetto> "-04:00" 
<http://bob.example.com/> .
+_:node1clu4e12ox3 <http://www.w3.org/2002/12/cal/icaltzd#standard> 
_:node1clu4e12ox6 <http://bob.example.com/> .
+_:node1clu4e12ox6 <http://www.w3.org/2002/12/cal/icaltzd#dtstart> 
"2000-10-26T02:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox6 <http://www.w3.org/2002/12/cal/icaltzd#rrule> 
_:node1clu4e12ox7 <http://bob.example.com/> .
+_:node1clu4e12ox7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Value_RECUR> <http://bob.example.com/> .
+_:node1clu4e12ox7 <http://www.w3.org/2002/12/cal/icaltzd#freq> "YEARLY" 
<http://bob.example.com/> .
+_:node1clu4e12ox7 <http://www.w3.org/2002/12/cal/icaltzd#byday> "-1SU" 
<http://bob.example.com/> .
+_:node1clu4e12ox7 <http://www.w3.org/2002/12/cal/icaltzd#bymonth> 
"10"^^<http://www.w3.org/2001/XMLSchema#int> <http://bob.example.com/> .
+_:node1clu4e12ox6 <http://www.w3.org/2002/12/cal/icaltzd#tzname> "EST" 
<http://bob.example.com/> .
+_:node1clu4e12ox6 <http://www.w3.org/2002/12/cal/icaltzd#tzoffsetfrom> 
"-04:00" <http://bob.example.com/> .
+_:node1clu4e12ox6 <http://www.w3.org/2002/12/cal/icaltzd#tzoffsetto> "-05:00" 
<http://bob.example.com/> .
+_:node1clu4e12ox2 <http://www.w3.org/2002/12/cal/icaltzd#component> 
_:node1clu4e12ox8 <http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Vevent> <http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#dtstamp> 
"2006-02-06T00:11:21Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#dtstart> 
_:node1clu4e12ox9 <http://bob.example.com/> .
+_:node1clu4e12ox9 <http://www.w3.org/2002/12/cal/icaltzd#tzid> "US/Eastern" 
<http://bob.example.com/> .
+_:node1clu4e12ox9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> 
"2006-01-02T12:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#duration> 
"PT1H"^^<http://www.w3.org/2001/XMLSchema#duration> <http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#rrule> 
_:node1clu4e12ox10 <http://bob.example.com/> .
+_:node1clu4e12ox10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Value_RECUR> <http://bob.example.com/> .
+_:node1clu4e12ox10 <http://www.w3.org/2002/12/cal/icaltzd#freq> "DAILY" 
<http://bob.example.com/> .
+_:node1clu4e12ox10 <http://www.w3.org/2002/12/cal/icaltzd#count> 
"5"^^<http://www.w3.org/2001/XMLSchema#int> <http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#rdate> 
_:node1clu4e12ox11 <http://bob.example.com/> .
+_:node1clu4e12ox11 <http://www.w3.org/2002/12/cal/icaltzd#tzid> "US/Eastern" 
<http://bob.example.com/> .
+_:node1clu4e12ox11 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> 
_:node1clu4e12ox12 <http://bob.example.com/> .
+_:node1clu4e12ox12 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Value_PERIOD> <http://bob.example.com/> .
+_:node1clu4e12ox12 <http://www.w3.org/2002/12/cal/icaltzd#dtstart> 
"2006-01-02T15:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox12 <http://www.w3.org/2002/12/cal/icaltzd#duration> 
"PT2H"^^<http://www.w3.org/2001/XMLSchema#duration> <http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#summary> "Event #2" 
<http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#description> "We are 
having a meeting all this week at 12pm for one hour, with an additional meeting 
on the first day 2 hours long.\nPlease bring your own lunch for the 12 pm 
meetings." <http://bob.example.com/> .
+_:node1clu4e12ox8 <http://www.w3.org/2002/12/cal/icaltzd#uid> 
"[email protected]" <http://bob.example.com/> .
+_:node1clu4e12ox2 <http://www.w3.org/2002/12/cal/icaltzd#component> 
_:node1clu4e12ox13 <http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/2002/12/cal/icaltzd#Vevent> <http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/2002/12/cal/icaltzd#dtstamp> 
"2006-02-06T00:11:21Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/2002/12/cal/icaltzd#dtstart> 
_:node1clu4e12ox14 <http://bob.example.com/> .
+_:node1clu4e12ox14 <http://www.w3.org/2002/12/cal/icaltzd#tzid> "US/Eastern" 
<http://bob.example.com/> .
+_:node1clu4e12ox14 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> 
"2006-01-04T14:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/2002/12/cal/icaltzd#duration> 
"PT1H"^^<http://www.w3.org/2001/XMLSchema#duration> <http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/2002/12/cal/icaltzd#recurrenceId> 
_:node1clu4e12ox15 <http://bob.example.com/> .
+_:node1clu4e12ox15 <http://www.w3.org/2002/12/cal/icaltzd#tzid> "US/Eastern" 
<http://bob.example.com/> .
+_:node1clu4e12ox15 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> 
"2006-01-04T12:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> 
<http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/2002/12/cal/icaltzd#summary> "Event #2 
bis" <http://bob.example.com/> .
+_:node1clu4e12ox13 <http://www.w3.org/2002/12/cal/icaltzd#uid> 
"[email protected]" <http://bob.example.com/> .

http://git-wip-us.apache.org/repos/asf/any23/blob/19d85f2f/test-resources/src/test/resources/calendar.xml/rfc6321-example2.xml
----------------------------------------------------------------------
diff --git 
a/test-resources/src/test/resources/calendar.xml/rfc6321-example2.xml 
b/test-resources/src/test/resources/calendar.xml/rfc6321-example2.xml
new file mode 100755
index 0000000..adcc49e
--- /dev/null
+++ b/test-resources/src/test/resources/calendar.xml/rfc6321-example2.xml
@@ -0,0 +1,149 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
+       <vcalendar>
+               <properties>
+                       <prodid>
+                               <text>-//Example Inc.//Example Client//EN</text>
+                       </prodid>
+                       <version>
+                               <text>2.0</text>
+                       </version>
+               </properties>
+               <components>
+                       <vevent>
+                               <properties>
+                                       <dtstamp>
+                                               
<date-time>2006-02-06T00:11:21Z</date-time>
+                                       </dtstamp>
+                                       <dtstart>
+                                               <parameters>
+                                                       <tzid>
+                                                               
<text>US/Eastern</text>
+                                                       </tzid>
+                                               </parameters>
+                                               
<date-time>2006-01-02T12:00:00</date-time>
+                                       </dtstart>
+                                       <duration>
+                                               <duration>PT1H</duration>
+                                       </duration>
+                                       <rrule>
+                                               <recur>
+                                                       <freq>DAILY</freq>
+                                                       <count>5</count>
+                                               </recur>
+                                       </rrule>
+                                       <rdate>
+                                               <parameters>
+                                                       <tzid>
+                                                               
<text>US/Eastern</text>
+                                                       </tzid>
+                                               </parameters>
+                                               <period>
+                                                       
<start>2006-01-02T15:00:00</start>
+                                                       
<duration>PT2H</duration>
+                                               </period>
+                                       </rdate>
+                                       <summary>
+                                               <text>Event #2</text>
+                                       </summary>
+                                       <description>
+                                               <text>We are having a meeting 
all this week at 12pm for one hour, with an additional meeting on the first day 
2 hours long.&#x0a;Please bring your own lunch for the 12 pm meetings.</text>
+                                       </description>
+                                       <uid>
+                                               
<text>[email protected]</text>
+                                       </uid>
+                               </properties>
+                       </vevent>
+                       <vevent>
+                               <properties>
+                                       <dtstamp>
+                                               
<date-time>2006-02-06T00:11:21Z</date-time>
+                                       </dtstamp>
+                                       <dtstart>
+                                               <parameters>
+                                                       <tzid>
+                                                               
<text>US/Eastern</text>
+                                                       </tzid>
+                                               </parameters>
+                                               
<date-time>2006-01-04T14:00:00</date-time>
+                                       </dtstart>
+                                       <duration>
+                                               <duration>PT1H</duration>
+                                       </duration>
+                                       <recurrence-id>
+                                               <parameters>
+                                                       <tzid>
+                                                               
<text>US/Eastern</text>
+                                                       </tzid>
+                                               </parameters>
+                                               
<date-time>2006-01-04T12:00:00</date-time>
+                                       </recurrence-id>
+                                       <summary>
+                                               <text>Event #2 bis</text>
+                                       </summary>
+                                       <uid>
+                                               
<text>[email protected]</text>
+                                       </uid>
+                               </properties>
+                       </vevent>
+                       <vtimezone>
+                               <properties>
+                                       <last-modified>
+                                               
<date-time>2004-01-10T03:28:45Z</date-time>
+                                       </last-modified>
+                                       <tzid>
+                                               <text>US/Eastern</text>
+                                       </tzid>
+                               </properties>
+                               <components>
+                                       <daylight>
+                                               <properties>
+                                                       <dtstart>
+                                                               
<date-time>2000-04-04T02:00:00</date-time>
+                                                       </dtstart>
+                                                       <rrule>
+                                                               <recur>
+                                                                       
<freq>YEARLY</freq>
+                                                                       
<byday>1SU</byday>
+                                                                       
<bymonth>4</bymonth>
+                                                               </recur>
+                                                       </rrule>
+                                                       <tzname>
+                                                               <text>EDT</text>
+                                                       </tzname>
+                                                       <tzoffsetfrom>
+                                                               
<utc-offset>-05:00</utc-offset>
+                                                       </tzoffsetfrom>
+                                                       <tzoffsetto>
+                                                               
<utc-offset>-04:00</utc-offset>
+                                                       </tzoffsetto>
+                                               </properties>
+                                       </daylight>
+                                       <standard>
+                                               <properties>
+                                                       <dtstart>
+                                                               
<date-time>2000-10-26T02:00:00</date-time>
+                                                       </dtstart>
+                                                       <rrule>
+                                                               <recur>
+                                                                       
<freq>YEARLY</freq>
+                                                                       
<byday>-1SU</byday>
+                                                                       
<bymonth>10</bymonth>
+                                                               </recur>
+                                                       </rrule>
+                                                       <tzname>
+                                                               <text>EST</text>
+                                                       </tzname>
+                                                       <tzoffsetfrom>
+                                                               
<utc-offset>-04:00</utc-offset>
+                                                       </tzoffsetfrom>
+                                                       <tzoffsetto>
+                                                               
<utc-offset>-05:00</utc-offset>
+                                                       </tzoffsetto>
+                                               </properties>
+                                       </standard>
+                               </components>
+                       </vtimezone>
+               </components>
+       </vcalendar>
+</icalendar>
\ No newline at end of file

Reply via email to