swap/sax2rdf.py: datatype too sticky

I think I found a bug in the datatype handling
of
  sax2rdf.py,v 1.34 2003/08/14 00:00:19 timbl Exp

Consider this input:

<rdf:RDF xmlns="http://opencyc.sourceforge.net/daml/cyc.daml#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <DayOfWeekType
rdf:about="http://opencyc.sourceforge.net/daml/cyc.daml#Sunday">
        <dayAbbr
xmlns="file:/home/connolly/w3ccvs/WWW/2003/09dc-bos/weekDays#">SU</dayAbbr>
        <index
xmlns="file:/home/connolly/w3ccvs/WWW/2003/09dc-bos/weekDays#"
           
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">6</index>
        <nameString>Sunday</nameString>
    </DayOfWeekType>
</rdf:RDF>

cwm seems to think Sunday is an integer:

$ python ../../2000/10/swap/cwm.py --rdf
../../2000/10/swap/test/syntax/dtdirty.rdf
 
<!-- Processed by Id: cwm.py,v 1.136 2003/08/20 11:50:57 sandro Exp -->
<!--     using base
file:/home/connolly/w3ccvs/WWW/2000/10/swap/test/syntax/dtdirty.rdf-->
 
 
<rdf:RDF xmlns="http://opencyc.sourceforge.net/daml/cyc.daml#"
    xmlns:log="http://www.w3.org/2000/10/swap/log#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 
    <DayOfWeekType
rdf:about="http://opencyc.sourceforge.net/daml/cyc.daml#Sunday">
        <dayAbbr
xmlns="file:/home/connolly/w3ccvs/WWW/2003/09dc-bos/weekDays#">SU</dayAbbr>
        <index
xmlns="file:/home/connolly/w3ccvs/WWW/2003/09dc-bos/weekDays#"
           
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">6</index>
        <nameString
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">Sunday</nameString>
    </DayOfWeekType>
</rdf:RDF>


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Monday, 25 August 2003 19:47:12 UTC