Kumar, again you did not read my answer...

PRINT the query String to console. Do you understand what this means?

Then show us the output, i.e. show the PRINTED Java string, NOT the
concatenation of String objects in Java.

In addition, I told you that there is a missing space between ?result
and FILTER


> The error is :
>
> Encountered " "(" "( "" at line 1, column 221.
> Was expecting one of:
>     "graph" ...
>     "optional" ...
>     "minus" ...
>     "bind" ...
>     "service" ...
>     "filter" ...
>     "{" ...
>     "}" ...
>     ";" ...
>     "," ...
>     "." ...
>
> On Sat, Oct 22, 2016 at 3:19 PM, Lorenz B. <
> [email protected]> wrote:
>
>> Kumar,
>>
>> probably missing space between ?result and FILTER. Why don't you print
>> the String and show it to us? Nobody wants to read Java concatenated
>> String objects.
>>> Is the query correct? It gives me error, I think syntax error.
>>>
>>>   "SELECT  * " +
>>>                 " WHERE {   ?student std:result ?result"
>>>                    + "FILTER ( ?student =' "+name+" ' ) " +
>>>
>>>           "}";
>>>
>>> name is java variable
>>>
>> --
>> Lorenz Bühmann
>> AKSW group, University of Leipzig
>> Group: http://aksw.org - semantic web research center
>>
>>
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

Reply via email to