W3C home > Mailing lists > Public > www-archive@w3.org > January 2003

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

From: Dan Brickley <danbri@w3.org>
Date: Sat, 18 Jan 2003 18:11:04 -0500
To: dave.beckett@bristol.ac.uk
Cc: www-archive@w3.org
Message-ID: <20030118231104.GM19773@tux.w3.org>
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

attached mail follows:



     _: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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 July 2008 08:08:50 GMT