W3C home > Mailing lists > Public > www-rdf-calendar@w3.org > March 2003

notes on generating the RDF iCalendar schema again

From: Libby Miller <Libby.Miller@bristol.ac.uk>
Date: Wed, 12 Mar 2003 14:12:48 +0000 (GMT)
To: www-rdf-calendar@w3.org
Message-ID: <Pine.GSO.4.44.0303121407500.9705-100000@mail.ilrt.bris.ac.uk>


Dan Connolly asked me to work out how to maintain the calendar schema
for the syntactic icalendar to RDF work

http://rdfig.xmlhack.com/2003/02/26/2003-02-26.html#1046281084.080137
http://www.w3.org/2002/12/cal/

The schema is generated from three icalendar files converted to RDF -
see

http://www.w3.org/2002/12/cal/tests/

and
http://www.w3.org/2002/12/cal/Makefile

to see which ones.

The conversion requires CWM and Python 2.2. I got it working on Debian,
although not on Mac Os 10.2 (I sent a bug report
http://lists.w3.org/Archives/Public/www-archive/2003Mar/0012.html).

I don't know much at all about Python, but it worked anyway.

This information is already on the SWAD-Europe calendar wiki:

http://esw.w3.org/t/view/ESW/RdfCalendarSchema

but I'm repeating it here as the machine is currently having some
problems and I need to refer to it.

cheers

Libby



---
detail


libby@bender:~/cwm/2002/12/cal$ export
CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public
libby@bender:~/cwm/2002/12/cal$ cvs login
(Logging in to anonymous@dev.w3.org)
CVS password:

(anonymous)


cvs co 2000/10/swap
cvs server: Updating 2000/10/swap
U 2000/10/swap/.cvsignore
U 2000/10/swap/ConstTerm.py
...

:))


libby@bender:~/cwm/2002/12/cal$ make
Makefile:53: warning: overriding commands for target `test/cal01.rdf'
Makefile:44: warning: ignoring old commands for target `test/cal01.rdf'
perl ical2rdf.pl --xnames http://www.w3.org/2002/12/cal/prod_apple#
test/mtg.ics &gt;test/mtg.rdf
python ../../../2000/10/swap/cwm.py --rdf test/mtg.rdf test/cal01.rdf
test/gkexample.rdf --filter=../../../2000/10/swap/util/sniffSchema.n3
--n3 &gt;ical.n3
Traceback (most recent call last):
  File "../../../2000/10/swap/cwm.py", line 35, in ?
    from why import FormulaReason
  File "../../../2000/10/swap/why.py", line 25, in ?
    from thing   import Namespace
  File "../../../2000/10/swap/thing.py", line 130, in ?
    raise RuntimeError("Sorry, this software requires python2.2 or
newer.")
RuntimeError: Sorry, this software requires python2.2 or newer.
make: *** [ical.n3] Error 1
]]

Python 2.1.3 (#1, Sep  7 2002, 15:29:56)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2


apt-get install python2.2


make clean
make

Makefile:53: warning: overriding commands for target `test/cal01.rdf'
Makefile:44: warning: ignoring old commands for target `test/cal01.rdf'
perl ical2rdf.pl --xnames http://www.w3.org/2002/12/cal/prod_apple#
test/mtg.ics &gt;test/mtg.rdf
python ../../../2000/10/swap/cwm.py --rdf test/mtg.rdf test/cal01.rdf
test/gkexample.rdf --filter=../../../2000/10/swap/util/sniffSchema.n3
--n3 &gt;ical.n3
Traceback (most recent call last):

  File "../../../2000/10/swap/cwm.py", line 35, in ?
    from why import FormulaReason
  File "../../../2000/10/swap/why.py", line 25, in ?
    from thing   import Namespace
  File "../../../2000/10/swap/thing.py", line 130, in ?
    raise RuntimeError("Sorry, this software requires python2.2 or
newer.")
RuntimeError: Sorry, this software requires python2.2 or newer.
make: *** [ical.n3] Error 1



ln /usr/bin/python2.2 /usr/bin/python
bender:/home/libby/cwm/2002/12/cal# ls -l /usr/bin/python
-rwxr-xr-x    2 root     root       742568 Sep  7 15:38 /usr/bin/python


make clean
make

Makefile:54: warning: overriding commands for target `test/cal01.rdf'
Makefile:45: warning: ignoring old commands for target `test/cal01.rdf'
perl ical2rdf.pl --xnames http://www.w3.org/2002/12/cal/prod_apple#n3
test/mtg.ics &gt;test/mtg.rdf
python ../../../2000/10/swap/cwm.py --rdf test/mtg.rdf test/cal01.rdf
test/gkexample.rdf --filter=../../../2000/10/swap/util/sniffSchema.n3
--n3 &gt;ical.n3
Traceback (most recent call last):
  File "../../../2000/10/swap/cwm.py", line 789, in ?
    doCommand()
  File "../../../2000/10/swap/cwm.py", line 449, in doCommand
    import sax2rdf      # RDF1.0 syntax parser to N3 RDF stream
  File "../../../2000/10/swap/sax2rdf.py", line 47, in ?
    import xml.sax # PyXML stuff
ImportError: No module named xml.sax
make: *** [ical.n3] Error 1



apt-get install python2.2-xmlbase

Makefile:54: warning: overriding commands for target `test/cal01.rdf'
Makefile:45: warning: ignoring old commands for target `test/cal01.rdf'
perl ical2rdf.pl --xnames http://www.w3.org/2002/12/cal/prod_apple#
test/mtg.ics &gt;test/mtg.rdf
python ../../../2000/10/swap/cwm.py --rdf test/mtg.rdf test/cal01.rdf
test/gkexample.rdf --filter=../../../2000/10/swap/util/sniffSchema.n3
--n3 &gt;ical.n3
python ../../../2000/10/swap/cwm.py ical.n3 --rdf &gt;ical.rdf

:)))
Received on Wednesday, 12 March 2003 09:14:43 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Friday, 25 March 2005 11:20:43 GMT