I think in such case it would be better to use Parameterized SPARQL String instead of string concatenation: https://jena.apache.org/documentation/query/parameterized-sparql-strings.html
On Thu, Jun 4, 2015 at 2:06 AM, Wojciech Ciesielski <woj...@kierzbun.pl> wrote: > ok thx > problem solved :) > i read name/temat/predykat/object from TextField, validate it and when > temat/obiekt be blank node i replace it for ?a/?c and it works :) > code below > query= " WITH " + name+ > " DELETE " + > " { "+ > temat + " " + predykat + " " +obiekt+ " " + > " } " + > " WHERE " + > " { "+ > temat + " " + predykat + " " +obiekt+ " " + > " } "; > > -- > Pozdrawiam > Wojciech Ciesielski >