Re: cwm does not understand the typed-node-as-root idiom?

Sean seems correct, that cwm does not find any rdf in that file.
However, cwm can use rdflib as a parser (if it is installed). That seems
to work to parse that file. What you need is either to set the
environment variable

CWM_RDF_PARSER="rdflib"

or use cwm --rdf=rdflib
'http://www.codezoo.com/cs/user/run/component/5576?x-r=doap' --n3

(the second is a brittle hack, interpreting parsing flags as a string,
and is not very recommended)

It's been a long time since I read the RDF spec and tried to update
cwm's parser to match it. The set of failures from the official test
suite is at http://www.w3.org/2000/10/swap/test/testmeta.n3 . Obviously,
this is not covered.
Yosi

Story Henry wrote:
> On sig today:
>
> bblfish : cwm does not seem to like the doap files on O'Reilly's code Zoo
>           cwm --rdf
> 'http://www.codezoo.com/cs/user/run/component/5576?x-r=doap' --n3
> it seems to download something looking rdf ish with curl though
>
> sbp:  perhaps it's because it's using the typed-node-as-root idiom?
> sbp: it is being served as application/rdf+xml, but perhaps cwm's
> RDF/XML parser predates from when rdf:RDF was allowed
> sbp: check this out:
> sbp: $ cat <<EOF | cwm --rdf --n3
>  <doap:Project
>    xmlns:doap="http://usefulinc.com/ns/doap#"
>    xmlns:foaf="http://xmlns.com/foaf/0.1/"
>    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>    xmlns:xh="http://www.w3.org/1999/xhtml">
>   <doap:name>Commons Collections</doap:name>
> </doap:Project>
>
>
> Henry

Received on Monday, 17 September 2007 23:34:42 UTC