Please show a complete, minimal example.
http://stackoverflow.com/help/mcve
Andy
On 11/08/16 15:39, neha gupta wrote:
URI? I have used the prefixes in my query.
User have to select taught or research in combo box and I need to filter my
query based on user selection.
When I dont use user selection and direct use like this:
select ?student where {?student my:hasClass my:taught}
it works but I need to use the string value here entered by user.
Thanks for understanding.
On Thu, Aug 11, 2016 at 7:30 AM, Jean-Marc Vanel <[email protected]>
wrote:
"taught" and "research" are just strings , you need the real URI's between
<> .
2016-08-11 16:19 GMT+02:00 neha gupta <[email protected]>:
I have query
select ?student where {?student my:hasClass ?class FILTER (?class
=''"+string+"}
hasClass has two individuals: taught and research. I will take this from
user as:
String string=box1.getSelectedItem().toString(); (user will enter either
taught or research).
--
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://deductions-software.com/
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui