- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Sun, 14 Mar 2010 22:43:21 -0400
- 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.
Proposal
--------
* @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
Examples
--------
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>
...
</div>
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>
</div>
-- 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
http://blog.digitalbazaar.com/2010/02/01/bitmunk-payswarming/
Received on Monday, 15 March 2010 02:43:55 UTC