> from SPARQLWrapper import SPARQLWrapper
>
> # a lot longer
> myString = "INSERT DATA { <not> <noot> <noot> }"
>
> def insertFromString(url, sparql):
>     endpoint = SPARQLWrapper(url)
>     endpoint.setQuery(sparql)
>     endpoint.method = 'POST'
>     endpoint.query()
>
> insertFromString('http://localhost:3030/myDS/update', myString)


can you change the html headers and see if it works? Something like this:

    endpoint.addCustomHttpHeader("Content-Type", "application/sparql-update")

Reply via email to