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

Re: FILTER (q:name())

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Fri, 09 Jun 2006 14:51:28 +0100
Message-ID: <44897CE0.3000009@hp.com>
To: Jan Wielemaker <wielemak@science.uva.nl>
CC: public-rdf-dawg-comments@w3.org



Jan Wielemaker wrote:
> Hi,
> 
> One more:
> 
> 114 ?- show_test('syntax-function-01.rq').
> PREFIX q: <http://example.org/>
> SELECT * WHERE { FILTER (q:name()) }
> 
> Following rules Constraint [27] and FunctionCall [28], I think this is not
> allowed by the syntax.  Should be FILTER q:name().  Right?
> 
> 	Cheers --- Jan

Both are legal:  A FILTER can take a bare function call, including the 
built-in functions, or a bracketted expression.  A bracketted expression can 
be (x:func())

[56] BrackettedExpression ::= '(' Expression ')'

and Expression eventually gets to PrimaryExpression:

[55] PrimaryExpression   ::=  BrackettedExpression | BuiltInCall | 
IRIrefOrFunction | RDFLiteral | NumericLiteral | BooleanLiteral | BlankNode | Var

[59] IRIrefOrFunction    ::= 	IRIref ArgList?

	Andy
Received on Friday, 9 June 2006 13:51:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:50 GMT