Hi Luis, Roel,
The --data section should start with query=
curl -X POST -vH "Accept:application/sparql-results+xml" --data
"query=select distinct ?Concept where {[] a ?Concept} LIMIT 100"
http://localhost:8890/sparql
For the rest using a response type other than HTML is recommended
e.g. the sparql-results in xml I added.
Regards,
Jerven
On 30/04/2021 15:29, Roel Janssen wrote:
Hi,
On Fri, 2021-04-30 at 13:24 +0000, Luís Moreira de Sousa via Virtuoso-
users wrote:
Hi all,
I would like to submit queries to the SPARQL endpoint using the POST
method to avoid payload limits with GET. For some reason, Virtuoso is
not able to identify the query in the message body. An example:
$ curl -X POST -H "Accept:text/html" --data "select distinct ?Concept
where {[] a ?Concept} LIMIT 100" http://localhost:8890/sparql
Virtuoso 22023 Error The request does not contain text of SPARQL
Am I doing something wrong here? Or should I use a different method?
Try adding another header with: -H "Content-Type: application/sparql-
update".
Kind regards,
Roel Janssen
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
*Jerven Tjalling Bolleman*
Principal Software Developer
*SIB | Swiss Institute of Bioinformatics*
1, rue Michel Servet - CH 1211 Geneva 4 - Switzerland
t +41 22 379 58 85
Jerven.Bolleman@sib.swiss - www.sib.swiss
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users