W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > October 2010

RDF::NTriples + rapper's bnode

From: ix <_@whats-your.name>
Date: Wed, 13 Oct 2010 04:22:33 +0000
To: public-rdf-ruby@w3.org
Cc: dave@dajobe.org
Message-ID: <20101013042233.GA29576@myhost.Belkin>

a rogue underscore appears

rapper v 1.9.1
rapper -o ntriples http://www.w3.org/2002/12/cal/ical > ical.nt


 ruby -rrdf -e "RDF::NTriples::Reader.open('ical.nt'){|t|t.each_triple{|s,p,o|puts s}}"

/usr/lib/ruby/gems/1.9.1/gems/rdf-0.2.3/lib/rdf/reader.rb:205:in `fail_predicate': expected predicate in #<File:ical.nt> line 543 (RDF::ReaderError)


rdf-0.2.3/lib/rdf/reader.rb : NODEID = /^_:([A-Za-z][A-Za-z0-9]*)/.freeze

http://www.w3.org/TR/rdf-testcases/#nodeID agrees



just a heads up. personally i added an undersscore to the regex
Received on Wednesday, 13 October 2010 04:23:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 13 October 2010 04:23:11 GMT