HTTP Error 406: Both format and output parameters are specified, which is not acceptible.
I have tried a lot already. What can be wrong?
My code in Python 3.8.2:
sparql = SPARQLWrapper(endpoint="http://localhost:8083/tbl/sparql",
defaultGraph="urn:x-evn-master:decomp_overijssel")
SELECT * WHERE
{?s ?p ?o}
results = sparql.query()
Kind regards,
Richard D
Dear all,I am querying a sparql endpoint and have an issue with that.Using DBpedia works fine.
But using another endpoint build on Jena running on my own W10 machine I get the error
HTTP Error 406: Not Acceptable
I have tried a lot already. What can be wrong?
--Kind regards,
Richard D
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/3f646773-0fc1-4f19-ab95-08d54f54da05o%40googlegroups.com.
Regards,
Ruchard
--
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/98176a74-860f-4647-83a6-80bcdec4919do%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CAKZ-WGfzv20nNOBuNatq%3D8NKej%2BfN_hrMMiVxv-5UTqNkx_woA%40mail.gmail.com.
endpoint = "http://localhost:8083/tbl/sparql"
query = """SELECT ?prop ?datatype
WHERE {
<http://example.org/ontologies/assetonto#Object> sh:property ?prop .
OPTIONAL {
?prop sh:datatype ?datatype .
}
}"""
sparql = SPARQLWrapper(endpoint)
sparql.setQuery(query)
sparql.addDefaultGraph("urn:x-evn-master:assetonto")
sparql.setOnlyConneg(True)
sparql.setReturnFormat(CSV)
result = sparql.query().convert()
Please, report the details if the issue to GitHub, and we'll try to troubleshoot it.
On Mon., Jul. 6, 2020, 08:32 Richard Dijkstra <richarddi...@gmail.com> wrote:
--I am not able to go to too much detail because my lack of knowledge of proper requests etcBut interesting might be that the Python library sparql-client queries the endpoint with no issues.However I want to use SPARQLwrapper because it has more features.On Friday, July 3, 2020 at 4:00:33 PM UTC+2, Richard Dijkstra wrote:Thank you Wes for the tips for further investigations. I will give it a try next week.Regards,
Ruchard
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfli...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/e807c91b-e35f-4cc2-b490-f95bbc9650ffo%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/e807c91b-e35f-4cc2-b490-f95bbc9650ffo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CAKZ-WGezrW2QAQACs1bGZxUBBP45itpwg4URV5die3vf9o4GNg%40mail.gmail.com.
Op 12 aug. 2020 om 16:47 heeft Wes Turner <wes.t...@gmail.com> het volgende geschreven:
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CACfEFw_MR5ueH69188Y4gWhWvL5sM-CM84xOakOa0FF2QLy%2Bjw%40mail.gmail.com.
On 13 Aug 2020, at 2:56 am, Richard Dijkstra <richarddi...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/1FD48B54-FBE5-452E-ABA8-A3E98FDC0DD2%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/8165FA21-F64C-44EF-AD81-B36312E416A6%40surroundaustralia.com.
On 30 Aug 2020, at 11:51 pm, Wes Turner <wes.t...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CACfEFw_9BNXNjhAFwLFGiUcr9U1tLRXSp9JVE23ksM56Q8fBYQ%40mail.gmail.com.