Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
I use IRIs in my RDF and fct to browse and do content negotiation, e.g. for text/turtle.
However, there is an issue with inconsistent handling of unicode characters in Location: header in the HTTP redirect.
When I do:
curl -i -H "Accept: text/turtle" https://linked.opendata.cz/resource/knowledge-graph-browser/view/uk/nadřazená-pracoviště
I get:
location: https://linked.opendata.cz/sparql?query=define%20sql%3Adescribe-mode%20%22CBD%22%20%20DESCRIBE%20%3Chttps%3A%2F%2Flinked.opendata.cz%2Fresource%2Fknowledge-graph-browser%2Fview%2Fuk%2Fnad%C5%99azená-pracovi%C5%A1t%C4%9B%3E&format=text%2Fturtle
Note the á there - all the unicode characters are percent encoded, but not á. This causes problems with libraries expecting ASCII string, such as those implementing the fetch API, e.g. https://www.npmjs.com/package/node-fetch
The IRI here url-decoded is:
https://linked.opendata.cz/resource/knowledge-graph-browser/view/uk/nadrazen?-pracovi?te - ř becomes r, and é and š are replaced by ?.
I use IRIs in my RDF and fct to browse and do content negotiation, e.g. for
text/turtle
. However, there is an issue with inconsistent handling of unicode characters inLocation:
header in the HTTP redirect. When I do:curl -i -H "Accept: text/turtle" https://linked.opendata.cz/resource/knowledge-graph-browser/view/uk/nadřazená-pracoviště
I get:location: https://linked.opendata.cz/sparql?query=define%20sql%3Adescribe-mode%20%22CBD%22%20%20DESCRIBE%20%3Chttps%3A%2F%2Flinked.opendata.cz%2Fresource%2Fknowledge-graph-browser%2Fview%2Fuk%2Fnad%C5%99azená-pracovi%C5%A1t%C4%9B%3E&format=text%2Fturtle
Note theá
there - all the unicode characters are percent encoded, but notá
. This causes problems with libraries expecting ASCII string, such as those implementing the fetch API, e.g. https://www.npmjs.com/package/node-fetchThere is an nginx reverse proxy on the way doing:
When I tried tunneling to the server to avoid it, I got even worse result:
The IRI here url-decoded is:
https://linked.opendata.cz/resource/knowledge-graph-browser/view/uk/nadrazen?-pracovi?te
-ř
becomesr
, andé
andš
are replaced by?
.