Re: project expression tests

On 12/08/2010 6:43 PM, Gregory Williams wrote:
> I had a couple of comments about two of the project expression tests in CVS.
>
> :projexp02:
>
> I think the second expected query result should be using the plain literal "foobar" instead of "foobar"^^xsd:string, as the literal is untyped in projexp02.ttl.

I agree.

>
> :projexp03:
>
> projexp03.rq needs a '.' separating the two triple patterns.

I agree.

>
> Based on my understanding of XQuery F&O, I believe all the numerics in the query results should be of type xsd:integer. Right now the srx file has ?twice = "6"^^xsd:long, but the F&O document says "each operator is defined to operate on operands of the same type and return the same type" (with op:numeric-divide being the one exception).

I agree.

> thanks,
> .greg

Some synatx problems with the queries.  It uses:

SELECT * (expr AS ?xyz)

but that's not legal.  Only "SELECT *" is legal.  If project expressions 
are used, then you can't have "SELECT *"

It also uses does not bracket the expression as "(expr AS ?xyz)"

	Andy

Received on Saturday, 21 August 2010 15:34:06 UTC