W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > May 2001

Re: Issue http://www.w3.org/2000/03/rdf-tracking/#rdfms-empty-property-elements

From: Art Barstow <barstow@w3.org>
Date: Fri, 18 May 2001 09:35:52 -0400
To: Jan Grant <Jan.Grant@bristol.ac.uk>
Cc: RDFCore Working Group <w3c-rdfcore-wg@w3.org>
Message-ID: <20010518093552.A17858@w3.org>
On Thu, May 17, 2001 at 09:12:36AM +0100, Jan Grant wrote:
> 
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>   xmlns:random="http://random.ioctl.org/#">
> 
> <rdf:Description rdf:about="http://random.ioctl.org/#bar">
>   <random:someProperty rdf:parseType="Literal"
>     rdf:resource="http://random.ioctl.org/#foo" />
> </rdf:Description>
> 
> </rdf:RDF>
> 
> Should be flagged as an error.

The above of course is an error because it violates:

 [6.12] propertyElt    ::= '<' propName idAttr? '>' value '</' propName '>'
                         | '<' propName idAttr? parseLiteral '>'
                               literal '</' propName '>'

- a propertyElt with a parseType="Literal" attribute can only
have an ID attribute.

However, I'm wondering if you were trying to differentiate the
following as being illegal syntax by [6.12]:

 a.  <random:someProperty rdf:parseType="Literal"/>

and the following as being legal:

 b.  <random:someProperty rdf:parseType="Literal"></random:someProperty>

My take on [6.12] is that a. is not legal and b. is legal.  If
this is true, I don't understand why there is this restriction
and would propose that both be legal.

Art
---
Received on Friday, 18 May 2001 09:35:54 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:35:49 EDT