Modeling the relation between a resource and the site it belongs to

0 views
Skip to first unread message

Stephane Corlosquet

unread,
Jan 15, 2010, 1:59:18 PM1/15/10
to sioc...@googlegroups.com, DCMI Architecture Forum
Hi,

I think there an aspect which is quite important that we've missed so far in the implementation of RDF in Drupal 7, which is modeling the site a resource belongs to. Again, I'd like to keep it simple and limit this to one triple such as:
<http://mysite.com/node/12> sioc:has_container <http://mysite.com/>
or
<http://mysite.com/node/12> dc:isPartOf <http://mysite.com/>

I think this would enable useful queries such as find all resources hosted on a given site... Looking for something generic: some sites will be hosting communities where SIOC applies, but some others will be boutique sites with fairly stable content and not community driven at all. Does dc:isPartOf apply well here?

Steph.

Olivier Berger

unread,
Feb 16, 2010, 8:02:17 AM2/16/10
to SIOC-Dev
Hi.

I haven't seen any response to this question.

Maybe because it's asked in the context of Drupal ? But I think it's a
general question in any case, for which I'm also interested.

Maybe one can assume that resource URIs convey the semantics of their
belonging, but I'm not so much satisfied.

My use case would be to express links between users of a platform and
their accounts in different tools that are assembled in this platform.
For instance, foaf:holdsAccount help make a link between several
accounts (sioc:User) of a foaf:Person, but I can't see an obvious way
to state which of these sioc:User is linked to which sioc:Container
(different collaboration spaces like a Wiki, a Forum, etc.).

Looking forward to reading more answers on that subject.

Best regards,

Nathan

unread,
Feb 16, 2010, 10:47:27 AM2/16/10
to sioc...@googlegroups.com
Olivier Berger wrote:
> Hi.
>
> I haven't seen any response to this question.
>
> Maybe because it's asked in the context of Drupal ? But I think it's a
> general question in any case, for which I'm also interested.
>
> Maybe one can assume that resource URIs convey the semantics of their
> belonging, but I'm not so much satisfied.
>
> My use case would be to express links between users of a platform and
> their accounts in different tools that are assembled in this platform.
> For instance, foaf:holdsAccount help make a link between several
> accounts (sioc:User) of a foaf:Person, but I can't see an obvious way
> to state which of these sioc:User is linked to which sioc:Container
> (different collaboration spaces like a Wiki, a Forum, etc.).
>

all depends on the nature of the link between the sioc:User and the
sioc:Container I guess? Generally using sioc:Role handles most
use-cases; and dct:creator/modifier etc handle other types of
relationship; and further still you can infer more from the
relationships between a sioc:User and the sioc:Item(s) within the container.

What's your specific need / the relationship you need to describe?

regards,

Nathan

Olivier Berger

unread,
Feb 17, 2010, 2:57:01 AM2/17/10
to sioc...@googlegroups.com
Le mardi 16 février 2010 à 15:47 +0000, Nathan a écrit :

> Olivier Berger wrote:
> >
> > My use case would be to express links between users of a platform and
> > their accounts in different tools that are assembled in this platform.
> > For instance, foaf:holdsAccount help make a link between several
> > accounts (sioc:User) of a foaf:Person, but I can't see an obvious way
> > to state which of these sioc:User is linked to which sioc:Container
> > (different collaboration spaces like a Wiki, a Forum, etc.).
> >
>
> all depends on the nature of the link between the sioc:User and the
> sioc:Container I guess? Generally using sioc:Role handles most
> use-cases; and dct:creator/modifier etc handle other types of
> relationship; and further still you can infer more from the
> relationships between a sioc:User and the sioc:Item(s) within the container.
>
> What's your specific need / the relationship you need to describe?
>

It's quite simple : in a wiki I may be using an account named
"OlivierBerger" and in a forum, I may be recognized as "oberger"

