W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > March 2010

ISSUE-1 Proposal: RDFa Profiles via @map

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Sun, 14 Mar 2010 22:43:21 -0400
Message-ID: <4B9D9EC9.9020905@digitalbazaar.com>
To: RDFa WG <public-rdfa-wg@w3.org>
This proposal outlines one potential implementation of the RDFa Profiles
feature. It also defines @map since its use is crucial to this proposal.
The name @map is proposed because this proposal combines
prefixes/keywords into one list in the RDFa Processor called a "list of
mappings" and it may follow that @map is easier to understand than
@token or @keyword.


* @xmlns is preserved and operates as it normally does in RDFa 1.0.
* A new attribute is introduced called @map. The attribute contains
  a set of key/value mappings. The syntax for map is the same as CSS,
  which will make it easier to use for those already familiar with CSS.
* @xmlns: extends the "list of mappings" in the current element scope
* @map extends the "list of mappings" in the current element scope and
  any document that imports the document as a RDFa Profile**1


Example in a regular RDFa document:

<div map="dc: http://purl.org/dc/terms/ ;
          Person: http://xmlns.com/foaf/0.1/Person">
   <span property="dc:title">The @map proposal</span>

Example in RDFa Profile document:

<div map="Person: http://xmlns.com/foaf/0.1/Person;
          name: http://xmlns.com/foaf/0.1/name"> ... </div>

Example in RDFa document that utilizes the Profile document above:

<div profile="http://example.org/foaf-profile"
     about="#mark" typeof="Person">
   <span property="name">Mark Birbeck</span>

-- manu

**1: This is weird - most of the other RDFa attributes are scoped to the
element, but @map isn't in the specific case where its values are
imported via @profile.

Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: PaySwarming Goes Open Source
Received on Monday, 15 March 2010 02:43:55 UTC

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