so GET requests work fine, however neither of the POST requests worked (I tried with passing python object into data= and passing json serialization into json=)
They fail with 500 Internal Server Error, which makes me think the problem with with the contents of data I submit in the POST request...
Could you please help me with that?
What I am trying to achieve is the real Turtle serialization of a custom cypher query result. As far as I understood there is no such n10s.* procedure to do that (n10s.rdf.export.cypher returns a table of triples)
You were nearly there :) Pasing the python dictionary into the json param does the job. No need to do json serialization. This is the fragment I've tested:
The n10s.export.* (cypher and spo) procedures are useful when you want to decouple the HTTP endpoint from the DB. In that case the a client will communicate with the DB+n10s using the python driver, and take care of serialising the triples-as-records.
Finally, on the behavior of the browsers I really cannot explain. For the HTTP requests, I'd suggest (that's what I normally do) to test using curl or some rest client like postman or rested.
I see no issues on chrome at my end but let me know if the problem persists and you think it's worth me trying to reproduce it. I'd need more details like versions of db+n10s+browser... etc.
Hi @vijaykrishna.adigopu , you got your answer right there. If you take the example by @paltusplintus and replace the value of "format" parameter with "JSON-LD" instead of "Turtle" you get your request results serialised as JSON-LD.