- From: Arjohn Kampman <arjohn.kampman@aduna.biz>
- Date: Wed, 11 Aug 2004 13:34:46 +0200
- To: Ian Davis <iand@internetalchemy.org>
- Cc: www-rdf-interest@w3.org
Ian Davis wrote: > > 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? Hi Ian, The RDF/XML fragment doesn't appear to be correct as it doesn't match the grammar specified in [1]. Therefore, the parser is supposed to report a warning or error upon parsing the data, which is what the online validator does. FWIW: Sesame's parser reports the following error: Warning[line=6; column=49]: unexpected attribute 'rdf:value'. Arjohn [1] http://www.w3.org/TR/rdf-syntax-grammar/ -- arjohn.kampman@aduna.biz Aduna BV - http://aduna.biz/ Prinses Julianaplein 14-b, 3817 CS Amersfoort, The Netherlands tel. +31-(0)33-4659987 fax. +31-(0)33-4659987
Received on Wednesday, 11 August 2004 11:34:55 UTC