W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2004

RDF/XML Syntax Oddity

From: Ian Davis <iand@internetalchemy.org>
Date: Wed, 11 Aug 2004 12:06:42 +0100
Message-ID: <4119FDC2.3000005@internetalchemy.org>
To: www-rdf-interest@w3.org

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


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

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?

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:52 UTC