a SPARQL test that shows turtle < SPARQL < N3

The RDF Data Access WG is getting ready to close punctuationSyntax
  http://www.w3.org/2001/sw/DataAccess/issues#punctuationSyntax
again, after last call comments.

I'm reviewing the tests that we approved recently[1], and I find
this in a _negative_ test:

  SELECT * WHERE {[] . }

      [  mf:name    "bnode-dot.rq" ;
         rdf:type   mfx:TestBadSyntax ;
         mf:action  <bnode-dot.rq> ;
      ]

http://www.w3.org/2001/sw/DataAccess/tests/Syntax-SPARQL3/manifest.ttl

At first, I thought the case of a void property list[2] was ruled out
of SPARQL as it is ruled out of turtle[3], but it's more subtle than
that. Only the case of "[] ." is ruled out, which is pretty harmless,
as it's semantically empty.

So we have:

 [] .  # only in N3
 [:p :q]. # in N3 and SPARQL, but not (yet?) in turtle
 [:p :q] :r :s. # in turtle, SPARQL, and N3


[1]
http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/att-0532/27-dawg-minutes.html#item07
[2]   http://www.w3.org/2000/10/swap/grammar/n3-report.html#propertylist
[3] http://www.dajobe.org/2004/01/turtle/

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Monday, 10 October 2005 14:31:50 UTC