W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > October 2011

Re: How to deal with an <a> link applied to a person's name

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 12 Oct 2011 20:18:42 +0100
Cc: Manu Sporny <msporny@digitalbazaar.com>, RDFa WG <public-rdfa-wg@w3.org>
Message-Id: <399B616F-A9E2-45F0-9BEE-B7BB2C642EC2@jenitennison.com>
To: Stéphane Corlosquet <scorlosquet@gmail.com>, "Michael Steidl (IPTC)" <mdirector@iptc.org>

On 12 Oct 2011, at 19:18, Stéphane Corlosquet wrote:
> yes, @href will become the subject of triples inside the a tag.
> 
> We had the same use case in Drupal 7 for the author of a page/article. You can see an example at http://openspring.net/ (inspect the name of the author). We place the @typeof inside the a element, so reusing the markup given above, it would be:
> 
> <p>This picture was taken by <span rel="rnews:creator">
> 
> <a typeof="rnews:Person" href="http://www.riecks.com/">
> <span property="rnews:name">David Riecks</span>
> </a>
> 
> </span>.....</p>

That seems to generate

  <> <rnews:creator> > .
  <http://www.riecks.com/> a <rnews:Person>;
     <rnews:name> "David Riecks" .

according to Gregg's distiller.

You can however put an @about attribute with the real identifier for the person, or a blank node reference, on the link to override the @href:

<p>This picture was taken by <span rel="rnews:creator">

<a about="_:david" typeof="rnews:Person" href="http://www.riecks.com/">
  <span property="rnews:name">David Riecks</span>
</a>

</span>.....</p>

You can also use explicit @about attributes to indicate that the rnews:name is about the same rnews:Person:

<p>This picture was taken by <span rel="rnews:creator">

<span about="_:david" typeof="rnews:Person">
  <a target="_blank" href="http://www.riecks.com/">
    <span about="_:david" property="rnews:name">David Riecks</span>
  </a>
</span>

</span>.....</p>

Cheers,

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Wednesday, 12 October 2011 19:19:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:18 GMT