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

ISSUE-1 Proposal: RDFa Profiles via the RDFa Vocabulary, bonus: the @map attribute

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Sun, 14 Mar 2010 22:59:47 -0400
Message-ID: <4B9DA2A3.6010302@digitalbazaar.com>
To: RDFa WG <public-rdfa-wg@w3.org>
This proposal outlines another potential implementation of the RDFa
Profiles feature. It also defines @map as preferred to @xmlns, but for a
different reason than the last proposal. The name @map is proposed in
addition to rdfa:alias for extending the "list of mappings". The key
difference is that neither @xmlns nor @map statements can be imported
via the @profile attribute.


* @xmlns is preserved and operates as it normally does in RDFa 1.0.
  @xmlns is no longer required in languages that are namespace-unaware,
  like HTML5.
* 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
  for languages that support it.
* @map extends the "list of mappings" in the current element scope.
* A new RDFa Vocabulary is created with one term - rdfa:alias.
  rdfa:alias is used to extend the "list of mappings" in documents
  that import RDFa Profile document.


Example of @map 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 about="http://xmlns.com/foaf/0.1/Person">
   <span property="rdfa:alias">Person</span>
<div about="http://xmlns.com/foaf/0.1/name">
   <span property="rdfa:alias">name</span>

Example in RDFa document that utilizes the Profile document above:

<div profile="http://example.org/foaf-profile"
     about="#manu" typeof="Person">
   <span property="name">Manu Sporny</span>

-- manu

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

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