Good afternoon,
I have just started using StarDog v2 - downloaded, unpacked and running within minutes - kudos to the team on making that so easy!
I am trying to run SPARQL queries using Jena against the StarDog HTTP endpoint. I leveraged the HttpAuthenticator support in Jena 2.11 I am able to successfully execute queries against the StarDog HTTP endpoint with authentication enabled. However, I have not been able to figure out how to set the HTTP header with the SD-Connection-String parameter. It appears that this is the only way to have StarDog run the reasoner in response to a query. Is it possible to make this work using the sparqlService() method versus using StarDog-specific classes for the connection?
The header I'm referring to is mentioned in the documentation (
http://docs.stardog.com/owl2/#sd-Using-Reasoning) and specifically shows an example where an HTTP header is added:
curl -u admin:admin -X GET -H "SD-Connection-String: reasoning=QL" \
"
http://localhost:5822/myDB/query?query=..."
Thank you,
Dave Read