简体   繁体   中英

JENA RDF Validation error

I have an RDF file named SEALTriples.nt and I am validating that using the command

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; I am sure because I copied that line and used it in another RDF file and that never returned any error. Any idea what can be the cause for this?

It is possible that file looks right on windows but isn't. N-triples files are 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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