W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2006

Definition of FilteredBasicGraphPattern in SPARQL grammar

From: Arjohn Kampman <arjohn.kampman@aduna-software.com>
Date: Thu, 26 Oct 2006 17:48:26 +0200
Message-ID: <4540D8CA.4040306@aduna-software.com>
To: public-rdf-dawg-comments@w3.org

It took me quite some time to understand the production rule for
FilteredBasicGraphPattern in the SPARQL grammar, due to the
recursiveness of the definition. I think this production rule
in combination with BlockOfTriples can be reformulated to one of the
following, much simpler, definitions:

FilteredBasicGraphPattern ::=
         ( (TriplesSameSubject|Constraint) '.'? )*

As far as I can see, there is only one difference between these rules
and the rules from the grammar: The rules from the grammar allow
multiple dots after TriplesSameSubject blocks and zero or one dot after
Constraint blocks, whereas the above rule only allows zero or one dot
after both blocks. Alternatively, the above rule can be slightly
modified to allow multiple dots after (both) blocks.

Arjohn Kampman, Senior Software Engineer
Aduna - Guided Exploration
Received on Thursday, 26 October 2006 16:03:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:07 UTC