I am new to semantic web and SPARQL. I am trying to do a get request over HTTP protocol while passing parameters in my URL. How do I put the parameter in my SPARQL query and how do I give a value to it my URL.
Following is what I have:
Sparql query: (I am trying to put my value to the s)
values($employeeId) {(<$s>)}
http request:
https://stardog-server-test/Profil/query?query=alphonsoTest&$s='"105A203"'
Like you can see, I am trying to give the value 105A203
.
I want my method to be GET
with no payload/body.
In this particular case you don't actually need VALUES. Stardog lets you pass bind values directly for variables (ones that start with $, anyway) via additional query string parameters much like the way you're already trying:
If you have saved
select * where {?s ?p $myO}
as a stored query, then using the stored query's name also works:Feel free to post any further questions in the Stardog community forum