W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > July 2011

PROPOSAL: Restrict @prefix declaration to the root element

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 18 Jul 2011 22:54:15 -0400
Message-ID: <4E24F1D7.3050905@digitalbazaar.com>
To: RDFa WG <public-rdfa-wg@w3.org>
This proposal was raised during the telecon last week[1]. Since document
authors can declare @prefix anywhere in the document, they could
introduce authoring mistakes due to copy-paste. That is, if they do not
pay attention to where the @prefix is declared, they may accidentally
attempt to express triples that do not have a CURIE prefix defined.

While a number of people in the group feel that copy-paste issues are
not really that prevalent, limiting the use of @prefix to just the root
element of the document may decrease the possibility of copy-paste
errors. That is, copying from one place to another place in the document
would not be affected by @prefix declaration.

The down-side to this is that all Web page authors do not have access to
the root element in a document, which is typically set by the content
management system. This would disallow people that know what they're
doing from expressing triples in their sub-sections of the document -
such as blog articles or comment posts.

PROPOSAL: Limit @prefix declaration to the root element in the document.

-- manu


Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: PaySwarm Developer Tools and Demo Released
Received on Tuesday, 19 July 2011 02:54:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:25 UTC