W3C home > Mailing lists > Public > www-rdf-interest@w3.org > November 2001

Re: Trying to understand valid RDF [long]

From: Ian Stuart <Ian.Stuart@ed.ac.uk>
Date: 01 Nov 2001 14:15:18 +0000
To: RDF Interest list <www-rdf-interest@w3.org>
Message-Id: <1004624119.1350.133.camel@lucas.ucs.ed.ac.uk>
On Thu, 2001-11-01 at 13:50, Dan Brickley wrote:
> this was the problem, the rdf grammar doesn't like this mix of attributes
> and content.

and On Thu, 2001-11-01 at 13:43, Art Barstow wrote:
> The my:field property does not conform to rule [6.12] in:
>  http://www.w3.org/TR/REC-rdf-syntax/#grammar
> If a propertyElt contains content (and it does not have
> a rdf:parseType attribute), then the ONLY attribute it
> can have is rdf:ID.

SO, lets see if I understand this properly:

As a general rule, valid RDF restricts elements to either attributes or
content, but not both - as per grammar rule 6.12
(and I'm using the first option: 
'<' propName idAttr? '>' value '</' propName '>' - where 
value ::= description | string

I'll re-work my larger test to suit this.. :)

Ian Stuart: Edinburgh University Data Library.
I build things: computer programs (with code); or cars (with metal)

 Personal web site: http://lucas.ucs.ed.ac.uk/ 
Received on Thursday, 1 November 2001 09:07:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:33 UTC