arin
arin

Reputation: 600

RDF validation keep giving error?

I keep getting this error whenever I tried to validate the rdf file in the following location

the rdf file

whats wrong with it ? please help .

enter image description here

Upvotes: 2

Views: 178

Answers (1)

cygri
cygri

Reputation: 9492

This is not a valid RDF/XML file. Every line in this file starts with a line number. This is probably because you copy-pasted it from somewhere. These line numbers are not allowed in RDF/XML and you have to get rid of them.

There might still be another problem that causes the encoding/UTF-8 error. This usually happens when you have special characters in the file and don't save it using UTF-8 encoding. But fix the error with the line numbers first and then this will be clearer.

Another unrelated problem: In xmlns:u="http://awmarmo.net46.net/Schema.rdf" there's a hash “#” missing at the end of the URL. Namespace URIs in RDF basically always end either in a slash “/” or hash “#”. If you forget them, things break.

Upvotes: 1

Related Questions