W3C home > Mailing lists > Public > public-rdf-wg@w3.org > March 2013

normalize bnode labels in Turtle tests?

From: Eric Prud'hommeaux <eric@w3.org>
Date: Tue, 26 Mar 2013 10:03:38 -0400
To: public-rdf-wg@w3.org
Message-ID: <20130326140336.GO14139@w3.org>
David Robillard submitted a message with 5 comments, including patches
to change all reference graph bnode labels to some repeatable pattern,
e.g.

  --- a/rdf-turtle/coverage/tests/nested_collection.nt	Sat Feb 23 14:12:41 2013 -0800
  +++ b/rdf-turtle/coverage/tests/nested_collection.nt	Mon Feb 25 00:45:06 2013 -0500
  @@ -1,5 +1,5 @@
  -<http://a.example/s> <http://a.example/p> _:outerEl1 .
  -_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:innerEl1 .
  -_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
  -_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
  -_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
  +<http://a.example/s> <http://a.example/p> _:b1 .
  +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b2 .
  +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
  +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
  +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .

<http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c13>

pros:
  folks with a particular parser can do lexical comparison.

cons:
  lose some labels meant to assist developers.
  reduces pressure for implementations to propery manage bnodes.

In net, do we want to normalize bnode labels in the Turtle tests?
-- 
-ericP
Received on Tuesday, 26 March 2013 14:04:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:26 UTC