Re: Another error in RDF/XML Syntax Specification? (was: Re: Error in RDF/XML Syntax Specification?)

On Wed, 06 Apr 2005 09:11:08 +0200, Arjohn Kampman <arjohn.kampman@aduna.biz> wrote:

> Dan Brickley wrote:
> > * Dan Brickley <danbri@w3.org> [2005-04-05 13:50-0400]
> > 
> >>>http://www.w3.org/2004/02/Process-20040205/process.html#rec-modify
> > 
> > 
> > FWIW I've added a link to that, and to www-rdf-comments, to the errata page,
> > also noting that the WG has closed. 
> 
> Dan,
> 
> Could you also add an additional note about a likely error in the RELAX
> NG grammar (section A.1)? The literalPropertyElt production in this
> grammar reads:
> 
> literalPropertyElt =
>    element * - ( local:* | rdf:RDF | rdf:ID | rdf:about | rdf:parseType |
>                  rdf:resource | rdf:nodeID | rdf:datatype |
>                  rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix |
>                  rdf:bagID | xml:* ) {
>        (idAttr | datatypeAttr )?, xmllang?, xmlbase?, text
>    }
> 
> This production only allows either an rdf:ID attribute or an
> rdf:datatype attribute to be specified, but not both. This is different
> from the normative grammar in chapter 7. The result of following this
> grammar would be that triples with a datatyped literal as object cannot
> be reified in the normal way.

Uhoh.

> The corrected production reads:
> 
> literalPropertyElt =
>    element * - ( local:* | rdf:RDF | rdf:ID | rdf:about | rdf:parseType |
>                  rdf:resource | rdf:nodeID | rdf:datatype |
>                  rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix |
>                  rdf:bagID | xml:* ) {
>        idAttr?, datatypeAttr?, xmllang?, xmlbase?, text
>    }
> 
> Any editors or former WG-members that can acknowledge this error too?

Well, IMHO using reification at all is a modelling error :)

However your final correction looks ok to me to make the RELAXNG match
the normative grammar for literalPropertyElt.

Dave

Received on Wednesday, 6 April 2005 09:13:14 UTC