Mailing list ARC-DEV: Archives

erdf & bnodes

From: =?ISO-8859-1?Q?Robert_Goen=E9?= 
Subject: erdf & bnodes
Date: Sat, 2 Aug 2008 21:23:23 +0200


Hi Guys,

I have been playing a bit with ARC's erdf extractor, trying to  
enhance the erdf specification with a very nice feature: bnodes! One  
of the great things about erdf is the compatibility with any decent  
html editor: just provide a set of css classes to make these xhtml  
documents mean more, rdf-wise. Although the current specification  
makes it possible to assign simple properties to the current  
document, it does not have the power to bundle predicates with the  
help of a blank node.

In order to keep the css semantics as easy as possible, I have  
extended the way erdf handles the classnames with a postfix. By  
adding an underscore to the classname, a blank node is generated for  
the object value. The properties that are found inside this element  
have this blank node as their subject.

This makes it very easy to create a foaf person:

<ul class="foaf-person_">
<li><p class="foaf-firstName">First Name</p></li>
<li><p class="foaf-firstName">Last Name</p></li>
</ul>

The erdf extractor already works. What do you think of this?

Regards, Robert