Read API match Literals expects bare strings instead of N3
Description Read API match parameters are described to be n3 but for literals only bare string notation works.
Steps to reproduce the issue:
- Query with
obj="value"doesn't work - Query with
obj=valueworks
Output of cayley version or commit hash:
Cayley version: v0.7.x-dev
Git commit hash: b9dabbed3f75
Environment details:
Backend database: memory
This is tricky, to be honest. We don't know what format the user sends us. It's ambiguous if we see a quoted value like "A". Is it in N-Quad syntax? Or is it literally a text with quotes inside (\"A\")?
Maybe the best solution would be to add a new /v3/read endpoint and state that all values should be either in JSON-LD syntax or in N-Quad syntax.
We can also make a breaking change to /v2/read, it's a relatively new API I'm guessing not a lot of people are using by far.