- From: Jeni Tennison <jeni@jenitennison.com>
- Date: Wed, 12 Oct 2011 20:18:42 +0100
- To: Stéphane Corlosquet <scorlosquet@gmail.com>, "Michael Steidl (IPTC)" <mdirector@iptc.org>
- Cc: Manu Sporny <msporny@digitalbazaar.com>, RDFa WG <public-rdfa-wg@w3.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/> . <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 UTC