RDF/XML Syntax Oddity

The following RDF/XML different results depending on the parser used:

<rdf:RDF
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:ns1="http://example.com/">

   <rdf:Description>
     <ns1:pred rdf:value="bar"><rdf:Description/></ns1:pred>
   </rdf:Description>
</rdf:RDF>


Raptor and James Carlyle's XSLT based parser both give a single triple 
of the form:

_:genid1 <http://example.com/pred> _:genid2 .

The W3C online validator gives two triples:

genid:ARP76637 	http://www.w3.org/1999/02/22-rdf-syntax-ns#value 	"bar" .
genid:ARP76636 	http://example.com/pred 	genid:ARP76637 .

and an error: "Syntax error when processing start element 
rdf:Description. rdf:Description elements generally may only occur to 
describe an object.[Line = 4, Column = 30]"

I'm not entirely sure who is right. Does anyone else have any ideas?

Ian

Received on Wednesday, 11 August 2004 11:06:42 UTC