Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
RDF support for anonymous users in Drupal
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stephane Corlosquet  
View profile  
 More options Oct 23, 11:48 am
From: Stephane Corlosquet <scorlosq...@gmail.com>
Date: Fri, 23 Oct 2009 11:48:39 -0400
Local: Fri, Oct 23 2009 11:48 am
Subject: RDF support for anonymous users in Drupal

Hi,

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:
http://drupalrdf.openspring.net/comment/1#comment-1
- Anonymous user comment:
http://drupalrdf.openspring.net/comment/7#comment-7

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>
</span>

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?

Steph.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandre Passant  
View profile  
 More options Oct 23, 12:52 pm
From: Alexandre Passant <alexandre.pass...@deri.org>
Date: Fri, 23 Oct 2009 17:52:53 +0100
Local: Fri, Oct 23 2009 12:52 pm
Subject: Re: [foaf-dev] RDF support for anonymous users in Drupal

On 23 Oct 2009, at 17:35, Toby Inkster wrote:

> On Fri, 2009-10-23 at 11:48 -0400, Stephane Corlosquet wrote:
>> 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?

> sioc:has_creator links to a sioc:User by definition, not to a  
> foaf:Agent
> or foaf:Person.

Indeed, if you want to use a sioc:User then it should go with  
sioc:has_creator but if you require a foaf:Agent, then use foaf:maker.
However, both foaf:page / foaf:homepage have owl:Thing as a range so  
you can use it in combination with sioc:User.
I'd yet avoid foaf:homepage as this is an IFP, and may lead to weird  
things (esp. for untrusted users)

Alex.

--
Dr. Alexandre Passant
Digital Enterprise Research Institute
National University of Ireland, Galway
:me owl:sameAs <http://apassant.net/alex> .

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephane Corlosquet  
View profile  
 More options Oct 23, 1:09 pm
From: Stephane Corlosquet <scorlosq...@gmail.com>
Date: Fri, 23 Oct 2009 13:09:50 -0400
Local: Fri, Oct 23 2009 1:09 pm
Subject: Re: [foaf-dev] RDF support for anonymous users in Drupal

Thanks Toby and Alex for your feedback,

sioc:has_creator links to a sioc:User by definition, not to a foaf:Agent

or foaf:Person.

right, so sioc:User it is.

By the way, on http://drupalrdf.openspring.net/node/3 the sioc:reply_of

> links aren't getting picked up. They're "masked" by the
> property="content:encoded" of the parent <div> element. A slightly
> annoying feature of RDFa is that any property which results in an
> rdf:XMLLiteral causes any RDF on descendant elements to be ignored.

agreed. that's what I explained at [1] and that's due to Drupal internals.
We're working on a solution which will in fact move the property attribute
one level down on a new tag which will wrap the content. That way the
property attribute will be on a tag at the same level (sibling) as
       <span rel="sioc:reply_of" resource="/node/3" />

that should in theory work and produce the intended RDFa...

Steph.

[1] http://drupal.org/node/538164#comment-2182794

On Fri, Oct 23, 2009 at 12:52 PM, Alexandre Passant <


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephane Corlosquet  
View profile  
 More options Oct 26, 10:02 am
From: Stephane Corlosquet <scorlosq...@gmail.com>
Date: Mon, 26 Oct 2009 10:02:05 -0400
Local: Mon, Oct 26 2009 10:02 am
Subject: Re: [foaf-dev] RDF support for anonymous users in Drupal

(cc'ing the public mailing list)

yes, here using sioc:User for any type of user keeps the implementation
simple.

> BTW: How, based on this RDF data, can you know which user is anonymous
> and which is a registered user?

Both are sioc:User, but registered users have a URI, while anonymous are
blank nodes (and just have a foaf:page to their homepage). So SPARQL should
be able to distinguish the two, I think. I just happened to talk to Andreas
Langegger this morning over breakfast, he suggested to use the isBlank
operator.

Steph.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google