I've solved the problem thanks has this forum (
http://answers.semanticweb.com/questions/26356/declaring-variable-outside-sparql-filter-query
)

this is the correct sintax:


* " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>> " +*
* " PREFIX gr: <http://purl.org/goodrelations/v1#
<http://purl.org/goodrelations/v1#>> " +*
* " PREFIX xsd: <http://www.w3.org/2001/XMLSchema#
<http://www.w3.org/2001/XMLSchema#>> " +*
* " SELECT * WHERE {" +*
* " ?x a gr:Offering . " +*
* " ?x gr:name ?d . " +*
* " ?x gr:hasPriceSpecification ?ps ." +*
* " ?ps gr:hasCurrencyValue ?p . "  +*
* " FILTER(?p >= "+a+" && ?p <= "+b+" ) . " +*
* "}";*


Nagore.


2014-02-17 17:29 GMT+01:00 Andy Seaborne <[email protected]>:

> On 17/02/14 16:24, Nagore Salaberria wrote:
>
>> FILTER(?p >= a && ?p <= b ) .
>>
>
> Illegal syntax.
>
>         Andy
>
> PS put some newlines in your query string and parer error message wil be
> more helpful to you.
>



-- 
Nagore Salaberria<[email protected]>

Reply via email to