[foaf-dev] RDF support for anonymous users in Drupal

Stephane Corlosquet scorlosquet at gmail.com
Fri Oct 23 17:48:39 CEST 2009


I've left out the support for anonymous users support in the initial patch
which was committed to Drupal core as I wanted to think about it a little
bit more. Time helps to come up with better ideas (I hope!), but we should
not wait too much longer. I'm just about to propose a patch to add support
for exporting RDFa for anonymous users but I'd like to make sure we get this
right as this will be set in stone after Drupal 7 is released.

See some example:
- Registered user comment:
- Anonymous user comment:

In the case of a non registered user leaving a comment, Drupal offers to
leave her name, homepage and email address (though the email address is not
displayed for privacy reasons). The default markup is:

<a href="http://openspring.net/" rel="nofollow" class="username">Stephane
Corlosquet (not verified)</a>

We don't have a user profile URI here, but a homepage URL only. From the
initial feedback I got earlier, it seems we could create a blank node of
type foaf:Agent or sioc:User and use foaf:page to link it to the homepage. I
suggest the following markup:

<span rel="sioc:has_creator">
  <a typeof="sioc:User" rel="foaf:page nofollow" href="
http://openspring.net/">Stephane Corlosquet (not verified)</a>

To keep things simple, I'm very tempted to reuse the sioc:User mapping we
already have for the regular registered user. Is it ok not to use a
foaf:Agent or foaf:Person in this case, and link a sioc:User to a homepage
with foaf:page?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.foaf-project.org/pipermail/foaf-dev/attachments/20091023/2d71edeb/attachment.htm 

More information about the foaf-dev mailing list