Open depressiveRobot opened 9 years ago
R43ples supports also query via POST.
I tested it with your query and got the same error:
curl -X "POST" "http://localhost:9998/r43ples/sparql" \-H "Content-Type: application/x-www-form-urlencoded" \--data-urlencode "query=select (count(*) as ?count) from <urn:testData> where {?s ?p ?o .}"
But when I remove the backslashes from your query everything works fine:
curl -X "POST" "http://localhost:9998/r43ples/sparql" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "query=select (count(*) as ?count) from <urn:testData> where {?s ?p ?o .}"
Can you please test the second query without backslashes and give me a notice if it this also works for you?
You are not using query via POST directly but query via POST with URL-encoded parameters
Here is my curl command:
curl -X "POST" "http://localhost:9998/r43ples/sparql" \
-H "Content-Type: application/sparql-query" \
-d "select (count(*) as ?count) from <urn:testData> where {?s ?p ?o .}"
Same error as before...
Thank you for reporting this missing feature.
The issue should be fixed in the branch feature/query-post-directly
Can you confirm this?
R43ples does not support query via POST directly: