Re: an alternative for microformat-like simplicity

This didnt make it to the list so I am re-sending, Ben got it but no-one 
else

---------------------------------------------------------------------------------

Hello Ben,

Ben Adida wrote:
> Vocabulary Definition at http://ben.adida.net/vocab, using RDFa:
>
> <div about="#name" typeof="rdf:Property">
>     <h4 property="rdfs:label">name</h4>,
>     which corresponds to
>     <a rel="owl:sameAs"
>        href="http://xmlns.com/foaf/0.1/name">
>          foaf:name
>     </a>.
> </div>
>
> <div about="#email" typeof="rdf:Property">
>     <h4 property="rdfs:label">email</h4>,
>     which corresponds to
>     <a rel="owl:sameAs"
>        href="http://rdfs.org/sioc/ns#email">
>          sioc:email
>     </a>.
> </div>
>   

Do you not feel that you are trying to hit something with a sledge hammer?

a simpler approach may be to re-use XMDP profiles to define your vocab?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My XMDP Profile</title>
</head>
<body>
   <dl>
     <dt id="name">name</dt>
     <dd>http://xmlns.com/foaf/0.1/name</dd>
   </dl>
   <dl>
     <dt id="email">email</dt>
     <dd>http://rdfs.org/sioc/ns#email</dd>
   </dl>
</body>
</html>

Its really easy to parse ;)

>
> Thus, an RDFa parser would, without dereferencing anything, be able to
> generate the following triples:
>
> <#me> <http://myvocab.org/#name> "Ben Adida" .
> <#me> <http://myvocab.org/#email> <mailto:ben@adida.net> .
>   

the above will give you something similar....

<#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
<#me> <http://rdfs.org/sioc/ns#email> <mailto:ben@adida.net>

...well it is hoped?

Best wishes.

-- 
Martin McEvoy
http://weborganics.co.uk/

Received on Monday, 20 July 2009 02:08:41 UTC