so :
<http://somewhere/people/olivier/#me>
a foaf:Person ;
foaf:holdsAccount <http://somewhere/wiki/awiki/users/OlivierBerger>;
foaf:holdsAccount <http://somewhere/forum/aforum/users/oberger>.

and :
<http://somewhere/wiki/awiki/apage>
dc:creator <http://somewhere/wiki/awiki/users/OlivierBerger>;
sioc:has_container <http://somewhere/wiki/awiki>.

or :
<http://somewhere/forum/aforum/messages/1234>
dc:creator <http://somewhere/forum/aforum/users/oberger>.
sioc:has_container <http://somewhere/forum/aforum>

Now, is there a way to say :
<http://somewhere/wiki/awiki/users/OlivierBerger>
a sioc:User ;
whatever:is_an_account_in <http://somewhere/wiki/awiki>.
or
<http://somewhere/forum/aforum/users/oberger>
a sioc:User ;
whatever:is_an_account_in <http://somewhere/forum/aforum>. ?

And no matter which role my accounts may have (moderator, editor, admin
or whatever) ... and I believe semantically speaking an account in a
collaboration space may not be seen as a role.

I hope it makes it clearer question now ;)

Thanks in advance.

Best regards,
--
Olivier BERGER <olivier...@it-sudparis.eu>
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 1024D/6B829EEC
Ingénieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)

Dan Brickley

unread,
Feb 17, 2010, 3:09:07 AM2/17/10
to sioc...@googlegroups.com
On Wed, Feb 17, 2010 at 8:57 AM, Olivier Berger
<olivier...@it-sudparis.eu> wrote:
> Le mardi 16 février 2010 à 15:47 +0000, Nathan a écrit :
>> Olivier Berger wrote:
>> >
>> > My use case would be to express links between users of a platform and
>> > their accounts in different tools that are assembled in this platform.
>> > For instance, foaf:holdsAccount help make a link between several
>> > accounts (sioc:User) of a foaf:Person, but I can't see an obvious way
>> > to state which of these sioc:User is linked to which sioc:Container
>> > (different collaboration spaces like a Wiki, a Forum, etc.).
>> >
>>
>> all depends on the nature of the link between the sioc:User and the
>> sioc:Container I guess? Generally using sioc:Role handles most
>> use-cases; and dct:creator/modifier etc handle other types of
>> relationship; and further still you can infer more from the
>> relationships between a sioc:User and the sioc:Item(s) within the container.
>>
>> What's your specific need / the relationship you need to describe?
>>
>
> It's quite simple : in a wiki I may be using an account named
> "OlivierBerger" and in a forum, I may be recognized as "oberger"
>
> so :
> <http://somewhere/people/olivier/#me>
>  a foaf:Person ;
>  foaf:holdsAccount <http://somewhere/wiki/awiki/users/OlivierBerger>;
>  foaf:holdsAccount <http://somewhere/forum/aforum/users/oberger>.

FOAF's preferred name for these relationships is now foaf:account -
see http://xmlns.com/foaf/spec/#term_account (the older variant
foaf:holdsAccount is still included). One of the motivations
justifying this minor disruption btw was that it looks a lot more
presentable in RDFa links...

cheers,

Dan

Nathan

unread,
Feb 17, 2010, 3:12:55 AM2/17/10
to sioc...@googlegroups.com
Olivier Berger wrote:
> Le mardi 16 f�vrier 2010 � 15:47 +0000, Nathan a �crit :

other than inferring it in some way; I guess you could

<http://somewhere/forum/aforum> a sioc:Forum, sioc:Community;
sioc:has_usergroup <http://somewhere/forum/aforum#usergroup> .

<http://somewhere/forum/aforum#usergroup> a sioc:UserGroup ;
sioc:has_member <http://somewhere/forum/aforum/users/oberger> .

?


Olivier Berger

