W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > November 2008

YAUCI - Yet Another Unprefixed CURIE Idea [was Re: meeting record: 2008-11-06 RDF-in-XHTML Task Force]

From: Toby A Inkster <tai@g5n.co.uk>
Date: Fri, 7 Nov 2008 10:46:08 +0000
Message-Id: <0591B96E-C5E4-4EF1-BFB7-EACFCD8EFF14@g5n.co.uk>
To: RDFa <public-rdf-in-xhtml-tf@w3.org>

Ben Adida in the Meeting Record:

> ... We want to make markup simpler - so when we compare Microformats
> to RDFa, people don't see that RDFa is very complicated.

Here's yet another possible solution.

Define yet another attribute, which I'm calling "object" for now,  
though probably a better name can be found. It works like "typeof",  
but has a side-effect of setting a default CURIE prefix for the  
element and any descendant elements.

   <html xmlns:foaf="http://xmlns.com/foaf/0.1/"
     <div object="foaf:Person">
       <a property="name" rel="page"
          >Toby Inkster</a>
       <div rel="made">
         <span object="doap:Project"

This gives you the following result:

   _:b1 a foaf:Person ;
        foaf:name "Toby Inkster" ;
        foaf:page <http://tobyinkster.co.uk> ;
        foaf:made _:b2 .
   _:b2 a doap:Project ;
        doap:name "Cognition" .

Toby A Inkster
Received on Friday, 7 November 2008 10:47:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:29 UTC