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/"
         xmlns:doap="http://usefulinc.com/ns/doap#">
     ...
     <div object="foaf:Person">
       <a property="name" rel="page"
          href="http://tobyinkster.co.uk"
          >Toby Inkster</a>
       made
       <div rel="made">
         <span object="doap:Project"
            property="name">Cognition</span>
       </div>
     </div>
   </html>

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
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Friday, 7 November 2008 10:47:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 November 2008 10:47:23 GMT