I have 2 jsp pages. In the index page I am selecting a dropdown value and passing the selected value as a url parameter to the SearchResults page.
http://localh
I assume jobCategory is a Literal/Label? Simple ask directly for the label.
String queryString =
"Select ?a ?b"+
" Where { <uri> <uri>\"" + jobCategory +"\"}";
I case it is a URI the query would look like.
String queryString =
"Select ?a ?b"+
" Where { <uri> <uri> <" + jobCategory+ ">}";
I have a solution for this issue.
I used regex
to obtain the result
"filter(regex(?a, \"" + jobCategory + "\"))"