W3C home > Mailing lists > Public > www-tag@w3.org > June 2006

Re: RDFa reliance on namespace declaration

From: Ian Davis <iand@internetalchemy.org>
Date: Wed, 14 Jun 2006 19:38:23 +0100
Message-ID: <4490579F.4040606@internetalchemy.org>
To: Misha Wolf <Misha.Wolf@reuters.com>
CC: public-rdf-in-xhtml-tf@w3.org, www-tag@w3.org, newsml-2@yahoogroups.com

On 14/06/2006 13:48, Misha Wolf wrote:
> Hi Ian,
> 
> Good point.  NewsML 2 has also taken your approach #2.  What syntax 
> is eRDF using for this?

eRDF uses a convention that I first saw described in a W3C workshop 
report from 1996 [1]. This was later adopted for the Dublin Core[2].

Basically a schema prefix is declared in the head of the document like this:

<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />

That sets up the 'dc' prefix to map to the specified URI

In eRDF you can refer to that prefix in class attributes like this:

<div class="dc-title">

or

<div class="dc.title">

Both of which denote the http://purl.org/dc/elements/1.1/title property URI

The particular choice of delimiter (hyphen or dot) was arbitrary. The 
historical documents mentioned above use dots but when I wanted to 
extend it to work in the body of the document I added the option of a 
hyphen since dots have a particular meaning in the XHTML binding of CSS.

I did consider making it configurable, e.g. allowing

  <meta name="erdf.delimiter" content=":" />

But decided against the added complexity. Not that it would be hard to 
implement but it's another convention for humans to learn.

Anyone looking for an intro to eRDF might be interested in the 
presentation I gave at XTech this year:

http://research.talis.com/2005/erdf/xtech2006.html

Ian

[1] 
http://www.w3.org/Search/9605-Indexing-Workshop/ReportOutcomes/S6Group2.html
[2] http://www.dublincore.org/documents/dcq-html/

-- 
http://purl.org/NET/iand
Blogging at... http://iandavis.com/blog
Working on... http://directory.talis.com/
Received on Wednesday, 14 June 2006 18:38:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:47:40 GMT