Re: Semantic of the language

On 3/15/2010 11:55 AM, Marcelo Arenas wrote:

>> + the ability to project expressions from queries rather than variables only
>
> I don't understand this functionality. Maybe Lee could gives us an
> example of such a query.

In SPARQL 1.0, the only thing that can be projected from a query are 
variables:

SELECT ?var1 ?var2 ?var3
WHERE {
   ... ?var1 ... ?var2 ... ?var3 ...
}

In SPARQL 1.1, any expression can be projected into a result set:

SELECT ?var1 (?var2 + 2 AS ?sum) (fn:myCrazyFunction(?var3) AS ?crazy)
WHERE {
   ... ?var1 ... ?var2 ... ?var3 ...
}

Lee

Received on Tuesday, 16 March 2010 02:04:22 UTC