cwm has problem parsing a foaf file that passes the validator tests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cwm has problem parsing a foaf file that passes the validator tests

Henry Story-4
seen on #swig:

mhh David Peterson's foaf is accepted by the w3c's validator but not  
by cwm
[07:34AM] bblfish_: cwm --rdf  http://data.boab.info/david/foaf.rdf
[07:34AM] bblfish_: does not work
[07:35AM] bblfish_: but it's ok for http://www.w3.org/RDF/Validator/ARPServlet?URI=http%3A%2F%2Fdata.boab.info%2Fdavid%2Ffoaf.rdf&PARSE=Parse+URI%3A+&TRIPLES_AND_GRAPH=PRINT_TRIPLES&FORMAT=PNG_EMBED

Henry

Home page: http://bblfish.net/


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cwm has problem parsing a foaf file that passes the validator tests

Yosi Scharf

That file is written in ISO-8859-15 encoding. Cwm assumes everything in
the world is utf-8. Normally this is not a problem, because the python
libraries it uses to get things from the web convert things correctly.
At least I think that's the way it works. In this case, the file is
being sent with

Content-Type: text/plain; charset=UTF-8

so no conversion is being done in any case. Cwm is perfectly within its
rights to give an error that this is not a valid utf-8.

Yosi Scharf


Story Henry wrote:

> seen on #swig:
>
> mhh David Peterson's foaf is accepted by the w3c's validator but not
> by cwm
> [07:34AM] bblfish_: cwm --rdf  http://data.boab.info/david/foaf.rdf
> [07:34AM] bblfish_: does not work
> [07:35AM] bblfish_: but it's ok for
> http://www.w3.org/RDF/Validator/ARPServlet?URI=http%3A%2F%2Fdata.boab.info%2Fdavid%2Ffoaf.rdf&PARSE=Parse+URI%3A+&TRIPLES_AND_GRAPH=PRINT_TRIPLES&FORMAT=PNG_EMBED
>
>
> Henry
>
> Home page: http://bblfish.net/
>