separator/terminator ;

sparqler (http://sparql.org/query.html )seems to like

SELECT ?who WHERE
{
  [ rdf:subject ?work;
    rdf:predicate sam:isAbout;
    rdf:object ?topic
  ] dc:creator ?who
}

but not with a trailing semi

SELECT ?who WHERE
{
  [ rdf:subject ?work;
    rdf:predicate sam:isAbout;
    rdf:object ?topic;
  ] dc:creator ?who
}

When working on an N3 grammar, I was stumped for a while
trying to allow this. I think I eventually made a separate
token for "; followed by ]" as distinct from ;.

I haven't checked the SPARQL grammar yet, but I think
this should be allowed.

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

Received on Wednesday, 6 April 2005 03:31:42 UTC