W3C home > Mailing lists > Public > www-rdf-comments@w3.org > July to September 2003

Re: RelaxNG schema and local names

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Tue, 19 Aug 2003 12:40:18 +0100
To: Jonathan Borden <jonathan@openhealth.org>
Cc: www-rdf-comments <www-rdf-comments@w3.org>
Message-Id: <20030819124018.64e2ebd1.dave.beckett@bristol.ac.uk>

On Mon, 18 Aug 2003 19:22:58 -0400
Jonathan Borden <jonathan@openhealth.org> wrote:

> 
> I haven't followed whether this has been reported already but I've noticed
> that in:
> 
> http://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20030123/#section-RELAXNG-Schema
> 
> 
> 
> propertyAttr =
>   attribute * - ( rdf:RDF | rdf:ID | rdf:about | rdf:bagID | rdf:parseType |
>                   rdf:resource | rdf:nodeID | rdf:datatype | rdf:li |
>                   rdf:Description | rdf:aboutEach |
>     rdf:aboutEachPrefix | xml:* ) {
>       string
>   }
> 
> shouldn't this be:
> 
>  propertyAttr =
>   attribute * - ( local:* | rdf:RDF | rdf:ID | rdf:about | rdf:bagID |
> rdf:parseType |
>                   rdf:resource | rdf:nodeID | rdf:datatype | rdf:li |
>                   rdf:Description | rdf:aboutEach |
>     rdf:aboutEachPrefix | xml:* ) {
>       string
>   }
>
> i.e. isn't it the intention to ban "local" attributes (and elements BTW)?

Yes, I will add that, and for the element items too.

> Note that this production already bans the small subset of local attributes
> allowed by RDF e.g. ID,about,resource

Well, the non-namespaced attributes you give are discouraged.  Since
this is a best efforts schema it seems that just forbidding them is good
enough rather than adding
  attribute * - (local:* - id | about | .... ) ...

The lines are already getting rather long since I cannot abbreviate the
classes of terms in RelaxNG or RNGC, as far as I know.

Thanks

Dave
Received on Tuesday, 19 August 2003 07:41:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:32 GMT