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

Re: ISSUE: Using @id to set subject in RDFa

From: Toby Inkster <tai@g5n.co.uk>
Date: Sat, 19 Nov 2011 20:55:16 +0000
To: Sebastian Heath <sebastian.heath@gmail.com>
Cc: RDFa WG <public-rdfa-wg@w3.org>
Message-ID: <20111119205516.310e77c9@miranda.g5n.co.uk>
On Sat, 19 Nov 2011 13:02:24 -0500
Sebastian Heath <sebastian.heath@gmail.com> wrote:

> Using @id to set subject in RDFa

I think that this would get us into a bunch of technical arguments with
TAG.

	<section id="toby" typeof="foaf:Person">
	  <h1 property="foaf:name">Toby Inkster</h1>
	</section>

What does the URI <#toby> identify? A living person? An element in a
DOM? A chapter within a document? Some combination of those? In RDF
(and to a certain extent, web architecture in general) it's generally
considered pretty important that a URI must identify a single concept.

The following:

	<section id="about_toby" about="#toby" typeof="foaf:Person">
	  <h1 property="foaf:name">Toby Inkster</h1>
	</section>

avoids such muddiness.

Or you could use this:

	<section about="#toby" typeof="foaf:Person">
	  <h1 property="foaf:name">Toby Inkster</h1>
	</section>

In combination with some Javascript that takes a URL fragment and uses
it to focus and highlight some areas of the page.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Saturday, 19 November 2011 20:54:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:18 GMT