unread,
Feb 17, 2010, 3:25:22 AM2/17/10
to sioc...@googlegroups.com
Le mercredi 17 février 2010 à 09:09 +0100, Dan Brickley a écrit :
> On Wed, Feb 17, 2010 at 8:57 AM, Olivier Berger

> > It's quite simple : in a wiki I may be using an account named


> > "OlivierBerger" and in a forum, I may be recognized as "oberger"
> >
> > so :
> > <http://somewhere/people/olivier/#me>
> > a foaf:Person ;
> > foaf:holdsAccount <http://somewhere/wiki/awiki/users/OlivierBerger>;
> > foaf:holdsAccount <http://somewhere/forum/aforum/users/oberger>.
>
> FOAF's preferred name for these relationships is now foaf:account -
> see http://xmlns.com/foaf/spec/#term_account (the older variant
> foaf:holdsAccount is still included). One of the motivations
> justifying this minor disruption btw was that it looks a lot more
> presentable in RDFa links...
>

OK, thanks for the hint... but... any clue on my question ? ;)

Regards,

Olivier Berger

unread,
Feb 17, 2010, 3:35:21 AM2/17/10
to sioc...@googlegroups.com
Le mercredi 17 février 2010 à 08:12 +0000, Nathan a écrit :

>
> other than inferring it in some way; I guess you could
>
> <http://somewhere/forum/aforum> a sioc:Forum, sioc:Community;
> sioc:has_usergroup <http://somewhere/forum/aforum#usergroup> .
>
> <http://somewhere/forum/aforum#usergroup> a sioc:UserGroup ;
> sioc:has_member <http://somewhere/forum/aforum/users/oberger> .
>
> ?
>

That makes sense, but I would have expected a more direct link maybe...

I can be a "lone" poster to a forum and not really be considering myself
as a member of any group (i.e. sub-community, or specially granted of
some group-based roles...).

<http://somewhere/forum/aforum/users/oberger>
sio:member_of [
a sioc:UserGroup;
sioc:usergroup_of <http://somewhere/forum/aforum> ].

ok... hmmm an unspecified group of which I'm a member on that
platform... I'd prefer a kind of shortcut ;)

Thanks a lot.

Breslin, John

unread,
Feb 17, 2010, 8:30:22 AM2/17/10
to sioc...@googlegroups.com
What about http://xmlns.com/foaf/spec/#term_accountServiceHomepage

--
John Breslin
NUI Galway
http://www.johnbreslin.org/
john.b...@nuigalway.ie

Thanks a lot.

Best regards,

--
You received this message because you are subscribed to the Google Groups "SIOC-Dev" group.
To post to this group, send email to sioc...@googlegroups.com.
To unsubscribe from this group, send email to sioc-dev+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sioc-dev?hl=en.


winmail.dat

Olivier Berger

unread,
Feb 18, 2010, 5:32:12 AM2/18/10
to sioc...@googlegroups.com
Hi.

Le mercredi 17 février 2010 à 13:30 +0000, Breslin, John a écrit :
> What about http://xmlns.com/foaf/spec/#term_accountServiceHomepage
>

It's probably the closest to what I was looking for, even though the
range is a foaf:Document and not a sioc:Space.

Reusing my example and trying to be formal, it would give :

<http://somewhere/forum/aforum/users/oberger>
a sioc:User, foaf:OnlineAccount;
foaf:accountServiceHomepage [
a foaf:Document;
is foaf:homepage of <http://somewhere/forum/aforum> ].

And eventually, we may use the shortcut of :

<http://somewhere/forum/aforum/users/oberger>
a sioc:User, foaf:OnlineAccount;
foaf:accountServiceHomepage <http://somewhere/forum/aforum>.

if we assume the sioc:Service and its homepage foaf:Document are the
same ?

Thanks in advance.
--
Olivier BERGER <olivier...@it-sudparis.eu>
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8

Reply all
Reply to author
Forward
0 new messages