有个奇怪的问题:插入编码为UTF-8的数据:
INSERT DATA { <http://onto.pro/Test> <http://www.w3.org/2000/01/rdf-schema#label> "Проверка" }
然后提取它们:
SELECT * WHERE { <http://onto.pro/Test> <http://www.w3.org/2000/01/rdf-schema#label> ?a }
并且编码被破坏:
{ "head": { "vars": [ "a" ] } , "results": { "bindings": [ { "a": { "type": "literal" , "value": "????????" } } ] } }
可以看出,返回的不是“Проверка”,而是“????????”。问题突然出现,重启Fuseki后消失。在哪里挖?