[Versa] More on literal queries

Uche Ogbuji uche.ogbuji at fourthought.com
Fri Sep 9 11:43:44 MDT 2005


On Tue, 2005-09-06 at 08:50 -0600, Michael Olson wrote:
> On Sep 6, 2005, at 7:19 AM, Chimezie Ogbuji wrote:
> This is a good solution for me.

Whew!

OK, onward with the good ship.

> Here is what I see ignoring the issue  
> of scopes and only highlighting what the changes.


> query-expression :== filter | traverse | funtion-call
> 
> forward-filter :== set-expression '-' set-expression '->'  
> filter-expression
> #plus all of the rest of the filters and traverses
> 
> 
> set-expression :== query-expression | pattern | context |  
> variable-reference
> 
> filter-expression :== query-expression | pattern | operator-expression  
> | context | variable-reference
> 
> pattern :== uri-pattern | literal-pattern | wild-card
> 
> function-call :== qname '(' argument-expression ? ( ','  
> argument-expression) * ')'
> 
> argument-expression :== query-expression | constant |  
> variable-reference - context | '{' argument-expression '}'
> 
> context :== '.'
> 
> wild-card :== '*'
> 
> constant :== uri-constant | literal-constant | string-constant |  
> number-constant | boolean-constant

Looks about right, but I do wonder whether the recent discussion over
scope affects some of this as well.


> What this allows then is we would not need to wrap all of our  
> filter-expressions in "eq" if we don't want because
> 
> all() - rdf:value -> "foo"
> 
> would become a valid query as "foo" becomes a literal-pattern.

I think this leads back to an earlier discussion we were having about
patterns versus predicates.  I'll need to go back and read as a
refresher (it was from the initial burst of Versa NG discussion).


-- 
Uche Ogbuji                               Fourthought, Inc.
http://uche.ogbuji.net                    http://fourthought.com
http://copia.ogbuji.net                   http://4Suite.org
Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html
XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html
Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/
Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html



More information about the Versa mailing list