简体   繁体   English

JENA RDF验证错误

[英]JENA RDF Validation error

I have an RDF file named SEALTriples.nt and I am validating that using the command 我有一个名为SEALTriples.nt的RDF文件,正在使用以下命令进行验证

riot.bat --validate SEALTriples.nt

It is throwing the following error: 它抛出以下错误:

ERROR [line: 15858, col: 82] Bad character encoding

When I went to the RDF file the line has no error; 当我进入RDF文件时,该行没有错误; I am sure because I copied that line and used it in another RDF file and that never returned any error. 我敢肯定,因为我复制了该行并将其用于另一个RDF文件,并且从未返回任何错误。 Any idea what can be the cause for this? 知道这可能是什么原因吗?

It is possible that file looks right on windows but isn't. 该文件可能在Windows上看起来正确,但事实并非如此。 N-triples files are UTF-8. N个三重文件是UTF-8。 If the text is actually Windows local code page it will look right when displayed (Windows native display) but isn't UTF-8. 如果文本实际上是Windows本地代码页,则显示时(Windows本机显示)它将看起来正确,但不是UTF-8。

I was able to find the problem. 我能够找到问题所在。 Actually there was a '\\' in the object section which was creating the problem. 实际上,对象部分中存在一个“ \\”,这是造成问题的原因。 Removing that made everything OK. 删除该按钮,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM