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

Re: PROPOSAL: Restrict @prefix declaration to the root element

From: Niklas Lindström <lindstream@gmail.com>
Date: Tue, 19 Jul 2011 22:45:38 +0200
Message-ID: <CADjV5jfd0VSS3ZBULbH9FTX7Zy3nRcwbk0q8PkDEoPcF2hhm0Q@mail.gmail.com>
To: Gregg Kellogg <gregg@kellogg-assoc.com>
Cc: Manu Sporny <msporny@digitalbazaar.com>, RDFa WG <public-rdfa-wg@w3.org>

On Tue, Jul 19, 2011 at 5:26 AM, Gregg Kellogg <gregg@kellogg-assoc.com> wrote:
> I think I actually suggested this, but on further thought, it limits some important use cases.

I fully agree.

> In the structured-data linter, the snippet output is generates with RDFa markup within a div inside the document. Having to declare @prefix definitions in the head is a little problematic, and doesn't keep all the example RDFa in one place; it actually introduces a different copy/paste problem.

Indeeed. Both @prefix and @vocab should be allowed anywhere, to make
it easy to embed such snippets and work in templated/restricted
publishing environments of various kinds. I furthermore expect that
using @vocab and the occasional full URI will cover many small, simple
use cases (e.g. provenance data in the head or a header; some
licensing and attribution in a footer).

Best regards,

> Gregg Kellogg
> Sent from my iPhone
> On Jul 18, 2011, at 7:54 PM, "Manu Sporny" <msporny@digitalbazaar.com> wrote:
>> 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
>> [1]http://www.w3.org/2010/02/rdfa/meetings/2011-07-14#ISSUE__2d_96__3a__Document_not_ready
>> --
>> Manu Sporny (skype: msporny, twitter: manusporny)
>> President/CEO - Digital Bazaar, Inc.
>> blog: PaySwarm Developer Tools and Demo Released
>> http://digitalbazaar.com/2011/05/05/payswarm-sandbox/
Received on Tuesday, 19 July 2011 20:46:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:52 UTC