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: Stéphane Corlosquet <scorlosquet@gmail.com>
Date: Wed, 12 Oct 2011 14:18:39 -0400
Message-ID: <CAGR+nnE+YK=YVGEoev7AyTJAzNq8-Lf-8_YXyN7E-yS25EwrHA@mail.gmail.com>
To: Manu Sporny <msporny@digitalbazaar.com>, "Michael Steidl (IPTC)" <mdirector@iptc.org>
Cc: RDFa WG <public-rdfa-wg@w3.org>
Hi,

On Wed, Oct 12, 2011 at 1:17 PM, Manu Sporny <msporny@digitalbazaar.com>wrote:

> A question from Michael Steidl of the International Press
> Telecommunications Council (IPTC)...
>
> -------- Original Message --------
> Subject:        How to deal with an link applied to a person's name
> Date:   Wed, 12 Oct 2011 09:23:25 +0200
> From:   Michael Steidl (IPTC) <mdirector@iptc.org>
> Organization:   IPTC
> To:     <public-rdfa-wg-request@w3.org>
> CC:     'Manu Sporny' <msporny@digitalbazaar.com>
>
>
>
> Hi Manu and all:
>
>
>
> We at the IPTC are currently behind making rNews 1.0 specifications and
> documentation public and this includes working on use cases. One
> specific issue is causing us some headaches:
>
>
>
> We have a web page which shows a photo and provides some metadata about
> that photo on that page – example:
> http://www.embeddedmetadata.org/test1/img-2011-10-11T084203-139.html
> (this is part of another IPTC WG’s project)
>
>
>
> On that page we have the name of the photographer and the metadata in
> the image may provide a URL in a field named “Contact information: web
> address” and this web address should be applied as link to the person’s
> name  - and we want to mark this up using the rNews schema and RDFa syntax.
>
>
>
> This resulted into this HTML:
>
> <p>This picture was taken by <span rel="rnews:creator">
>
> <span typeof="rnews:Person"><a target="_blank"
> href="http://www.riecks.com/ <view-source:http://www.riecks.com/>"><span
> property="rnews:name">David Riecks</span></a></span>
>
> </span>.....</p>
>
>
>
> When we apply this page to the RDF distiller of Kellogg Associates
> (http://rdf.kellogg-assoc.com/distiller) we get this result (extract
> only):
>
> ....
>
> <http://www.riecks.com/> rnews:name "David Riecks" .
>
> ....
>
> <
> http://www.embeddedmetadata.org/supportgallery-img/images/img-2011-10-11T084203-139.jpg
> >
> a rnews:ImageObject;
>
>   rnews:creator [ a rnews:Person];
>
> ....
>
>
>
> We infer from that: if a link is put around a string which is attributed
> as the name of a Person the RDF distiller assumes that this <a> tag
> provides an identifier for this person by it @href.
>

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>


An alternative is to put the a element inside the span element which has the
rnews:name property, that way you avoid dealing with the @href:

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

<span about="#pers" typeof="rnews:Person">
  <span property="rnews:name">mdirector@iptc.org]
>
> International Press Telecommunications Council
> Web: www.iptc.org <http://www.iptc.org/>- on Twitter @IPTC
> <http://www.twitter.com/IPTC>
>
> Business office address:
>
> 20 Garrick Street, London WC2E 9BT, United Kingdom
>
> Registered in England, company no 101096
>
>
>
>
>
Received on Wednesday, 12 October 2011 18:19:09 GMT

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