W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2005

separator/terminator ;

From: Dan Connolly <connolly@w3.org>
Date: Tue, 05 Apr 2005 22:31:41 -0500
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>
Message-Id: <1112758301.15073.505.camel@localhost>

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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:23 GMT