is this legal ntriples? / raptor ntriple parser bug with long bnode labels?

Hmm, I can probably fix the whitespace indenting, but rdfdump --ntriples is throwing
other errors that I don't understand. Actually I've cut the fwd'd test data down to 
a simpler case:

danbri@fireball:~/servers/cvs/w3.org/WWW/2001/sw/Europe/200301/x2r/ht/a1$ make checkrdf
rdfdump --ntriples file:po-rdf.nt
rdfdump: Parsing URI file:po-rdf.nt
rdfdump: Error - URI file:po-rdf.nt:1 column 8 - Saw '7', expected <URIref> or _:bnodeID
rdfdump: Error - URI file:po-rdf.nt:2 column 8 - Saw '7', expected <URIref> or _:bnodeID
rdfdump: Parsing returned 0 statements
make: *** [checkrdf] Error 1
danbri@fireball:~/servers/cvs/w3.org/WWW/2001/sw/Europe/200301/x2r/ht/a1$ cat po-rdf.nt
_:id2590758 <http://example.com/nomappednsuri/#productName>  "Lawnmower" .
_:id2590758 <http://example.com/nomappednsuri/#quantity>  "1" .


...is it that the bnode labels are too long? That appears to be the case:


 rdfdump --ntriples file:xx
rdfdump: Parsing URI file:xx
rdfdump: Error - URI file:xx:1 column 8 - Saw '7', expected <URIref> or _:bnodeID
rdfdump: Statement: [id259, http://example.com/nomappednsuri/#quantity, "1"]
rdfdump: Parsing returned 1 statements
danbri@fireball:~/servers/cvs/w3.org/WWW/2001/sw/Europe/200301/x2r/ht/a1$ cat xx
_:id25907 <http://example.com/nomappednsuri/#productName>  "Lawnmower" .
_:id2590 <http://example.com/nomappednsuri/#quantity>  "1" .



...this is generated by XSLT, _:<xsl:value-of select="generate-id()"/> btw.

Thanks for any suggestions,

Dan

Forwarded message 1

  • From: Dan Brickley <danbri@fireball.danbri.org>
  • Date: Sat, 18 Jan 2003 23:03:15 +0000
  • To: danbri@w3.org
  • Message-Id: <E18a1zf-0007Py-00@fireball>
     _:id2589323 <http://www.w3.org/1999/02/22/rdf-syntax-ns#type> <http://example.com/default-ns-fixme/#PurchaseOrder> .

     _:id2589290 <http://www.w3.org/1999/02/22/rdf-syntax-ns#type> <http://example.com/default-ns-fixme/#Address> .
 _:id2589323 <http://example.com/default-ns-fixme/#shipTo> _:id2589290 .
      
     _:id2589290 <http://example.com/nomappednsuri/#name>  "Alice Smith" . 
       _:id2589290 <http://example.com/nomappednsuri/#street>  "123 Maple Street" . 
       _:id2589290 <http://example.com/nomappednsuri/#city>  "Mill Valley" . 
       _:id2589290 <http://example.com/nomappednsuri/#state>  "CA" . 
       _:id2589290 <http://example.com/nomappednsuri/#zip>  "90952" . 
      
     _:id2588480 <http://www.w3.org/1999/02/22/rdf-syntax-ns#type> <http://example.com/default-ns-fixme/#Address> .
 _:id2589323 <http://example.com/default-ns-fixme/#billTo> _:id2588480 .
      
     _:id2588480 <http://example.com/nomappednsuri/#name>  "Robert Smith" . 
       _:id2588480 <http://example.com/nomappednsuri/#street>  "8 Oak Avenue" . 
       _:id2588480 <http://example.com/nomappednsuri/#city>  "Old Town" . 
       _:id2588480 <http://example.com/nomappednsuri/#state>  "PA" . 
       _:id2588480 <http://example.com/nomappednsuri/#zip>  "95819" . 
       _:id2589323 <http://example.com/nomappednsuri/#comment>  "Hurry, my lawn is going wild!" . 
      
     _:id2590758 <http://www.w3.org/1999/02/22/rdf-syntax-ns#type> <http://example.com/default-ns-fixme/#Item> .
 _:id2590738 <http://example.com/default-ns-fixme/#item> _:id2590758 .
      
     _:id2590758 <http://example.com/nomappednsuri/#productName>  "Lawnmower" . 
       _:id2590758 <http://example.com/nomappednsuri/#quantity>  "1" . 
       _:id2590758 <http://example.com/nomappednsuri/#price>  "148.95" . 
       _:id2590758 <http://example.com/nomappednsuri/#comment>  "Confirm this is electric" . 
      
     _:id2590863 <http://www.w3.org/1999/02/22/rdf-syntax-ns#type> <http://example.com/default-ns-fixme/#Item> .
 _:id2590738 <http://example.com/default-ns-fixme/#item> _:id2590863 .
      
     _:id2590863 <http://example.com/nomappednsuri/#productName>  "Baby Monitor" . 
       _:id2590863 <http://example.com/nomappednsuri/#quantity>  "1" . 
       _:id2590863 <http://example.com/nomappednsuri/#price>  "39.98" . 
       _:id2590863 <http://example.com/nomappednsuri/#shipDate>  "1999-05-21" . 
      

Received on Saturday, 18 January 2003 18:11:08 UTC