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

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

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

Yosi Scharf

Also, if you do instead

cwm --rdf=R --n3

it will do what you want. The "R" flag means don't require a root  
<rdf:RDF> tag.
I am adding this to the documentation

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

Reply | Threaded
Open this post in threaded view
|

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

Henry Story-4
On 2 Nov 2007, at 13:31, Yosi Scharf wrote:
> Also, if you do instead
>
> cwm --rdf=R --n3
>
> it will do what you want. The "R" flag means don't require a root  
> <rdf:RDF> tag.
> I am adding this to the documentation

Thanks.

In the meantime CodeZoo has been pulled.

http://www.oreilly.com/cc.csp

but there is

http://doapspace.org/

instead.

Henry

> 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


smime.p7s (3K) Download Attachment