W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > January 2005

cwm RDF/XML serializer falls over on ints

From: Dan Connolly <connolly@w3.org>
Date: Thu, 06 Jan 2005 17:01:54 -0600
To: public-cwm-bugs@w3.org
Message-Id: <1105052514.6000.10.camel@localhost>

Seems we don't have many RDF/XML serialization tests.
This basic functionality got busted somehow:

$ echo "<#s> <#p> 3." | python cwm.py --n3 --rdf
Traceback (most recent call last):
  File "../../../2000/10/swap/cwm.py", line 652, in ?
    doCommand()
  File "../../../2000/10/swap/cwm.py", line 643, in doCommand
    _store.dumpNested(workingContext, _outSink)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/llyn.py", line 1428, in
dumpNested
    pp. dumpNested()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 485, in
dumpNested
    self.selectDefaultPrefix(Serializer.dumpNested)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 76, in
selectDefaultPrefix
    printFunction(dummySerializer)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 486, in
dumpNested
    self.dumpFormulaContents(context, self.sink, sorting=1, equals=1)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 522, in
dumpFormulaContents
    self._dumpSubject(currentSubject, context, sink, sorting,
statements)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 585, in
_dumpSubject
    self.dumpStatement(sink, s.quad, sorting)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 595, in
dumpStatement
    self._outputStatement(sink, triple) # Do 1-loops simply
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/pretty.py", line 235, in
_outputStatement
    sink.makeStatement(self.extern(quad), aIsPossible=aWorks)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/toXML.py", line 297, in
makeStatement
    if dt != None: attrs.append((RDF_NS_URI+' datatype', dt.uriref()))
AttributeError: 'str' object has no attribute 'uriref'


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Thursday, 6 January 2005 23:01:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC