curl
curl sends SPARQL Protocol requests directly over HTTP.
Each example is executed during the documentation build.
curl --silent --show-error --fail-with-body --get "http://127.0.0.1:$PORT/" \
--data-urlencode "query=ASK { ?subject ?predicate ?object }"
Response
{
"head": {},
"boolean": true
}
curl --silent --show-error --fail-with-body "http://127.0.0.1:$PORT/" \
--header "Content-Type: application/sparql-query" \
--data-binary "ASK { ?subject ?predicate ?object }"
Response
{
"head": {},
"boolean": true
}
curl --silent --show-error --fail-with-body "http://127.0.0.1:$PORT/" \
--data-urlencode "query=ASK { ?subject ?predicate ?object }"
Response
{
"head": {},
"boolean": true
}