CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 18:22:45 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 18:28:55 GMT
cache-control: max-age=2592000, public
expires: Sun, 09 Nov 2025 04:38:39 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98c36df2c884d6cc
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
set-cookie: __cf_bm=zg1xbWI257GzisS61uSvfBBUiN5T1uwf2BYVCX.3xVY-1760120565-1.0.1.1-w7FnIONSj9qLLAzq8MS5dj_asZaRsAEwP7wuC0wA0CeskjEWRoR94yuy_CfXFmgfFP7QRp5JaMePaauHkNwoLY76bwtzVoAqqYmvHxGA1sg; path=/; expires=Fri, 10-Oct-25 18:52:45 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98c825199d9f999b-BLR
alt-svc: h3=":443"; ma=86400
Re: property attributes on parseType="Resource" ? from Dave Beckett on 2003-10-30 (www-rdf-comments@w3.org from October to December 2003)
Re: property attributes on parseType="Resource" ?
- From: Dave Beckett <dave.beckett@bristol.ac.uk>
- Date: Thu, 30 Oct 2003 15:16:50 +0000
- To: Markus Sabadello <saba@cg.tuwien.ac.at>
- Cc: www-rdf-validator@w3.org, www-rdf-comments@w3.org
- Message-Id: <20031030151650.2093acc7.dave.beckett@bristol.ac.uk>
On Thu, 30 Oct 2003 03:21:16 +0100 (CET), Markus Sabadello <saba@cg.tuwien.ac.at> wrote: > > Hello, > > To me the RDF/XML syntax specification (chapters 2.5 and 2.11) seems to be > contradictory on whether property attributes are allowed on > parseType="Resource" property-and-node elements. Yes, it is contradictory: "This abbreviation is known as a Property Attribute and can be applied to any node element or with the rdf:parseType="Resource" form (see Section 2.11)." -- 2.5 Property Attributes https://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20031010/#section-Syntax-property-attributes "Property attributes and the rdf:nodeID attribute are not permitted on property-and-node elements. -- 2.11 Omitting Blank Nodes: rdf:parseType="Resource" https://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20031010/#section-Syntax-parsetype-resource The start of section 2 notes that "This section introduces the RDF/XML syntax, describes how it encodes RDF graphs and explains this with examples. If there is any conflict between this informal description and the formal description of the syntax and grammar in sections 6 Syntax Data Model and 7 RDF/XML Grammar, the latter two sections take precedence." -- https://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20031010/#section-Syntax In this case, there is an error and the grammar section 7.2.18 Production parseTypeResourcePropertyElt https://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20031010/#parseTypeResourcePropertyElt shows that no such property attributes are allowed. Therefore the wording in section 2.5 is in error and we will make an editorial change to that section in the next version of this document to something like the following: "This abbreviation is known as a Property Attribute and can be applied to any node element but not with the rdf:parseType="Resource" form (see Section 2.11)." > The W3C validator apparently doesnt allow them. As far as I understand the > grammar and productions, they dont seem to allow them either. > > So I guess there are mistakes in the spec chapters 2.5 / 2.11 ? > > -Markus Sabadello > (saba@cg.tuwien.ac.at) > > --------------- > > Example: > > 1: <?xml version="1.0"?> > 2: <rdf:RDF xmlns:rdf="https://www.w3.org/1999/02/22-rdf-syntax-ns#" > 3: xmlns:my="https://mytest.org/"> > 4: <rdf:Description> > 5: <my:test rdf:parseType="Resource" my:one="1"> > 6: <my:two>2</my:two> > 7: </my:test> > 8: </rdf:Description> > 9: </rdf:RDF> > 10: > > --------------- > > Error Messages from the W3C validator: > > Error: {E201} Syntax error when processing property attributes. Cannot have > property attributes with the following other attributes: > rdf:parseType='Resource'[Line = 5, Column = 50] Yes, that's correct to flag as an error. Thank you for your feedback. Markus, in order to formally close this comment on the RDF specs, can you please reply, copying www-rdf-comments@w3.org whether this response is an acceptable disposition of your comment. Dave
Received on Thursday, 30 October 2003 10:19:42 UTC