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

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

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>

avoids such muddiness.

Or you could use this:

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

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
Received on Saturday, 19 November 2011 20:54:41 UTC

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